It should work in all cases.
...
> Thanks. Actually I had tried it earlier but could not get it to work. When
> you pointed out the same thing, I tried it again and got it to work.
> Thanks!.
> For the benefit of others, here is what worked for me.
> b = InternetSetOption(hInternetHandle, INTERNET_OPTION_RECEIVE_TIMEOUT,
> &dwTimeut, sizeof(DWORD));
> "Vladimir Scherbina" <v_scherb...@online.mvps.org> wrote in message
> news:OZEjNxcMIHA.5160@TK2MSFTNGP05.phx.gbl...
>> Did you tried to set timeout option on a handle using InternetSetOption?
>> --
>> Vladimir
>> "Saju Paul" <saju_p...@persistent.co.in> wrote in message
>> news:%23Hu$BXYMIHA.3940@TK2MSFTNGP05.phx.gbl...
>>> Hi,
>>> I have IE7 installed and I am using the WinInet library for http
>>> requests. There is a peculiar requirement in my app where I have to wait
>>> for a long time to get the response for the request I make calling
>>> HttpSendRequest. But the call times out after 30 seconds or so. I have
>>> tried things mentioned in the link below but could not get it to work.
>>> http://support.microsoft.com/kb/q181050/
>>> It always times out after 30 seconds saying ERROR_INTERNET_TIMEOUT.