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

The Archive Base Latest Questions

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

I aldready succed retrieving http values from the web. However, I still rarely have

  • 0

I aldready succed retrieving http values from the web.

However, I still rarely have an idea how I retrieved value from the web.

I have a code. But, without understanding it, what is it for?

So… I want to ask three things to understand my code.

HTTPGet, HTTPClient, EntityUtils.

I am just guessing what HTTPGet does is grabbing http data which made by http coding.

and I am guessing HTTPClient is for data encapsulation.

and.. EntityUtils? I really dont have a idea. what is entitiy? why do I need this

to get HTTPresponse as a string? what does he do?

below is my code.

    HttpGet get = new HttpGet(tempURL); 
    HttpClient httpclient = new DefaultHttpClient();
    HttpResponse response = httpclient.execute(get); 
    String responseBody = EntityUtils.toString(response.getEntity());    
  • 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-30T09:22:26+00:00Added an answer on May 30, 2026 at 9:22 am

    When you send a HTTP request by using GET or POST method, it will send you a response. If there is nothing to send, at least the server sends the status code. As an example 200 status code stands for “OK”.

    So, by using EntityUtils, or

    InputStream inputStream = httpResponse.getEntity().getContent();
    

    will give you the response in a human readable format. If you have send a request to a PHP page you will echo values as response. These are two examples for GET and POST to understand with full Android source code and PHP source code.

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

Sidebar

Related Questions

I have a custom ActiveX control that is used by web pages in IE.
I already have a deploy.rb that can deploy my app on my production server.
We already have things like static analysis that tells us what's wrong with our
I tried to switch from Java 5 to Java 6 using the update-java-alternatives command
I have a fairly simple domain model involving a list of Facility aggregate roots.
I am trying to deploy the Bugtracker.NET tool ( http://ifdefined.com/bugtrackernet.html ), which is a
Allowing NULL values on a column is normally done to allow the absense of
I want to make a captcha validation. I get the key from the recaptcha
I want to remove index.php from url but so far i couldn't succeed it.
By creating datastore models that inherit from the Expando class I can make 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.