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

  • SEARCH
  • Home
  • 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 6566797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:15:30+00:00 2026-05-25T14:15:30+00:00

I’m trying to test a simple search method in twitter4j. My code is public

  • 0

I’m trying to test a simple search method in twitter4j. My code is

public void searchTweets(Query searchQuery) {
    QueryResult queryResult = null;

    try {
        queryResult = twitter.search(searchQuery);
    } catch (TwitterException e) {
        log.error("Unable to search query = {}", searchQuery, e);
    }
}

When i test this above code, i’m getting the following output. How should I disable this output which contains request information?

- Request:
- GET http://search.twitter.com/search.json?q=Sports&since_id=111374710708768768

- OAuth base string: GET&http%3A%2F%2Fsearch.twitter.com%2Fsearch.json&oauth_con
sumer_key%3DABk1pJ6bd5LWcf1lsIa9g%26oauth_nonce%3D914173077%26oauth_signature_me
thod%3DHMAC-SHA1%26oauth_timestamp%3D1315388678%26oauth_token%3D73081379-KQOkj6E
g4uBdUXSzlpvbtdb5OWOLXD3mxVo9nrdRV%26oauth_version%3D1.0%26q%3DSports%26since_id
%3D111374710708768768
- OAuth signature: oUszlR4fGxq8JiqXNFf+t6SgXdA=
- Authorization: ***************************************************************
********************************************************************************
********************************************************************************
*************************************************
- X-Twitter-Client-URL: http://twitter4j.org/en/twitter4j-2.2.5-SNAPSHOT(build:
5f9c44cd0e0c1972f8d17653a226b9b6a3392ac2).xml
- X-Twitter-Client: Twitter4J
- Accept-Encoding: gzip
- User-Agent: twitter4j http://twitter4j.org/ /2.2.5-SNAPSHOT(build: 5f9c44cd0e0
c1972f8d17653a226b9b6a3392ac2)
- X-Twitter-Client-Version: 2.2.5-SNAPSHOT(build: 5f9c44cd0e0c1972f8d17653a226b9
b6a3392ac2)
- Response:
- HTTP/1.1 200 OK
- Age: 0
- Content-Length: 1107
- Expires: Wed, 07 Sep 2011 09:51:30 GMT
- Connection: close
- Server: hi
- Cache-Control: max-age=15, must-revalidate, max-age=300
- X-Varnish: 513089989
- Vary: Accept-Encoding
- Date: Wed, 07 Sep 2011 09:46:30 GMT
- Content-Encoding: gzip
- Via: 1.1 varnish
- Content-Type: application/json;charset=utf-8

- text='Montague Action Cricket: Titans 8 be at Forfeit +10 (10 - 1) http://t.co/2RbMzpK' 
  • 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-25T14:15:31+00:00Added an answer on May 25, 2026 at 2:15 pm

    Add this to log4j.properties: log4j.logger.twitter4j.internal.http=warn

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

Sidebar

Related Questions

I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
public static bool CheckLogin(string Username, string Password, bool AutoLogin) { bool LoginSuccessful; // Trim
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka

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.