I am using Visual Studio and C# to post a request to my client's https: api service (a Java/Unix platform).
They claim I am not sending the payload (request body).
My code uses a common practice method HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://client.com/api/login");
I then create the JSON from a data structure using the JavaScriptSerializer as
loginInfoSerialized = new JavaScriptSerializer().Serialize(loginInfo);
I add request.Headers.Add as needed by the client. And then write the request stream using:
StreamWriter streamPost = new StreamWriter(request.GetRequestStream());
streamPost.Write(loginInfoSerialized);
All pretty standard. However, I am not able to capture/see the outgoing HTTPS request in Fiddler to confirm the header and payload data is being sent from my development platform (Windows 7). My firewall is disabled.
I do see a "Tunnel to" in the Host column, but nothing recognizable (https decipher??)
Should I be doing something different to see the outbound packets?
Thanks.