Adding POST-parameters before a sendRedirect

Posted on 2009-12-17
Last Modified: 2012-06-27
Hey guys,

Not even sure if this is even possible, perhaps it's even so simple I'll smack myself when you tell me... Due to a rather weird requirement I need to process a POST request (or rather the results of a user posting some information via form) and then I need to rewire some of that information and send the user along to a different server, with the new information as the body of the request.

I though it'd be a simple manner of adding some bits and pieces to either the request or the response, but I've been sorely mistaken. Does any of you see a way out of this?


Question by:mreuring
    LVL 92

    Accepted Solution

    redirects do a GET, pretty sure you can't do a POST
    LVL 17

    Author Closing Comment

    I didn't stop looking and it seems technically impossible to do. POST data is always sent by the browser, possibly the POST data remains intact during a redirect, but it's certainly not possible to add content to the POST data. GET is not an option, sensitive data should never show up in a url as far as I'm concerned, so the other party will have to change their solution.
    Thank you for confirming this though!

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now