Click here to Skip to main content
15,895,084 members

Comments by Member 11732139 (Top 8 by date)

Member 11732139 9-Jun-21 4:52am View    
As am newbie to winhttp ,can you suggest any debug/tracing tool of winhttp?
I got information about WinHttpTraceCfg.exe but am not able to get downloadable file neither the win2003 resource content pack
Member 11732139 8-Jun-21 11:21am View    
sorry .. it was my mistake.
the return value from WinHttpReceiveResponse is false and The getlasterror after WinHttpReceiveResponse is 12002 which is ERROR_INTERNET_TIMEOUT.
what could be reason , is that am missing any in send request or open request ?

From Browser or postman , the URL works fine and says 200 which is sucessful..
Member 11732139 25-May-21 5:27am View    
The below code
bResults = WinHttpQueryHeaders(hRequest,
WINHTTP_QUERY_FLAG_NUMBER | WINHTTP_QUERY_STATUS_CODE,
0,
&ulngStatus,
&ulngStatusSize,
NULL);
}

printf( "Error Status Code - %d and last error \n", ulngStatus);


status says 200 instead of 404,

The status code it returned by quering "https://10.71.112.251" instead of full "https://10.71.112.251//appadmin".. is that the issue ?then how to query full url ?
Member 11732139 25-May-21 5:24am View    
am very new to winhttp.
i tried writing some code based on reference with my project.

The below code
bResults = WinHttpQueryHeaders(hRequest,
WINHTTP_QUERY_FLAG_NUMBER | WINHTTP_QUERY_STATUS_CODE,
0,
&ulngStatus,
&ulngStatusSize,
NULL);
}

printf( "Error Status Code - %d and last error \n", ulngStatus);


status says 200 instead of 404

Member 11732139 25-May-21 4:39am View    
yes browser shows 404 error but winhttp response says 200