Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #5640

Aw: Re: Aw: Re: HTTP traffic over a custom proxy server?

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From Knorpi <alpineblaster@googlemail.com>
Newsgroups comp.lang.java.programmer
Subject Aw: Re: Aw: Re: HTTP traffic over a custom proxy server?
Date Fri, 24 Jun 2011 06:01:37 -0700 (PDT)
Organization http://groups.google.com
Lines 19
Message-ID <c1091835-255d-4d29-b0b3-d6045c31fbf9@glegroupsg2000goo.googlegroups.com> (permalink)
Reply-To comp.lang.java.programmer@googlegroups.com
NNTP-Posting-Host 195.200.70.41
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1308920497 17569 127.0.0.1 (24 Jun 2011 13:01:37 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Fri, 24 Jun 2011 13:01:37 +0000 (UTC)
In-Reply-To <HTTP-20110624132643@ram.dialup.fu-berlin.de>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=195.200.70.41; posting-account=rmzzFAoAAAAb1YXybf1oC4BKMviI-3dl
User-Agent G2/1.0
X-Google-Web-Client true
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5640

Show key headers only | View raw


The htmlunit tip is great!

HtmlPage page = webClient.getPage(myURL);

This delivers the whole page, fine parsed with the DOM structure.

So I assume I can do the following things now:

- change all URLs in the document
- return the page content as a raw byte stream to the client

Well, page.asXml() delivers an XML stream, which is shown as XML code by the browser.

I also didn't find anything in the docs.

Could you point me into the right direction?

Thanks
Magnus

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar


Thread

Aw: Re: Aw: Re: HTTP traffic over a custom proxy server? Knorpi <alpineblaster@googlemail.com> - 2011-06-24 06:01 -0700
  Re: Aw: Re: Aw: Re: HTTP traffic over a custom proxy server? Lew <noone@lewscanon.com> - 2011-06-26 14:05 -0400

csiph-web