in reply to Re: http POST + authentication
in thread http POST + authentication

my $request = new HTTP::Request::Common::POST("$URL",
adding the "new" gives me this error:
"Bareword found where operator expected at ./test.pl line 19, near "ne +w HTTP::Request::Common::POST" (Do you need to predeclare new?)"
If I understand correctly, I have already created a new session with
$ua = LWP::UserAgent->new;

Replies are listed 'Best First'.
Re: Re: Re: http POST + authentication
by fruiture (Curate) on Dec 30, 2002 at 18:20 UTC

    The "indirect object" syntax is source of many syntax problems. Rather omit it in order not to encounter such trouble.

    my $request = HTTP::Request::Common::POST->new("$URL", #...

    In the end, this is Perl and needn't look like Java or C++

    --
    http://fruiture.de