Thanks a lot, it helps me with the "400 URL must be absolute" error. I'm not a programmer, let alone a "PerlMonk". I have to get my knowledge from what I can find on the internet and that is not always clear.

But... now i get a "401 Unauthorized" error. Because I know now the URL must be OK and the user and password are OK, the problem must be the realm (?). I got the in de sub given realm with the script:

lwp-request -e http://88.159.57.235/roots/lines/wielinga/wie-aaa/wie-s +le/wie-hee/wie-bru/pien.htm

with the response:

401 Unauthorized Connection: close Date: Tue, 05 Apr 2022 09:21:04 GMT Accept-Ranges: bytes ETag: "8b2-5d3194c961ede" Server: Apache/2.4.41 (Ubuntu) WWW-Authenticate: Basic realm="Maintenance Guard" Content-Length: 2226 Content-Type: text/html Last-Modified: Tue, 14 Dec 2021 11:14:56 GMT Client-Date: Tue, 05 Apr 2022 09:21:04 GMT Client-Peer: 88.159.57.235:80 Client-Response-Num: 1 Title: Customized Error 401 X-Meta-Author: W.J.Nijs X-Meta-Robots: noindex

Is there an other way to get the right realm?


In reply to Re^2: 400 URL must be absolute by Wijnand
in thread 400 URL must be absolute by Wijnand

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.