LWP::UserAgent credentials netloc and realm

Discussion in 'Perl Misc' started by John Stumbles, May 27, 2005.

  1. Googling for how to get this to work I found that I'm not the only one to
    have difficulties. I eventually found the answer at
    http://groups-beta.google.com/group/comp.lang.perl.misc/browse_frm/thread/5cf8c33182974059/

    Summary: you have to include the port no in the 'netloc' variable e.g.
    credentials("http://abc.com:80", "realm", "uname", "passwd");

    The other thing that threw a lot of people, including me, was what exactly
    'netloc' and 'realm' are. 'realm' is whatever the server is configured to
    ask you e.g. "Enter username and password for foo at abc.com".

    It would be nice to have this explained in the docs but as a 2nd best I hope
    this will come up closer to the top of a google search for anyone asking in
    future.
    John Stumbles, May 27, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. La Jesus
    Replies:
    9
    Views:
    1,294
    Gunnar Hjalmarsson
    Oct 27, 2003
  2. Paul Lemmons

    LWP::UserAgent and SSL is it impossible?

    Paul Lemmons, Nov 11, 2003, in forum: Perl Misc
    Replies:
    4
    Views:
    156
    Pierre Asselin
    Nov 12, 2003
  3. dan baker
    Replies:
    0
    Views:
    99
    dan baker
    Jan 18, 2004
  4. dan baker

    q about LWP:UserAgent credentials()

    dan baker, Jan 19, 2004, in forum: Perl Misc
    Replies:
    4
    Views:
    91
    dan baker
    Jan 20, 2004
  5. T Conti

    LWP::UserAgent and 8bit characters

    T Conti, Sep 7, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    101
    T Conti
    Sep 8, 2004
Loading...

Share This Page