Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Adding POST-parameters before a sendRedirect

Posted on 2009-12-17
Medium Priority
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

objects earned 2000 total points
ID: 26076143
redirects do a GET, pretty sure you can't do a POST
LVL 17

Author Closing Comment

ID: 31667356
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

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In this post we will learn different types of Android Layout and some basics of an Android App.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
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…
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

580 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