Hello,
On 10/09/2004 06:45 AM,
mammothman42@hotmail.com wrote:
> i've copied my bank's login form and saved a copy on my computer.
> However when i try to submit it, i get a 405 method not allowed error.
> Can't for the life of me figure out why, it's posting exactly the same
> data from exactly the same html code. Any ideas? It's a https (SSL)
> site.
Error 405 usually happens when you try to submit a POST request to a URL
that serves a static page (read HTML page or something like that), not
really a dynamically generated page, there for submitting form requests
to a static page URL does not make sense, thus the 405 error.
If you want to emulate a login form using SSL or not, you may want to
try this HTTP client class. It supports SSL request, POST form
submissions as well cookie collecting and redirection which you
eventually also need.
http://www.phpclasses.org/httpclient
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html