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() );