Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by hippo (Bishop)
on Oct 14, 2021 at 16:29 UTC ( [id://11137520]=note: print w/replies, xml ) Need Help??


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

If you don't want interpolation, don't use double quotes.


🦛

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

Replies are listed 'Best First'.
Re^6: Escape user name and password in LWP proxy call.
by Anonymous Monk on Oct 14, 2021 at 17:30 UTC

    What if it is there in the variables which has value taken from file.
    so if variable has prod\user, to interpolate i would need to use double quotes in the url, like "${user}:", isn't it.

      Still works fine:

      use strict; use warnings; use URI::Escape; use Test::More tests => 1; my $user = 'prod\user'; my $have = uri_escape ("${user}:"); my $want = 'prod%5Cuser%3A'; is $have, $want;

      Why don't you provide an SSCCE?


      🦛

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-25 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found