Html download challenge
- From: "Paul Battersby" <batman42ca@xxxxxxxx>
- Date: Thu, 30 Jun 2005 09:26:38 -0400
I've spent days poking around the internet, reading help information, trying
to find working source code but no luck so far.
My problem, on the surface and to someone who knows what he/she is doing,
should be easy to solve.
All I want to do is download the HTML from the following url:
http://www.google.com/search?q=business
Sounds simple. I can type that into a browser and I will get a page full of
information. I try to download that using a Java program, and the server
seems to know I am not a browser (my code works with other Urls just fine).
I figure I need to pass some sort of header information or something so that
I appear to be a browser.
So, what I'm looking for, if anyone is up to the challenge, is a small piece
of Java source code that is capable of downloading the HTML from the above
mentioned url and printing it to the screen.
On my own, I think I'm looking at a pretty big learning curve (low level
HTTP protocol) to sort this out.
Any help is of course greatly appreciated.
.
- Follow-Ups:
- Re: Html download challenge
- From: Roedy Green
- Re: Html download challenge
- From: Tor Iver Wilhelmsen
- Re: Html download challenge
- From: Patricia Shanahan
- Re: Html download challenge
- From: Andrea Desole
- Re: Html download challenge
- Prev by Date: Re: Ant targets
- Next by Date: Re: Html download challenge
- Previous by thread: Code Review Request
- Next by thread: Re: Html download challenge
- Index(es):
Relevant Pages
|