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);
}
| [reply] [d/l] |
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?
| [reply] |