why BingRequest sample doesn't work on my machine?

Mar 29, 2013 at 4:23 AM
Hi,

I download and compile the bingrequest sample successfully. However, when I try to run it, it doesn't work. I can see that the file for storing result is created, but without any content.

I used fiddler to monitor the network activity, and doesn't see any request initiated. It seems like following code:
    http_client client(U("http://www.bing.com/"));
    return client.request(methods::GET, uri_builder(U("/search")).append_query(U("q"), 
searchTerm).to_string());

doesn't sent any request.

Do you have any insight what is happening? what can I do to debug this issue? My environment is win8 desktop + vs2012.

Thanks,
Wende
Mar 29, 2013 at 6:48 AM
Btw, the error message I received is 12002 (The operation timed out). I debug the program and see that WinhttpSendRequest is called to send the request.
Mar 29, 2013 at 7:59 AM
Sorry for bothering, but it turns out to be my environment issue. I forgot to set a proper proxy. Now it works.
Mar 29, 2013 at 3:40 PM
Glad to hear you figured it out!

Niklas