Front page | perl.libwww |
Postings from June 2003
From: Alan Olegario
June 12, 2003 07:53
Message ID: 204AB30D250D5945B495E9BC153366FB64E204@NYCLUSTER01.fxall.com
I am extremely new to LWP, and I need some help. I've been looking around and haven't found any useful examples of doing POSTs to sites. Here's my code:
$ua = LWP::UserAgent->new;
my $req = HTTP::Request->new(POST => 'https://www.somesite.com');
my $res = $ua->request($req);
And here's my output:
HTTP/1.1 405 Method Not Allowed
Date: Thu, 12 Jun 2003 13:52:29 GMT
Allow: HEAD, GET, PUT, POST, DELETE, TRACE, OPTIONS, MOVE, INDEX, MKDIR, RMDIR
Client-Date: Thu, 12 Jun 2003 13:52:30 GMT
Client-SSL-Cert-Issuer: /O=VeriSign Trust Network/OU=VeriSign, Inc./OU=VeriSign International Server CA - Class 3/OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign
Client-SSL-Warning: Peer certificate not verified
Title: Method Not Allowed
<HTML><HEAD><TITLE>Method Not Allowed</TITLE></HEAD>
<BODY><H1>Method Not Allowed</H1>
An error has occurred.
Thanks in advance for the help.
This message is intended for the named addressee(s) only and contains information that may be confidential, non-public or legally privileged. If you are not the intended recipient, you must not copy this message or attachment or disclose the contents to any other person. If you received this email in error, please contact the sender and permanently delete the email and any attachments. Unless expressly stated, opinions in this email are those of the individual sender and not of FX Alliance, LLC or its affiliates.
by Alan Olegario