.
In an earlier post, I'd asked how to pass POST data off to different CGI scripts, depending on the user input. I was pointed to using redirect. But I couldn't get it to pass the POST data correctly. In the CB, I found out that:
According to subdir.com, the original www standard said that, upon encountering a redirect, browsers should re-submit the request to the new address with the POST data unchanged.
But browsers (except Lynx) don't do this correctly and servers don't generally handle it right, anyways.
If you are passing a small amount of data, it can be munged into the URI of the redirect (which will have a REQUEST_TYPE of GET):
Status: 302 Moved
Location: http://example.com/target.html?color=blue&media=crayon
If you're needing to pass larger amounts of data, or if you're not wanting to pass it in a GET for other reasons (like form-spoofing security issues) then you're probably trying to cobble together a session. Use CGI::Session instead.