in reply to Replicating curl's authentication in Perl

So: does anyone know if LWP::UserAgent has issues with usernames containing '@' characters, and does anyone have a suggestion for an alternative method of connecting to the target server?

LWP::UserAgent has no such issue, your program might if you use interpolation ( "fun@stuff" would try to interpolate the array @stuff)

Replies are listed 'Best First'.
Re^2: Replicating curl's authentication in Perl
by kiz (Monk) on Oct 12, 2010 at 11:23 UTC
    That was one of my thoughts, however a data dump of the HTTP::Request object shows that the '@' has propagated through correctly:
    'basic_authentication' => { 'my.host:port' => { 'SWORD' => [ 'me@here', 'myPassword' } },


    -- Ian Stuart
    A man depriving some poor village, somewhere, of a first-class idiot.
      What exactly does curl send? headers and 50bytes of the content should suffice (don't forget to clean the auth headers)