tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Berry <>
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

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 -
 --*--  "All that lives is holy." - William Blake

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message