HTTP POST request

Status
Niet open voor verdere reacties.

blaataap

Gebruiker
Lid geworden
1 feb 2003
Berichten
706
Als ik dit stuur:

Code:
POST /nieuws.php HTTP/1.1
Accept: */*
Accept-Language: nl
Host: localhost
User-Agent: ikke
Connection: keep-alive

titel=titel
bericht=bericht
submit=OK

Krijg ik dit terug:

Code:
HTTP/1.1 200 OK
Date: Sun, 08 Jun 2003 10:05:43 GMT
Server: Apache/1.3.27 (Win32) PHP/4.3.1
X-Powered-By: PHP/4.3.1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

c3 

<form method="post" action="">
Titel:<br> <input type="text" name="titel"><br>
Bericht:<br> <textarea name="bericht">hier het bericht</textarea><br>
<input type="submit" value="OK">
</form>
0

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>501 Method Not Implemented</TITLE>
</HEAD><BODY>
<H1>Method Not Implemented</H1>
titel=titel to / not supported.<P>
Invalid method in request titel=titel<P>
<HR>
<ADDRESS>Apache/1.3.27 Server at localhost Port 80</ADDRESS>
</BODY></HTML>

Wie kan mij vertellen wat ik fout doe?
 
Laat je je browser requests sturen of maak je ze handmatig aan?

-edit Als je ze handmatig aanmaakt zou ik er dit van maken:

POST /nieuws.php HTTP/1.1
Accept: */*
Accept-Language: nl
Content-Type: application/x-www-form-urlencoded
User-Agent: ikke
Host: localhost
Content-Length: 37
Connection: Keep-Alive

titel=titel&bericht=bericht&submit=OK
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan