develooper Front page | perl.libwww | Postings from December 2000

Authentication and POST

From:
Hsiao, Weber
Date:
December 26, 2000 23:24
Subject:
Authentication and POST
Message ID:
D0517AEA3550D311A9B70060970C719A9EA59F@ltnsvex3.xyplex.com

> Hello,
>
> I'm trying to write a script that submits form data using POST e.g.,
> $ua->request (POST $some_url, ['some_variable'=>'some_value']); .
>
> Each time data is submitted it must be authenticated i.e., a username
and
> password must be included in the HTTP header.
>
> I tried using $req = basic_authorization($username,$password),
however,
this
> simply sends a HTTP request with the username and password, but none
of
the
> data specified in the POST.
>
> How do I include the authentication information along with the data in
a
> single POST?
>
> Thanks!
>
> Weber Hsiao
>
>



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About