Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Value not being interpreted

by tangent (Parson)
on Dec 30, 2021 at 22:00 UTC ( [id://11140043]=note: print w/replies, xml ) Need Help??


in reply to Value not being interpreted

As pointed out you need to escape the ampersand in 'Joe & Jane' but you do not want to escape the other ampersand in 'CID&f6'. Other characters may also need escaping so best to use a module:
use URI; my $uri = URI->new('www.mysite.com/cgi-bin/customer_info_get.pl'); $uri->query_form( f5 => 'CID', f6 => 'Joe & Jane', ); print "$uri";
Output:
www.mysite.com/cgi-bin/customer_info_get.pl?f5=CID&f6=Joe+%26+Jane

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11140043]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-25 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found