Discussion:
HttpSendRequest timesout after 5 successfull sends (using HTTPS)
(too old to reply)
rranly
2004-09-14 18:48:41 UTC
Permalink
Ashok,
Did you have any problems with your HttpOpenRequest?

HINTERNET hRequest = HttpOpenRequest(hConnect, "PUT", FileName, NULL,
NULL, NULL, dwOpenRequestFlags, 0);
Everytime I add the flag INTERNET_FLAG_SECURE, I get a 997 error returned
from the call. I too am trying to connect to a SSL IIS box, and upload a
file to it. If I take SSL off everything works find. Do you have any
ideas?

Did you try using HttpSendRequestEx? It is the preferred function for
large files?

Ryan
rranly
2004-09-14 18:49:53 UTC
Permalink
Ashok,
Did you have any problems with your HttpOpenRequest?

HINTERNET hRequest = HttpOpenRequest(hConnect, "PUT", FileName, NULL,
NULL, NULL, dwOpenRequestFlags, 0);
Everytime I add the flag INTERNET_FLAG_SECURE, I get a 997 error returned
from the call. I too am trying to connect to a SSL IIS box, and upload a
file to it. If I take SSL off everything works find. Do you have any
ideas?

Did you try using HttpSendRequestEx? It is the preferred function for
large files?

Ryan
Ashok K Kumar
2004-09-14 20:57:02 UTC
Permalink
Hi Ryan,

I am not facing any problem with HttpOpenRequest. Besides, I am using POST
method with Content-Type as "application/x-www-form-urlencoded" and
HttpSendRequest for basic Form posting and to upload files, I am using the
same POST method with Content-Type as "multipart/form-data" and
HttpSendRequestEx.
Everythings works fine if I remove SSL.

PUT method is not wide supported by many browsers. But IIS supports it from
version 4 onwards. I can suggest one thing. Why dont you try submitting the
file using IE and HTTPS using a simple form with method as PUT and a file
control. See if that works, then u can be sure whether there is a problem
with your code or with WinInet API

Thanks
Ashok Kumar K
Post by rranly
Ashok,
Did you have any problems with your HttpOpenRequest?
HINTERNET hRequest = HttpOpenRequest(hConnect, "PUT", FileName, NULL,
NULL, NULL, dwOpenRequestFlags, 0);
Everytime I add the flag INTERNET_FLAG_SECURE, I get a 997 error returned
from the call. I too am trying to connect to a SSL IIS box, and upload a
file to it. If I take SSL off everything works find. Do you have any
ideas?
Did you try using HttpSendRequestEx? It is the preferred function for
large files?
Ryan
Loading...