PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > The requested method POST is not allowed for the URL
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

The requested method POST is not allowed for the URL

Réponse
 
LinkBack Outils de la discussion
Vieux 09/05/2007, 21h11   #1
joost
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut The requested method POST is not allowed for the URL

I have create an guest form in a htm page. When submitting the data a asp
page is called to write the data to msaccess. When submitting i got the
following error in apache

Method Not Allowed
The requested method POST is not allowed for the URL /form_ac.asp.


--------------------------------------------------------------------------------

Apache/1.3.23 Server at localhost Port 80


Who can me to solve this problem

I think it's an apache problem but how to config apache correct??


Form 1
---------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<style>
td { font-size : 8pt; font-family : Verdana, Arial; text-decoration :
none; }
body { font-size : 8pt; font-family : Verdana, Arial; text-decoration :
none; }
input { font-size : 8pt; font-family : Verdana, Arial; height : 17; }
</style>
</head>

<body>
<form action="form_ac.asp" method="post">
<p align="center"><b>HTML Form Page:</b></p>
<table align="center" border=0 cellpadding=3 cellspacing=3 cols=2 width=400>
<tr>
<td align="right" height=10 valign="top">Name :</td>
<td align="left" height=10 valign="top" width=250><input type="text"
name="name"></td>
</tr>
<tr>
<td align="right" height=10 valign="top">Email :</td>
<td align="left" height=10 valign="top" width=250><input type="text"
name="email"></td>
</tr>
<tr>
<td align="right" height=10 valign="top">Country :</td>
<td align="left" height=10 valign="top" width=250><input type="text"
name="country"></td>
</tr>
<tr>
<td align="right" height=10 valign="top">Comments :</td>
<td align="left" height=10 valign="top" width=250><textarea cols=20 rows=5
name="comments"></textarea></td>
</tr>
<tr>
<td align="right" height=10 valign="top"></td>
<td align="left" height=10 valign="top" width=200><input type="submit"
value="&nbsp;&nbsp;&nbsp;">&nbsp;&nbsp;Submit -></td>
</tr>
</table>
</form>

</body>
</html>
---------------------------------------
form 2 asp page

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
</head>

<body>
<%
' Declaring variables
Dim name, email, country, comments, data_source, con, sql_insert

' A Function to check if some field entered by user is empty
Function ChkString(string)
If string = "" Then string = " "
ChkString = Replace(string, "'", "''")
End Function

' Receiving values from Form
name = ChkString(Request.Form("name"))
email = ChkString(Request.Form("email"))
country = ChkString(Request.Form("country"))
comments = ChkString(Request.Form("comments"))

data_source = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
Server.MapPath("form.mdb")
sql_insert = "insert into users (name, email, country, comments) values
('" & _
name & "', '" & email & "', '" & country & "', '" & comments &
"')"

' Creating Connection Object and opening the database
Set con = Server.CreateObject("ADODB.Connection")
con.Open data_source
con.Execute sql_insert
' Done. Close the connection
con.Close
Set con = Nothing
Response.Write "All records were successfully entered into the database."
%>



</body>
</html>




  Réponse avec citation
Vieux 09/05/2007, 21h46   #2
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: The requested method POST is not allowed for the URL

On May 9, 9:11 pm, "joost" <nore...@home.nl> wrote:
> I have create an guest form in a htm page. When submitting the data a asp
> page is called to write the data to msaccess. When submitting i got the
> following error in apache
>
> Method Not Allowed
> The requested method POST is not allowed for the URL /form_ac.asp.
>
> --------------------------------------------------------------------------------
>
> Apache/1.3.23 Server at localhost Port 80
>
> Who can me to solve this problem
>
> I think it's an apache problem but how to config apache correct??
>
> Form 1
> ---------------------------------------------------------------------------------
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>
> <html>
> <head>
> <style>
> td { font-size : 8pt; font-family : Verdana, Arial; text-decoration :
> none; }
> body { font-size : 8pt; font-family : Verdana, Arial; text-decoration :
> none; }
> input { font-size : 8pt; font-family : Verdana, Arial; height : 17; }
> </style>
> </head>
>
> <body>
> <form action="form_ac.asp" method="post">
> <p align="center"><b>HTML Form Page:</b></p>
> <table align="center" border=0 cellpadding=3 cellspacing=3 cols=2 width=400>
> <tr>
> <td align="right" height=10 valign="top">Name :</td>
> <td align="left" height=10 valign="top" width=250><input type="text"
> name="name"></td>
> </tr>
> <tr>
> <td align="right" height=10 valign="top">Email :</td>
> <td align="left" height=10 valign="top" width=250><input type="text"
> name="email"></td>
> </tr>
> <tr>
> <td align="right" height=10 valign="top">Country :</td>
> <td align="left" height=10 valign="top" width=250><input type="text"
> name="country"></td>
> </tr>
> <tr>
> <td align="right" height=10 valign="top">Comments :</td>
> <td align="left" height=10 valign="top" width=250><textarea cols=20 rows=5
> name="comments"></textarea></td>
> </tr>
> <tr>
> <td align="right" height=10 valign="top"></td>
> <td align="left" height=10 valign="top" width=200><input type="submit"
> value="&nbsp;&nbsp;&nbsp;">&nbsp;&nbsp;Submit -></td>
> </tr>
> </table>
> </form>
>
> </body>
> </html>
> ---------------------------------------
> form 2 asp page
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>
> <html>
> <head>
> </head>
>
> <body>
> <%
> ' Declaring variables
> Dim name, email, country, comments, data_source, con, sql_insert
>
> ' A Function to check if some field entered by user is empty
> Function ChkString(string)
> If string = "" Then string = " "
> ChkString = Replace(string, "'", "''")
> End Function
>
> ' Receiving values from Form
> name = ChkString(Request.Form("name"))
> email = ChkString(Request.Form("email"))
> country = ChkString(Request.Form("country"))
> comments = ChkString(Request.Form("comments"))
>
> data_source = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
> Server.MapPath("form.mdb")
> sql_insert = "insert into users (name, email, country, comments) values
> ('" & _
> name & "', '" & email & "', '" & country & "', '" & comments &
> "')"
>
> ' Creating Connection Object and opening the database
> Set con = Server.CreateObject("ADODB.Connection")
> con.Open data_source
> con.Execute sql_insert
> ' Done. Close the connection
> con.Close
> Set con = Nothing
> Response.Write "All records were successfully entered into the database."
> %>
>
> </body>
> </html>


you havent told use anything about the setup, os, or paths, and
nothing about the configuration

so I got out my crystal ball and this is all I could see

you possibly have something like
<Limit CONNECT ... PROPFIND.....POST ....>
Order allow,deny
<Limit>

it might use
<LimitExcept>
instead

anyway remove the POST verb if it is there.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 15h45.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11826 seconds with 10 queries