Get requests not being very sexy, sending parameters to the PHP scripts was supposed to be done using the internal redirect feature of apache. My hosting service, however, thinks that mod_perl is a big security flaw, which leaves me hanging.
Is there any way of redirecting to a different URL with POST data?
It's probably burried in the HTTP specs, but i can't seem to find it.
print "Location: $url\n";
... something needed here ;) ...
print "\n";
I found this very good article on the subject, which says it's basically not really possible... or more to the point, you can just about hack it!
[ppeph.gla.ac.uk...]
I think i'll have the perl script call the php itself, and return the content. All i need then is to get the browser to display the second url (not the script's). I'm sure that's in the HTTP doc ;)
I believe the excite add-url does a POST redirect to to a GET with a query string, if you want to see how someone else is doing it.
[excite.com...]
The Content-Location value is not a replacement for the original
requested URI; it is only a statement of the location of the resource
corresponding to this particular entity at the time of the request.
It turns out it doesn't work at all :(
Excite does in fact turn a POST request into a GET, and they use the standard notation (?key=val) in their second page. It looks very amateurish, i'm trying to avoid that ;)
I think your idea of a cookie is the only remaining option...
Thanks for your help.
Alex