Dec 9, 2013 at 11:08 AM
Edited Dec 9, 2013 at 3:05 PM
I am working on handling REST requests and responses using Casablanca REST SDK. I got "Http Exception[000000000012EA58]" while running my application in "win2k3_x64 server" using "cpprest110_xp_1_2.dll". I did the following steps.
- Downloaded and installed msi of "c++ REST SDK for Visual Studio 2012" and got the libs and dlls with respect to win_xp[cpprest110_xp_1_2.dll, cpprest110_xp_1_2.lib]
- Linked the downloaded xp lib to my application, changed the platform tool set to "Visual Studio 2012 - Windows XP (v110_xp)",compiled(Release, x64) and got the executables.
- While trying to run my application.exe in win2k3_x64 server machine, it is showing http exception as shown below
Error code: "000000000012EA58"
Error code value: -2146893018
Error Message: The message received was unexpected or badly formatted
Note: The same application is working well in win2k8_x64 server machine
I have analysed the responses through "wireshark", which shows that "Client key exchange, change cipher spec, encrypted handshake message" is not happening in win_2k3_x64.
http_client_config config = http_client_config();
pplx::task<http_response> sampleRequest = client.request(methods::GET);
http_response sampleResponse = sampleRequest.get();
string statusCode = to_string(sampleResponse .status_code());
pplx::task<web::json::value> extractJson= sampleResponse.extract_json();
web::json::value jsonValue = extractJson.get();
wcout<<"Status Code: "<<sampleResponse.status_code()<<endl<<"Response String: "<<jsonValue;
Can you guys help me out to resolve this issue
Attached is the wireshark response for both win2k3x64