Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

downloading a web page

Status
Not open for further replies.

flintstone42

Programmer
Aug 7, 2001
52
US
Hi:
Currently, I am using the win32 api
URLdownloadtofile to download a webpage.

DECLARE LONG URLDownloadToFile IN URLMON.DLL ;
LONG, STRING, STRING, LONG, LONG


Normally, I use for web services, using the httpget method,
This function works qucikly enough(<3 seconds) if

1. The internet connection is up and running
2. The web service is up and running.

If either of these is false, the function will take
several minutes (3-10) before comming back with an error.
This makes the machine appear locked up.

Any Ideas on how I can test or make this function time out after say 30 seconds?

The URL download to file works by save the XML
I then extract the data from the XML using filetostr.
(I am using VFP 7 and the XMLtosursor works only for
the first Heiarchy level on xml, any indeas on this?


Basicly, I need a way to get the URLdownlloadtofile to
timeout after a certain time, any ideas?
or should I use another function?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top