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

Or have i use the URI instead of the URL for $url with the user and pass in the URI? Is that save?

Replies are listed 'Best First'.
Re^4: 400 URL must be absolute
by hippo (Archbishop) on Apr 05, 2022 at 10:45 UTC

    You have been using http instead of https throughout so nothing is safe.


    🦛

Re^4: 400 URL must be absolute
by soonix (Chancellor) on Apr 05, 2022 at 11:50 UTC
    use the URI instead of the URL

    Recommended reading: The Difference Between a URL, URI, and a URN

    Every URL is an URI, but not every URI is an URL. URLs can have a userinfo part, but nowadays that is considered insecure (especially if a password is included) and rarely used anymore.