I've tried using the same type script against an http site, and still got the 
following response:

HTTP/1.1 405 Method Not Allowed
Connection: close
Date: Fri, 13 Jun 2003 12:54:46 GMT
Server: Apache/1.3.26 (Unix) mod_perl/1.27 PHP/4.2.1 mod_ssl/2.8.10 OpenSSL/0.9.6g
Allow: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, PATCH, PROPFIND, PROPPATCH, 
MKCOL, COPY, MOVE, LOCK, UNLOCK, TRACE
Content-Type: text/html; charset=iso-8859-1
Client-Date: Fri, 13 Jun 2003 13:54:17 GMT
Client-Peer: 129.81.224.66:80
Title: 405 Method Not Allowed

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>405 Method Not Allowed</TITLE>
</HEAD><BODY>
<H1>Method Not Allowed</H1>
The requested method POST is not allowed for the URL /xxx/xxx.htm.<P>
<HR>
<ADDRESS>Apache/1.3.26 Server at xxx.xxx.edu Port 80</ADDRESS>
</BODY></HTML>

>-----Original Message-----
>From: (William) Wenjie Wang [mailto:[EMAIL PROTECTED]
>Sent: Thursday, June 12, 2003 20:21
>To: Alan Olegario; [EMAIL PROTECTED]
>Subject: RE: Need help...
>
>
>Hi Alan,
>
>Your codes looks alright to me.
>
>Since you're trying to access a secured HTTPS site, you need 
>to have SSLeay
>module installed first.  I was wondering if there is the case? 
> The msg:
>       >HTTP/1.1 405 Method Not Allowed
>seems to suggesting that HTTPS is not supported yet in your machine.
>
>>-----Original Message-----
>>From: Alan Olegario [mailto:[EMAIL PROTECTED]
>>Sent: Friday, 13 June 2003 12:53 AM
>>To: [EMAIL PROTECTED]
>>Subject: Need help...
>>
>>
>>Hello.
>>
>>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:
>>
>>--------------------------
>>#!/usr/local/bin/perl
>>use LWP::UserAgent;
>>$ua = LWP::UserAgent->new;
>>
>>my $req = HTTP::Request->new(POST => 'https://www.somesite.com');
>>$req->content_type('application/x-www-form-urlencoded');
>>$req->content('class=inputbox&name=USER&size=10&AUTOCOMPLETE=OFF&va
>lue=someuser');
>>$req->content('class=inputbox&type=PASSWORD&name=PASSWORD&size=10&A
>UTOCOMPLETE=OFF&value=somepass');
>>
>>my $res = $ua->request($req);
>>print $res->as_string;
>>--------------------------
>>And here's my output:
>>==========================
>>HTTP/1.1 405 Method Not Allowed
>>Connection: close
>>Date: Thu, 12 Jun 2003 13:52:29 GMT
>>Server: Netscape-Enterprise/4.1
>>Allow: HEAD, GET, PUT, POST, DELETE, TRACE, OPTIONS, MOVE, INDEX,
>>MKDIR, RMDIR
>>Content-Length: 124
>>Content-Type: text/html
>>Client-Date: Thu, 12 Jun 2003 13:52:30 GMT
>>Client-Peer: 216.74.155.198:443
>>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-Cert-Subject: /C=US/ST=New York/L=New
>>York/O=Somecompany/OU=Infrastructure/OU=Terms of use at
>>www.verisign.com/rpa (c)00/CN=www.somesite.com
>>Client-SSL-Cipher:
>>EDH-RSA-DES-CBC3-SHA
>>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.
>></BODY></HTML>
>>
>>Thanks in advance for the help.
>>
>>
>>DISCLAIMER:
>>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.
>>
>>
>
>


DISCLAIMER:
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.

Reply via email to