Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Re: encoding URLs in URLs

by Roy Johnson (Monsignor)
on Apr 19, 2004 at 21:29 UTC ( [id://346471]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $url = 'http://www.myothersite.com/myotherwebapp2/foo.asp?param=1&p
    +aram=3';
    
    ...
    print "Using URI Escape:\n";
    $esc_url = uri_escape($url);
    print "$url\nbecomes\n$esc_url\n";
    
  2. or download this
    Using CGI Escape:
    http://www.myothersite.com/myotherwebapp2/foo.asp?param=1&param=3
    ...
    http://www.myothersite.com/myotherwebapp2/foo.asp?param=1&param=3
    becomes
    http%3A%2F%2Fwww.myothersite.com%2Fmyotherwebapp2%2Ffoo.asp%3Fparam%3D
    +1%26param%3D3
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-20 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found