Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Escape user name and password in LWP proxy call.

by Anonymous Monk
on Oct 14, 2021 at 16:21 UTC ( #11137517=note: print w/replies, xml ) Need Help??


in reply to Re^2: Escape user name and password in LWP proxy call.
in thread Escape user name and password in LWP proxy call.

UPDATE: uri_escape, doesn't seem escaping (\) in username.

  • Comment on Re^3: Escape user name and password in LWP proxy call.

Replies are listed 'Best First'.
Re^4: Escape user name and password in LWP proxy call.
by hippo (Bishop) on Oct 14, 2021 at 16:27 UTC

    Sure it is:

    use strict; use warnings; use URI::Escape; use Test::More tests => 2; my $foo = 'a\b'; my $have = uri_escape ($foo); my $want = 'a%5Cb'; isnt $have, $foo; is $have, $want;

    🦛

A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2021-11-27 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?