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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:30:56+00:00 2026-06-05T19:30:56+00:00

The documentation for [Ignition][1] is rather sparse. I’m looking at the documentation for the

  • 0

The documentation for [Ignition][1] is rather sparse. I’m looking at the documentation for the HTTP classes, such as link here, but I’m confused.

My current code looks something like this (sanitized version):

client = AndroidHttpClient.newInstance(MyConstants.USER_AGENT);
String url = SaveConstants.MY_URL;
url += "?" + MyConstants.MY_PARAMETER + "=" + parameterValue;
HttpGet request = new HttpGet(url);
InputStream contentStream = null;
try {
    HttpContext httpContext = new BasicHttpContext();
    HttpResponse response = client.execute(request, httpContext);
    contentStream = response.getEntity().getContent();
    String content = Util.inputStreamToString(contentStream);
}

How can I change this over to use the Ignition classes? I have two problems:

  1. I don’t see how to initialize or use IgnitedHttpRequest. There are no constructors and no documentation that seems to explain the use of this class.
  2. Can IgnitedHttpRequest use GET requests, or only POST?
  • 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-06-05T19:30:57+00:00Added an answer on June 5, 2026 at 7:30 pm

    Use the IgnitedHttp class : link

    So,

    new IgnitedHttp(context).get("http://www.example.com") 
    

    Will return IgnitedHttpRequest object that you can call the send() method on.

    See for more info on IgnitedHttpRequest : link

    This send() will return an IgnitedHttpResponse object that you can call the getResponseBodyAsString().

    See for more info on IgnitedHttpResponse :
    link

    All in all,

    new IgnitedHttp(context).get(url).send().getResponseBodyAsString() 
    

    Is the answer to your first question. Your 2nd question’s answer is that IgnitedHttp also has methods for posts, puts, etc.

    here is the sample activity that does a lot of what you may want to do too : https://github.com/mttkay/ignition/blob/master/ignition-support/ignition-support-samples/src/com/github/ignition/samples/support/IgnitedHttpSampleActivity.java

    Enjoy using the best piece of code I’ve found.

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

Sidebar

Related Questions

Various documentation such as http://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git and http://help.github.com/ssh-key-passphrases/ Refer to restarting git bash. How do
feedparser documentation used to be available on http://feedparser.org/ but the URL now says the
http://documentation.mailgun.net/quickstart.html contains some example code for a http handler in Django: # Handler for
The documentation shows - http://google-maps-utility-library-v3.googlecode.com/svn/tags/keydragzoom/1.0/docs/examples.html function init(){ var myOptions = { zoom: 13, center:
The documentation , implies that the connection is always remotely available, but since I
The documentation we can use auto_import if we need access to the data but
Ravendb documentation says to simply set the DataDirectory name before initializing the DocumentStore, but
Documentation states that 'handleResponseEnd' is called when the response has been completely received. http://twistedmatrix.com/documents/11.0.0/api/twisted.web.http.HTTPClient.html#handleResponseEnd
The documentation says: http://docs.djangoproject.com/en/dev/ref/settings/#time-zone Note that this is the time zone to which Django
Documentation says that waypoints limit is 8 points. But I have to draw a

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.