hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joan Balagueró <joan.balagu...@grupoventus.com>
Subject IP transparency
Date Tue, 30 Jul 2013 16:02:33 GMT
Hello,

 

I have developed a proxy servlet with an xml cache, running in a Tomcat 6. 

 

When the incoming xml request is not found in the proxy cache, I use
HttpClient 4.2.5 to create a new http request (PoolingConnection) and
redirect it to the client application servers to get the xml response. 

 

So far, everything worked ok with all our clients. But now we’ve a client
that needs ip transparency. Then, the request created by httpclient needs to
include the origin ip address, not the proxy ip (the client app reads this
IP using request.getRemoteAddr(), and this is something that they cannot
change now. Therefore, things like adding a ‘X-Forwarded-for’ header cannot
be implemented in this scenario).

 

Is this possible? Has anyone found an scenario like this?

 

Thanks in advance,

 

Joan.

 

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message