in reply to xmlhttpreq-setup POST Headers

The POST data formatting for www/x-www-form-urlencoded requests is just the same as the formatting for GET, only the data goes in the request body instead of at the end of the URL. You could use URI::Escape

use URI::Escape; my $postbody; while (my ($key,$value) = each %params) { $postbody .= "&" if defined $postbody; $postbody .= uri_escape($key)."=".uri_escape($value); }

Replies are listed 'Best First'.
Re^2: xmlhttpreq-setup POST Headers
by soldierdog (Initiate) on May 11, 2005 at 16:49 UTC
    Thanks for the reply, One question, I just did a search on CPAN and couldn't find URI::Escape. I'm probably missing something silly, could you point me in the right direction?