actually i want to intercept the incoming Http request packet.My goal is to implement reverseHTTP ,so when ever i get a http request on tomcat form client (call it xyz web server which is customized to make http request) i want to read its header and if in its header something like "PTTH" (reverseHTTP) is found then tomcat will generates a http request to the client (xyz web server)...thanks for reply
Actually, sounds like a Valve, if it's not application-specific. But I've got to admit that messing around with protocol structures sounds like an over-complicated solution. If the client knows enough about this customized Tomcat to formulate a callback request, it should also be capable for sending normal app requests to do the same thing.
An IDE is no substitute for an Intelligent Developer.
Joined: Aug 29, 2012
Ya tim correct but in general scenario server always give http respose to client not http request ....not all way server will expose underlying socket , so that instead of sending a respose message server let you send a request message to the client ,,,read this http://reversehttp.net/