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

K

Knorpi

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
 
L

Lew

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top