I trying to test a simple demo application written in Visual Studio C++. However nothing is logged in Fiddler 4 when the program runs.
I complied the code from here on my Win10 m/c using VS 2017 community:
https://www.codeproject.com/Articles/66625/A-Fully-Featured-Windows-HTTP-Wrapper-in-C
I am running this simple function which does a 'GET'
void SimpleGetTest(void)
{
wprintf(L"SimpleGetTest\r\n");
// Set URL.
WinHttpClient client(L"http://www.codeproject.com/");
// Send http request, a GET request by default.
client.SendHttpRequest();
// The response header.
wstring httpResponseHeader = client.GetResponseHeader();
// The response content.
wstring httpResponseContent = client.GetResponseContent();
wprintf(L"<%ws>\r\n", httpResponseContent.c_str());
}
When I run the program the console output shows HTML response content just fine, Fiddler sees nothing.
If I stick "http://www.codeproject.com/" into my Firefox Fiddler does see the traffic ok.
I am very new to Fiddler and I downloaded it a few days ago and I am using it with the default settings. Is there some setting I need to change so it sees the traffic from my code?
As a matter of interest when I start VS Studio I can see traffic in Fiddler for the connection to Microsoft VS site.