Petar Popara
2006-01-12 14:09:08 UTC
I'm using following WinINET functions:
InternetOpen()
InternetConnect()
HttpOpenRequest()
HttpAddRequestHeaders()
---------------------------------
HttpSendRequestEx()
InternetWriteFile()
HttpEndRequest()
InternetReadFile()
I execute first group of functions to get request handle and then I execute
second group of functions several times. The problem is that I don't close
(destroy) request/connection handle for a long time and connection might be
lost whwn I execute second group of function again (after several
minutes/hours/days). How can I find out if connection/request handles are
invalid to make a connection once again?
InternetOpen()
InternetConnect()
HttpOpenRequest()
HttpAddRequestHeaders()
---------------------------------
HttpSendRequestEx()
InternetWriteFile()
HttpEndRequest()
InternetReadFile()
I execute first group of functions to get request handle and then I execute
second group of functions several times. The problem is that I don't close
(destroy) request/connection handle for a long time and connection might be
lost whwn I execute second group of function again (after several
minutes/hours/days). How can I find out if connection/request handles are
invalid to make a connection once again?