You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Paul Johnston <pa...@tm-ltd.co.uk> on 2002/05/22 16:07:15 UTC

org.apache.soap.util.net.TcpTunnelGui

I have made a couple of minor changes to the Relay class and would
appreciate some comments.

The problem is that the Host HTTP header parameter is incorrect when using
HTTP 1.1 web servers.  The server requires that the parameter be looking for
the specific website server name (ie http://www.google.com) and not
localhost:port.

The changes are in the relay.java and tcpTunnelGui.java (attached).  The
change is mainly in the run() method, but there are a couple of other minor
changes in both files to allow for passing of the remote hostname to the
Relay object.

Paul

Re: [PATCH] org.apache.soap.util.net.TcpTunnelGui

Posted by Scott Nichol <sc...@yahoo.com>.
Paul,

I had a quick look at the patch.  The problem it is
aimed at does need work.  I am worried, though, that
the patch changes all occurrences of Host: xxxxx
within both the request and response streams.   Do you
think you could do a little more work to only change
Host headers in an HTTP request?

Thanks.

Scott Nichol

--- Paul Johnston <pa...@tm-ltd.co.uk> wrote:
> I have made a couple of minor changes to the Relay
> class and would
> appreciate some comments.
> 
> The problem is that the Host HTTP header parameter
> is incorrect when using
> HTTP 1.1 web servers.  The server requires that the
> parameter be looking for
> the specific website server name (ie
> http://www.google.com) and not
> localhost:port.
> 
> The changes are in the relay.java and
> tcpTunnelGui.java (attached).  The
> change is mainly in the run() method, but there are
> a couple of other minor
> changes in both files to allow for passing of the
> remote hostname to the
> Relay object.
> 
> Paul
> 

> ATTACHMENT part 2 application/octet-stream
name=Relay.java


> ATTACHMENT part 3 application/octet-stream
name=TcpTunnelGui.java



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>


Re: [PATCH] org.apache.soap.util.net.TcpTunnelGui

Posted by Scott Nichol <sc...@yahoo.com>.
Paul,

I had a quick look at the patch.  The problem it is
aimed at does need work.  I am worried, though, that
the patch changes all occurrences of Host: xxxxx
within both the request and response streams.   Do you
think you could do a little more work to only change
Host headers in an HTTP request?

Thanks.

Scott Nichol

--- Paul Johnston <pa...@tm-ltd.co.uk> wrote:
> I have made a couple of minor changes to the Relay
> class and would
> appreciate some comments.
> 
> The problem is that the Host HTTP header parameter
> is incorrect when using
> HTTP 1.1 web servers.  The server requires that the
> parameter be looking for
> the specific website server name (ie
> http://www.google.com) and not
> localhost:port.
> 
> The changes are in the relay.java and
> tcpTunnelGui.java (attached).  The
> change is mainly in the run() method, but there are
> a couple of other minor
> changes in both files to allow for passing of the
> remote hostname to the
> Relay object.
> 
> Paul
> 

> ATTACHMENT part 2 application/octet-stream
name=Relay.java


> ATTACHMENT part 3 application/octet-stream
name=TcpTunnelGui.java



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com