Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using wininet.DLL Question
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Using wininet.DLL Question
Miscellaneous
Thread ID:
00631860
Message ID:
00631860
Views:
102
I am using HttpOpenRequest in wininet.dll.

However, when the Server is not responding, it totally locks up my VFP application. I need to do Ctrl_Alt-Del and End Task to get out.

I am using the following code to setup Timeouts, but it is not working!!. I could not find any sample code on this, so I improvised!

lcBuffer = " "
lnBufsize = 0
#DEFINE INTERNET_OPTION_CONNECT_TIMEOUT 2
#DEFINE INTERNET_OPTION_RECEIVE_TIMEOUT 6
#DEFINE INTERNET_OPTION_SEND_TIMEOUT 5
= InternetSetOption(0, INTERNET_OPTION_CONNECT_TIMEOUT, @lcBuffer, @lnBufsize)
= InternetSetOption(0, INTERNET_OPTION_RECEIVE_TIMEOUT, @lcBuffer, @lnBufsize)
= InternetSetOption(0, INTERNET_OPTION_SEND_TIMEOUT, @lcBuffer, @lnBufsize)
* -------------------------------------------------

Does anybody know how to correctly set these Timeouts and overcome this problem ?

Cyrus
Cyrus Nima
-------------------
cyrusnima@gmail.com
Next
Reply
Map
View

Click here to load this message in the networking platform