tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Berry <cbe...@cine.net>
Subject Recreate a request for posting to a different server
Date Thu, 11 Apr 2002 19:47:02 GMT
I have a design in which a POST request is received by Tomcat, passing
through several Filters which munge both headers and payload before
reaching a servlet which must recreate the (modified) request as a POST to
an external server, modifying only essential headers and the URI
requested.

Two questions:

(1) Is there a way to build the text of the outbound request simpler
    that iterating over headers, cookies, and payload, 'manually' writing
    each as appropriately formatted text to the outbound request?

(2) Is there a way to build the resulting response object simpler than
    'manually' parsing the response text and turning it into header,
    cookie, and payload entries?

-- 
   |   Craig Berry - http://www.cinenet.net/~cberry/
 --*--  "All that lives is holy." - William Blake
   |


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message