I am calling HttpSendRequest() to get response header from a url. But HttpSendRequest takes more than 2 seconds to return. Why is this so? Is there anyway I can set a timeout for this? I tried SetInternetOption() using INTERNET_OPTION_RECEIVE_TIMEOUT after calling HttpOpenRequest() but that did not work. Thanks in advance..
Try calling InternetSetOption before calling HttpSendRequest.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
Bookmarks