Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

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

 
 
Knorpi
Guest
Posts: n/a
 
      06-24-2011
Ok, but how can I then realize this:

- open a web page on a server x with a submit form
- enter a web address into the form and press submit
- the wanted web page is fetched by server x and served to client

Meaning: The client only communicates with server x.

Magnus
 
Reply With Quote
 
 
 
 
Stefan Ram
Guest
Posts: n/a
 
      06-24-2011
Knorpi <> writes:
>Ok, but how can I then realize this:
>- open a web page on a server x with a submit form


In HTTP, web pages are not »opened«. There are HTTP requests
sent and HTTP responses received (or sent, depending on the
point of view).

>- enter a web address into the form and press submit


Your description is worded in terms of the browser's
user experience. You need to understand how this is
realized using HTML and HTTP, to properly implement
it in Java by reading RFC 2616 and the HTML 4.01
recommendation or use a library such as

http://htmlunit.sourceforge.net/

. I do not know JEE that well, so maybe I miss something,
but to write an HTTP proxy, I would not use servlets, but

proxyServerSocket = new java.net.ServerSocket( proxyPort );
while( true )method( proxyServerSocket.accept() );

 
Reply With Quote
 
 
 
 
Lars Enderin
Guest
Posts: n/a
 
      06-24-2011
2011-06-24 13:02, Knorpi skrev:
> Ok, but how can I then realize this:
>
> - open a web page on a server x with a submit form
> - enter a web address into the form and press submit
> - the wanted web page is fetched by server x and served to client
>
> Meaning: The client only communicates with server x.
>


Please don't use the new Google Groups interface. It breaks Usenet threads.

 
Reply With Quote
 
Lew
Guest
Posts: n/a
 
      06-26-2011
On 06/24/2011 08:27 AM, Lars Enderin wrote:
> 2011-06-24 13:02, Knorpi skrev:
>> Ok, but how can I then realize this:
>>
>> - open a web page on a server x with a submit form
>> - enter a web address into the form and press submit
>> - the wanted web page is fetched by server x and served to client
>>
>> Meaning: The client only communicates with server x.
>>

>
> Please don't use the new Google Groups interface. It breaks Usenet threads.


+1

--
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: Aw: Re: HTTP traffic over a custom proxy server? Knorpi Java 1 06-26-2011 06:05 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