Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

METHOD NOT ALLOWED

Status
Not open for further replies.

jxfish2

Technical User
Jan 24, 2002
183
US
I'm getting the following error when I attempt to submit a form, using the POST method:

The requested method POST is not allowed for the URL /~webuser/form1.php.

The Apache access_log shows the following errors:

[10/Feb/2002:23:27:07 -0800] "POST /~webuser/form1.php HTTP/1.1" 405 248

I'm attempting to POST to a PHP document, from an HTML form.

<form action=&quot;main.php&quot; method=&quot;post&quot;>

The error / status code &quot;405&quot; indicates that the method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

I believe the problem is with one of my webserver settings, some type of permissions error, but haven't been able to figure out what it is...

So, Any help would be much appreciated.

TIA

Joe F.
 
Maybe you shoould ask this in the php forum. BobbaFet

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com

&quot;<beer brand> is like making love in a cano...
it's <f-word + ing> close to water !!!&quot;
- Monty Python's Flying Circus, 1969/70
 
No... This is not a PHP issue... This is an HTML / Apache issue...

I've already executed the EXACT same scripts under HP-UX, and everything works fine...

The POST method is a standard HTML issue, but the permissions I speak of, are probably configured in Apache...

I've gone line-by-line through my http.conf file, and found the one and only section pertaining to <limit POST GET, etc..., but have not figured out what to modify...

I also have an Apache Web Server Administration manual, and have not been able to find anything on this particular error...

So, I'm looking for anyone who may have encountered this error &quot;405&quot; before...

Joe F.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top