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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:23:52+00:00 2026-05-31T20:23:52+00:00

I wish to load the web page from BBC rss feed with the HttpGet

  • 0

I wish to load the web page from BBC rss feed with the HttpGet function in my android app. When I get the link from rss feed, and I use

HttpGet request = new HttpGet(link);
ResponseHandler<String> responseHandler = new BasicResponseHandler();
try{
   String response_str = client.execute(request, responseHandler);
   textView.setText(response_str);
   }

For the RSS feed from NY times, I can get the context in their webpage, which means this function at least work for some situation. However, in the BBC new’s cases, I only get a webpage like

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http:///www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

<html xmlns= "http:///www.w3.org/1999/xhtml"
xmlns:og="http://opengraphprotocal.org/schema." xml:lang="en-GB">

I am wondering are there any redirect situation I needs to handle or something? Otherwise it will be strange if this code works for some webpage while not work for others.

Thanks for your reading.

  • 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-31T20:23:53+00:00Added an answer on May 31, 2026 at 8:23 pm

    Not sure what URL you are using, but the following code works for me:

    final String feedURLStr = "http://feeds.bbci.co.uk/news/world/rss.xml?edition=uk#";
    HttpClient client = new DefaultHttpClient();
    HttpGet method = new HttpGet(feedURLStr);
    ResponseHandler<String> handler = new BasicResponseHandler();
    final String responseStr = client.execute(method, handler);
    System.out.println(responseStr);
    

    Verify that you are using a valid feed URL (partial list can currently be viewed here).

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

Sidebar

Related Questions

I wish to load some additional data from javascript in an HTML page. The
I have a large function that I wish to load only when it is
I wish to use a jQuery .load(oracle apex url) query. I have a main
I wish to use QtWebKit to load a url for display, but, that's the
A page on my web site is taking too long to load - about
I have a generalized media player web app that I wish to be able
I wish to load some global defaults in my CakePHP application. E.g. app/config/defaults.php $config['site']['name']='FooBar';
I wish a page to fully load before issuing an ajax call to update
I have a website that I wish to load in a UIWebView, but it
I have a large dataset (over 100,000 records) that I wish to load into

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.