Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: URL white space issues

by 2teez (Priest)
on Sep 28, 2012 at 15:32 UTC ( #996243=note: print w/replies, xml ) Need Help??


in reply to URL white space issues

There are two modules you might like to check.
Namely:

Using URI::Escape, you can get back, your original URL, like so:
use warnings; use strict; use URI::Escape; my $url = "http://192.168.1.50/cgi-bin/in%20dex.cgi?action=vi%20ew due + to %20"; my $uri = uri_unescape($url); print $uri; # http://192.168.1.50/cgi-bin/in dex.cgi?action=vi ew due + to
But really, I will advice, you seriously consider sierpinski's wisdom on this issue.
Hope this helps

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996243]
help
Chatterbox?
[marioroy]: Yes. I've been working on MCE and MCE::Shared. These are completed and released. MCE 1.830 and MCE::Shared 1.831. Saw the LWP::Simple and P::FM thread and thought to help out.
[marioroy]: Today, wanted to revisit running parallel Re: Crash with ForkManager on Windows. I tried running on Cygwin for comparison.
[marioroy]: Running parallel on Cygwin feels like running on Unix ;-)
[marioroy]: Fortunately, Strawberry Perl v5.26 runs well.
[karlgoethebier]: marioroy: He! Magic Mushrooms was a talk in the CB some days ago ;-)

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2017-09-23 16:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (272 votes). Check out past polls.

    Notices?