i try to use POST method to retrieve information but web site always return error 400 Bad request.

[size=12]

srting to send db "POST /cgi-bin/post.pl HTTP /1.1",0dh,0ah
db "Host: thewebsite",0dh,0ah
db "Connection: Close",0dh,0ah
db "Content-Type: application/x-www-form-urlencoded", 0dh,0ah
db "Content-Length: 6",0dh,0ah
db "code=1",0dh,0ah,0dh,0ah,0

the html code of the page is :
[size=12]

<input type=test name=code size=7 maxlength=7>
<INPUT TYPE="submit" VALUE="Envoi">

There is something wrong ?
Posted on 2002-09-22 14:55:42 by gael
i'm so sorry...it was just the space between "http" and "/"
i know i :stupid:
Posted on 2002-09-22 15:35:27 by gael
shouldn't the last two lines be:


db "Content-Length: 6",0dh,0ah,[b]0dh,0ah[/b]
db "code=1",0

?

Thomas
Posted on 2002-09-22 15:47:16 by Thomas
you're right two CRLF is also needed :)
Posted on 2002-09-22 17:07:35 by gael