Home > Archive > PERL CGI Beginners > August 2005 > Problem with https post using LWP
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Problem with https post using LWP
|
|
| Denzil Kruse 2005-08-02, 9:00 am |
| Hi all,
I'm trying send an https post:
my $url = "https://some.secure.server/secure.dll";
my $ua = LWP::UserAgent->new;
# assemble the request
#
my $request = HTTP::Request->new(POST => "$url");
$request->content_type('application/x-www-form-urlencoded');
$request->content($content);
# send the request and get the result
#
my $result = $ua->request($request);
print $result->as_string;
But I'm getting this error:
501 (Not Implemented) Protocol scheme 'https' is not
supported
Looking on cpan, it looks like you do an https post
the same way as a http post, but I must be missing
something.
Can anyone help?
Thanks,
Denzil
________________________________________
__________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
| |
| Wiggins d'Anconia 2005-08-02, 9:00 am |
| Denzil Kruse wrote:
> Hi all,
>
> I'm trying send an https post:
>
> my $url = "https://some.secure.server/secure.dll";
>
> my $ua = LWP::UserAgent->new;
>
> # assemble the request
> #
> my $request = HTTP::Request->new(POST => "$url");
> $request->content_type('application/x-www-form-urlencoded');
> $request->content($content);
>
> # send the request and get the result
> #
> my $result = $ua->request($request);
>
> print $result->as_string;
>
> But I'm getting this error:
>
> 501 (Not Implemented) Protocol scheme 'https' is not
> supported
>
> Looking on cpan, it looks like you do an https post
> the same way as a http post, but I must be missing
> something.
>
> Can anyone help?
>
> Thanks,
> Denzil
>
Have you read:
http://search.cpan.org/src/GAAS/lib....803/README.SSL
And do you have an appropriate SSL interface installed?
http://danconia.org
| |
| Denzil Kruse 2005-08-02, 9:00 am |
| Hi Wiggins,
Nope, that's all news to me! Thanks for the help, I'll
look into it.
Denzil
--- Wiggins d'Anconia <wiggins@danconia.org> wrote:
> Denzil Kruse wrote:
<snip>
>
> Have you read:
>
>
http://search.cpan.org/src/GAAS/lib....803/README.SSL
>
> And do you have an appropriate SSL interface
> installed?
>
> http://danconia.org
>
> --
________________________________________
__________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|
|
|
|
|