http://qs1969.pair.com?node_id=11137517


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.