EDN Admin
Well-known member
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
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