http client Test program compiles but doesn't run

Jan 5, 2015 at 11:14 PM
I've created a program in visual studio (basically copied the http client example that queries verbatim. The program compiles but I get an excecption at run time.

Error exception:WinHttpReceiveResponse: 12002: The operation timed out

Any thoughts on what's going on?

Jan 5, 2015 at 11:39 PM
Hi sg70,

It sounds like for some reason you are not getting back a response from the server ( before the request times out. Can you try to make a request to a local server perhaps and see first if that works? Did you change the default timeout to be something small? It defaults to 30 seconds I believe.

Jan 5, 2015 at 11:56 PM
Thanks Steve. This works with a local server. My application deals with local servers only so I am set for now.

BTW, I did not change the timeout.