Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Aw: Re: Aw: Re: HTTP traffic over a custom proxy server? Date: Sun, 26 Jun 2011 14:05:00 -0400 Organization: albasani.net Lines: 26 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net C6JxFHmzXcVqnNpdTfR9hEtEwgecpGQsjiPxw5uIntji0VR+zSpVfR2wPWnOwSu+4jtL9S32ITeG9gCsCpL57jvq3HarFByZjjwOvQyQ6lN1Z7MdSvpmpsBGuvAidOtg NNTP-Posting-Date: Sun, 26 Jun 2011 18:04:56 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="jSVyGnfc/J4XQDubpykxuUzhiz4vqr2OUpqRDUWM81WecO7mdXwOr4dawt+hsJuZCQ5e1JOKoOWXegbqhkBIoG4gzciTY8A3VHeK+TRYbQHhSIJf00sgdL9lQ+Bm7+eR"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:7G5bXX+ynxWMn7mIqilqVP4kr1Q= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5682 On 06/24/2011 09:01 AM, Knorpi wrote: > 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? > The right direction is to stop using Google Groups in such a way that it breaks the conversational thread. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg