fiddler not capture windows console app WebClient or HttpWebRequest calls

169 views
Skip to first unread message

robertob

unread,
Aug 20, 2014, 10:29:22 PM8/20/14
to httpf...@googlegroups.com
i'm finding that fiddler is not capturing my windows console app WebClient or HttpWebRequest calls.

I tried setting the Proxy property on the WebClient() and that didn't change the result. 

Any pointers on what i'm overlooking to get this working?

WebClient request = new WebClient();
request.Proxy = new WebProxy("192.168.0.22", 8888);  // or "http://192.168.0.22:8888/" or "http://ipv4.fiddler:8888/"
request.Headers.Add(HttpRequestHeader.Authorization, GetAuthorizationHeader());
var response = request.DownloadString(new Uri(requestUri));

//HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(requestUri);
//request.Headers.Add(HttpRequestHeader.Authorization, GetAuthorizationHeader());
//request.Proxy = new WebProxy("192.168.0.22", 8888);  // or "http://192.168.0.22:8888/" or "http://ipv4.fiddler:8888/"
//var response = request.GetResponse();

EricLaw

unread,
Aug 21, 2014, 11:56:03 AM8/21/14
to httpf...@googlegroups.com
This generally looks correct. What is your requestUri in this scenario?

Is Fiddler running on the local computer, or a remote computer?
Message has been deleted

robertob

unread,
Aug 21, 2014, 12:40:46 PM8/21/14
to httpf...@googlegroups.com
thanks for response.  its a public uri, e.g. https://management.core.windows.net/. . .

robertob

unread,
Aug 21, 2014, 1:47:01 PM8/21/14
to httpf...@googlegroups.com
please ignore,

its a result of my goof up as i had a filter in filter and do not decrypt rule in place that was creating this unexpected result
Reply all
Reply to author
Forward
0 new messages