Discussion:
HttpSendRequest fails for HTTPS
(too old to reply)
babu17
2006-05-22 10:19:19 UTC
Permalink
Hi,

1. If i need to do a https request(ssl+client crtification) to a server
which is the library i need to use for VC++ dll(not a desktop
application).
winInet or WinHttp

2. what are the sequence of operations(API methods) to send the https
request.

3. i have client certificate, and i want to select this particular
client certificate with the https request.

thanks
Kellie Fitton
2006-05-22 17:57:06 UTC
Permalink
Hi,

You can use the following APIs to send/write the specified request
to the HTTP server:

WinHttpOpen()
WinHttpConnect()
WinHttpOpenRequest()
WinHttpSendRequest()
WinHttpWriteData()
WinHttpReadData()
WinHttpReceiveResponse()
WinHttpCloseHandle()

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/winhttpopen.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/winhttpconnect.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/winhttpopenrequest.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/winhttpsendrequest.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/winhttpwritedata.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/winhttpreaddata.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/winhttpreceiveresponse.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/winhttpclosehandle.asp

Hope these suggestions helps,

Kellie.

Loading...