I didn't have much luck with that. I used +comms but that didn't give me any info:

smpd9$ ./test.pl Error: Error accessing 401 Authentication Required at https://csgl02:8082/Secure/Local/console/documentation.htm Aborting at ./test.pl line 32. smpd9$

Here's an extract from HTTP Live Headers::

https://csgl02:8082/Secure/Local/console/documentation.htm GET /Secure/Local/console/documentation.htm HTTP/1.1 Host: csgl02:8082 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Ge +cko/20040206 Firefox/0.8 Accept: application/x-shockwave-flash,text/xml,application/xml,applica +tion/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png +,image/jpeg,image/gif;q=0.2,*/*;q=0.1 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive HTTP/1.x 401 Authentication Required WWW-Authenticate: Basic realm="Blue Coat Proxy SG" refresh: 0;URL="/Secure/Local/console/logout.htm" Server: BlueCoat-Security-Appliance Pragma: no-cache Cache-Control: no-cache Set-Cookie: BCSI_MC=267053511:1; path=/ Content-Type: text/plain ---------------------------------------------------------- https://csgl02.:8082/Secure/Local/console/documentation.htm GET /Secure/Local/console/documentation.htm HTTP/1.1 Host: csgl02:8082 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Ge +cko/20040206 Firefox/0.8 Accept: application/x-shockwave-flash,text/xml,application/xml,applica +tion/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png +,image/jpeg,image/gif;q=0.2,*/*;q=0.1 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Authorization: Basic dTc1MjM1OTpwdXNhbjI2 Cookie: BCSI_MC=267053511:1 HTTP/1.x 200 OK Server: BlueCoat-Security-Appliance Pragma: no-cache Cache-Control: no-cache Set-Cookie: BCSI_MC=267053558:0; path=/ Content-Length: 9244 Content-Type: text/html ----------------------------------------------------------

Can you spot what I'm doing wrong?

js1.


In reply to Re^2: LWP Credentials by Anonymous Monk
in thread LWP Credentials by js1

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.