At 11:19 AM -0700 8/29/01, Rasoul Hajikhani wrote:
>Robert Landrum wrote:
>>
>> > > Which should solve your problems (I think).
>> >
>> >I am affraid it did not work. I have no problem reading the data in the
>> >current handler, but right after redirect, which is also required to
>> >read the data, I loose all the POSTED data.
>>
>> Performing a redirect causes posted data to be discarded.
>
>Did not find that in docs! maybe should pay more attention :(
I'm sure it's in the docs somewhere, but personal experience and
previous posts to this list have addressed this issue.
> > Your goal should be to convert
>
>?? You lost me there... "convert"? convert to what?
Convert as in from POST request to GET request.
sub escaped {
my $val = shift;
$val =~ s/(\W)/sprintf("%%%.2X",ord($1))/g;
return $val;
}
my $content = join('&',map{$_."=".escaped($r->param($_))}($r->param));
my $internal_url = "/some/path/to/handler?$content";
$r->internal_redirect($internal_url);
>
>>all of your posted data so that it can be passed via GET.
>
>Would it make any diference if the method, and method_number remained
>POST? Does this situation occure as a result of method conversion? (I
>will try that)...
Unlikely.
>
>-r
>
>PS: Something wrong with the mail server?
Uhh... Why?
Rob
--
"A good magician never reveals his secret; the unbelievable trick
becomes simple and obvious once it is explained. So too with UNIX."