Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4123830
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:39:43+00:00 2026-05-20T23:39:43+00:00

In Eclipse there are two places that I’ve attempted to configure so that Fiddler

  • 0

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:

  1. Windows > Preference > General > Network Connections – I’ve tried Native/Direct/Manual
  2. In VM arguments, I add the following -DproxySet=true -DproxyHost=127.0.0.1 -DproxyPort=8888

EDIT: I’ve tried the new properties suggested by rgerganov as well.

I haven’t touched any “network” related settings in Fiddler and I’ve set it to monitor all processes.

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.

EDIT: Here’s the sample code which I’m trying:

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<NameValuePair> postParameters = new ArrayList<NameValuePair>();
    postParameters.add( new BasicNameValuePair( "something", "useful" ) );

    ResponseHandler<String> responseHandler = new ResponseHandler<String>() {
      @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();
    }
  }

Eclipse Build id: 20100218-1602 // 3.5.2.R35x
Fiddler2 v2.3.2.6
jdk1.6.0_21

Please let me know if you need any other information.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T23:39:44+00:00Added an answer on May 20, 2026 at 11:39 pm

    HttpClient needs to be made aware of the proxy information. Several approaches can be used:

    See 2.7 in HTTP Component’s documentation:

    1. “Connect to the target host via a proxy is by setting the default proxy parameter”

      DefaultHttpClient httpclient = new DefaultHttpClient();
      
      HttpHost proxy = new HttpHost("127.0.0.1", 8888);
      
      httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
      
    2. Using “the standard JRE proxy selector to obtain proxy information”

      DefaultHttpClient httpclient = new DefaultHttpClient();
      
      ProxySelectorRoutePlanner routePlanner = new ProxySelectorRoutePlanner(
                  httpclient.getConnectionManager().getSchemeRegistry(), ProxySelector.getDefault());
      
      httpclient.setRoutePlanner(routePlanner);
      

      and then adding the following as VM arguments:

      -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8888 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=8888
      
    3. Custom RoutePlanner implementation (I did not explore this option)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is two available Eclipse plugins for Maven : Eclipse IAM (old name is
There seem to be two rival Eclipse plugins for integrating with Maven: m2Eclipse and
Is there an Eclipse command to surround the current selection with parentheses? Creating a
I am writing Eclipse plugins where there are quite a few running jobs. In
Is there a good Eclipse plugin for recording and playing back macros? I've tried
Are there any good Eclipse plugins for creating smarty templates? I am using Europa
is there something like a Quickfix in Eclipse IDE available in VisualStudio 2008? Thanks,
Is there any plugins for Eclipse for portlet design and deployment? I have never
Is there a way to start an instance of eclipse, passing it some sort
There are many editions of Eclipse for Java development. I am trying out MyEclipse

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.