title: Why doesn't traffic using Xamarin's monotouch implementation of MobileServiceClient show up in Fidder/Charles
body: <p>This is probably the same question as:</p>
  
  <p><a href="https://stackoverflow.com/questions/23492126/http-traffic-monitoring-issue-when-using-monotouch-httpclient-and-charles-proxy">HTTP Traffic monitoring issue when using MonoTouch, HttpClient and Charles Proxy</a></p>
  
  <p>But I thought I would ask it from a Windows Azure Mobile Services Client perspective. When I configure my iOS device to point at either fiddler (on my windows box) or charles (on my mac) I can see all traffic from a browser or from an Xamarin app that uses WebRequest. However if I use either Microsoft.WindowsAzure.MobileServices.MobileServiceClient (which uses HttpClient) or HttpClient directly the traffic does not show up.  </p>
  
  <p>I tried looking at:</p>
  
  <p><a href="http://fiddlerbook.com/fiddler/help/hookup.asp#Q-DOTNET" rel="nofollow noreferrer">http://fiddlerbook.com/fiddler/help/hookup.asp#Q-DOTNET</a></p>
  
  <p>For some suggestions but I don't know enough about the implementation of HttpClient in Xamarin.IOS to know if they are appropriate. i.e. I couldn't seem to be able to use GlobalProxySelection as advised in:</p>
  
  <pre><code>GlobalProxySelection.Select = new WebProxy("127.0.0.1", 8888);
  </code></pre>
  
  <p>and I don't think the app.config suggestion of using:</p>
  
  <pre><code>  &lt;defaultProxy&gt;
        &lt;proxy bypassonlocal="false" usesystemdefault="true" /&gt;
      &lt;/defaultProxy&gt;
  </code></pre>
  
  <p>is appropriate for an Xamarin app. A good starting point for me would be to understand what HttpClient is doing differently to WebRequest in order to track the problem down but hopefully someone can just tell me what I need to do to fix this.</p>
  
  <p>Thanks</p>
  
  <p>F</p>
  
  <p>NOTE: I am not using a local address so that doesn't come into it.
  NOTE: This can easily be tested by running <a href="http://docs.xamarin.com/samples/HttpClient/" rel="nofollow noreferrer">http://docs.xamarin.com/samples/HttpClient/</a> on an iOS device configured to use fiddler/charles as a proxy and watching as the HttpClient traffic doesn't appear.</p>