For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > May 2005 > LWP::UserAgent credentials netloc and realm









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author LWP::UserAgent credentials netloc and realm
John Stumbles

2005-05-27, 4:00 pm

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...f8c33182974059/

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.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com