HTTP::Request benutzt
HTTP::Headers, das beispielsweise eine Methode authorization_basic() kennt, um User/Passwort zu definieren.
perldoc HTTP::Request$r = HTTP::Request->new( $method, $uri, $header, $content )
Constructs a new HTTP::Request object describing a request on the object $uri using method $method. The $method argument must be a string. The $uri argument can be either a string, or a reference to a URI object. The optional $header argument should be a reference to an HTTP::Headers object or a plain array reference of key/value pairs. The optional $content argument should be a string of bytes.
Die Frage bleibt aber offen, ob Dir Basic Authentication reicht, oder ob Du da noch was anderes brauchst/suchst... Schau Dir also mal
HTTP::Headers an.
Last edited: 2016-01-12 17:55:56 +0100 (CET)
meine Beiträge: I.d.R. alle Angaben ohne Gewähr und auf Linux abgestimmt!
Die Sprache heisst Perl, nicht PERL. - Bitte Crossposts als solche kenntlich machen!