WinHttpReceiveResponse returns ERROR_WINHTTP_INCORRECT_HANDLE_STATE

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi
I am using Windows HTTP Services API to develop a http client and code works well when i use server name in WinHttpConnect() but if i use ip address instead of server name, WinHttpReceiveResponse returns ERROR_WINHTTP_INCORRECT_HANDLE_STATE.
Here is my part of my code,

hConnect = WinHttpConnect( hSession,L"174.129.199.168", INTERNET_DEFAULT_HTTPS_PORT, 0 );
Is there anything wrong in ip address representation?
Thanks
<div id="x_x_x_x_x_x__dyhb23rg4374
<
Manigandasuresh
<br/>
<div id="x_x_x_x__dyhb23rg4374
<br/>
<div id="x_x__dyhb23rg4374

View the full article
 

Similar threads

D
Replies
0
Views
104
Donald Uko
D
P
Replies
0
Views
176
Policy standard local admin account with Active Di
P
Back
Top