Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Aw: Re: Aw: Re: HTTP traffic over a custom proxy server?

Reply
Thread Tools

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

 
 
Knorpi
Guest
Posts: n/a
 
      06-24-2011
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
 
Reply With Quote
 
 
 
 
Lew
Guest
Posts: n/a
 
      06-26-2011
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/wikipedi.../c/cf/Friz.jpg
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IllegalArgumentException with Socket API and Proxy with Proxy.Type.HTTP Greg Java 4 08-16-2012 08:26 PM
HTTP traffic over a custom proxy server? Knorpi Java 5 06-28-2011 07:22 AM
Aw: Re: HTTP traffic over a custom proxy server? Knorpi Java 3 06-26-2011 06:04 PM
VOIP over VPN over TCP over WAP over 3G Theo Markettos UK VOIP 2 02-14-2008 03:27 PM
Using an HTTP proxy to record web traffic Dan Kohn Ruby 2 12-03-2005 12:00 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57