title: Configuring Eclipse to allow Fiddler to intercept requests
body: <p>In Eclipse there are two places that I've attempted to configure so that Fiddler can intercept the HTTP/HTTPS requests that I'm sending out:</p>
  
  <ol>
  <li><code>Windows > Preference > General > Network Connections</code> - I've tried Native/Direct/Manual</li>
  <li>In VM arguments, I add the following <code>-DproxySet=true -DproxyHost=127.0.0.1 -DproxyPort=8888</code></li>
  </ol>
  
  <p>EDIT: I've tried the new properties suggested by rgerganov as well.</p>
  
  <p>I haven't touched any "network" related settings in Fiddler and I've set it to monitor all processes.</p>
  
  <p>I tried with Wireshark and I was able to intercept the requests with no modifications to Eclipse but information presented in Wireshark is too in-depth and I don't need most of the details provided by Wireshark.</p>
  
  <p>EDIT: Here's the sample code which I'm trying:</p>
  
  <pre><code>public static void doPOST() {
      String post_url = "https://lookup.mxtelecom.com/USLookup";
  
      HttpParams params = new BasicHttpParams();
      HttpProtocolParams.setVersion( params, HttpVersion.HTTP_1_1 );
      HttpProtocolParams.setContentCharset( params, "UTF-8" );
      HttpProtocolParams.setUseExpectContinue( params, true );
  
      SchemeRegistry supportedSchemes = new SchemeRegistry();
      supportedSchemes.register( new Scheme( "https", SSLSocketFactory.getSocketFactory(), 443 ) );
      supportedSchemes.register( new Scheme( "http", PlainSocketFactory.getSocketFactory(), 80 ) );
  
      ClientConnectionManager ccm = new ThreadSafeClientConnManager( params, supportedSchemes );
      HttpClient m_Client = new DefaultHttpClient( ccm, params );
  
      HttpPost httpPost = new HttpPost( post_url );
  
      List&lt;NameValuePair&gt; postParameters = new ArrayList&lt;NameValuePair&gt;();
      postParameters.add( new BasicNameValuePair( "something", "useful" ) );
  
      ResponseHandler&lt;String&gt; responseHandler = new ResponseHandler&lt;String&gt;() {
        @Override
        public String handleResponse( HttpResponse response ) throws ClientProtocolException, IOException {
          if ( response.getEntity() != null ) {
            return EntityUtils.toString( response.getEntity() );
          }
  
          return null;
        }
      };
  
      try {
        UrlEncodedFormEntity entity = new UrlEncodedFormEntity( postParameters, "UTF-8" );
        httpPost.setEntity( entity );
        results = m_Client.execute( httpPost, responseHandler );
  
      } catch ( ClientProtocolException e ) {
        e.printStackTrace();
      } catch ( IOException e ) {
        e.printStackTrace();
      }
    }
  </code></pre>
  
  <p>Eclipse Build id: 20100218-1602 // 3.5.2.R35x<br/>
  Fiddler2 v2.3.2.6<br/>
  jdk1.6.0_21</p>
  
  <p>Please let me know if you need any other information.</p>