develooper Front page | perl.libwww | Postings from August 2001

LWP::UserAgent - browser simulation

Thread Next
From:
Marc Power
Date:
August 29, 2001 19:15
Subject:
LWP::UserAgent - browser simulation
Message ID:
LKEKJMAGLPEIIBNAJMMOKEMLCHAA.mpower@megapathdsl.net
Hi, this is my first ever post here so please forgive me if
my answer is obvious.

my program has the lines:

my $req = POST 'http://xxx.yyy.com',
               [ xxx => 'test1', proceed => '+Click+here+' ];

my $content = $ua->request($req)->as_string;

the output is:

xxx=test1&proceed=%2BClick%2Bhere%2B

a browser produces:

xxx=test1&proceed=+Click+here+

how can I inhibit the encoding please?

Marc

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About