flintstone42
Programmer
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?
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?