Discussion:
How to reset wininet?
(too old to reply)
rimumiro
2006-04-07 04:28:02 UTC
Permalink
The INTERNET_BUFFERS structure used in HttpSendRequestEx has a limit of 2Gb.
I am happy to chunk files larger than this and send them in a separate
request, but InternetWriteFile returns false [with no error] even if you use
a new session, connection and request handle [after first closing the
existing ones].

Is there any way to reset wininet so that you can send files larger than 2Gb
in separate chunks? [Note: the limitation is not at the server end.]

Thanks,

Michael
rimumiro
2006-04-09 22:20:01 UTC
Permalink
There is no problem with resetting wininet provided you close the session,
connection, and request handles. A closer examination of the code revealed
that the session handle was not being closed.

My apologies.

Loading...