perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert <rob...@robert.cz>
Subject Re: Posting data when redirecting to a page
Date Thu, 02 Jan 2003 11:07:35 GMT
Gerald Richter wrote:

>>I have a beginner's question.
>>
>>I'm trying to redirect the program flow to another .htm page using
>>$http_headers_out{Location} but I also want to pass a message ($msg) to
>>    
>>
>the
>  
>
>>new page using POST method.
>>    
>>
>
>You can't do a POST request as an redirect, but you can do a GET to pass the
>data
>[-
>$r = shift ;
>$http_headers_out{Location}="acc_admin.htm?msg=" . $r -> Escape ($msg, 2) ;
>  
>
  Which will not work for long query strings (had a lot of fun debugging 
this one...)

  Save the data somewhere and send only data id - or even better, use 
Apache/Embperl sessions.

- Robert


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message