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 6922789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:27:07+00:00 2026-05-27T10:27:07+00:00

I am behind a proxy. I have the proxy details. However I am not

  • 0

I am behind a proxy. I have the proxy details. However I am not sure how to use these details to connect to twitter.

I have looked at the documentations so I am aware of the methods:

setHttpProxy(java.lang.String proxyHost, int proxyPort)
void setHttpProxyAuth(java.lang.String proxyUser, java.lang.String proxyPass)

But it is not possible to use them as, Eclipse draws a red line underneath them.
Do I need to import or initialise anything before using these methods?

  • 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-27T10:27:07+00:00Added an answer on May 27, 2026 at 10:27 am

    Could you try adding the properties

    http.proxyHost=yourProxyHost
    http.proxyPort=yourProxyPort
    

    to the twitter4j.properties ?

    More about properties for twitter4j at http://twitter4j.org/en/configuration.html

    Note that twitter4j lacks proxy-support in versions earlier then 2.1.4 ref this thread:
    Twitter4j HTTPClient ProxyServer and Java

    Hope it helps 🙂

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

Sidebar

Related Questions

I have an LCDS server sitting behind a corporate proxy/firewall. I need to use
My BB emulator cannot connect to the internet. I'm behind a proxy and have
I would like to use the net/imap library in ruby behind a authenticated proxy,
A client is unable to use my webpart because he is behind a proxy
I have an android application(Android 2.2) accessing internet behind proxy. I have tried setting
We have a Spring 3 app with Spring Security behind a Squid proxy. The
I'm having a problem with Maven behind a squid proxy server. I have a
I have web application that is behind a proxy. If the user has logged
I have a problem executing unit tests in Eclipse behind a proxy, as the
I'm stuck behind a firewall, so I have to use HTTPS to access my

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.