Using Fiddler with RESTSharp

4,310 views
Skip to first unread message

Jeremy Miller

unread,
Nov 28, 2012, 5:39:00 PM11/28/12
to rest...@googlegroups.com
I want to use fiddler to sniff the requests/responses from a console application that's utilizing RESTSharp.  I have tried the following

RestClient client = new RestClient("http://localhost/custompayment");
client.Proxy = System.Net.HttpWebRequest.GetSystemWebProxy();

And

client.Proxy = new WebProxy("http://127.0.0.1:8888");
But neither seem to feed the message to fiddler.

If I send the messages directly to http://127.0.0.1:8888 then I can see the payloads but that's not ideal.

Simon Dahlbacka

unread,
Nov 30, 2012, 4:49:38 PM11/30/12
to rest...@googlegroups.com
Using "http://localhost./custompayment" works for me, haven't needed to explicitly specify proxy either (note the extra dot)

hope this helps,
Simon

Jeremy Miller

unread,
Nov 30, 2012, 5:11:09 PM11/30/12
to rest...@googlegroups.com
When I do that, I get the following exception:  

There was no endpoint listening at http://localhost./custompayment.hosting/processservice.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

ThanosS

unread,
Dec 26, 2013, 10:11:00 AM12/26/13
to rest...@googlegroups.com, jjm...@gmail.com
Hi! You can define the proxy using this :

RestClient client = new RestClient("http://localhost/custompayment");
client.Proxy = new WebProxy("127.0.0.1", 8888); // IP, Port.
Reply all
Reply to author
Forward
0 new messages