As a sandbox application i wrote a console app which will call RestApi for storage services.The app is running as expected and i can see calls made by application in Fiddler.I wrote this sandbox so that i could specifically use Rest API calls.
The point i am stuck is how to see REST calls made by my application against storage emulator in Fiddler. I know if i am using storage client library (azure SDK) then could have used following
UseDevelopmentStorage=true;DevelopmentStorageProxyUri=http://ipv4.fiddler
I tried setting the Proxy on the HttpWebRequest
but that is also not helping me.Following i the excerpt from my code.
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URI);
WebRequest.DefaultWebProxy = new WebProxy("http://ipv4.fiddler");
or
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URI);
request.Proxy = new WebProxy("http://ipv4.fiddler");
or
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URI);
request.Proxy = new WebProxy("127.0.0.1",8888);
also tried setting up this in app.config like
<system.net>
<defaultProxy>
<proxy
proxyaddress="http://ipv4.fiddler"
bypassonlocal="False" />
</defaultProxy>
</system.net>
but none seems to be working for me. Again just to be clear about my question, app is running fine for me both for storage emulator and My subscription. Only issue is that i cant see call in Fiddler if executed against storage emulator.
Thanks.