[11655] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Problem to post at HTTP level

daemon@ATHENA.MIT.EDU (Xavier Plantefeve)
Thu Jul 6 12:06:32 2000

Date: Thu, 6 Jul 2000 07:30:54 -0400 (EDT)
Old-X-Envelope-From: www-talk-request@tux.w3.org  Thu Jul  6 07:30:52 2000
Message-Id: <00Jul6.133010cest.115203@firewall.ces-cdr.be>
From: Xavier Plantefeve <xavier.plantefeve@esc.eu.int>
To: "'www-talk@w3.org'" <www-talk@w3.org>
MIME-Version: 1.0
Content-Type: text/plain
Old-X-Envelope-To: www-talk
Resent-From: gerald@w3.org
Resent-To: www-talk@w3.org

Haya,

  I'm trying to use a PHP script for direct HTTP connections,
I have no problem for reading servers replies or sending
GET commands, but as soon as I try to use a POST command,
it fail. It looks like the POST data is never received by
the server. I if the problem stands with the structure or
the procedure of my request. Here is the request I send,
each and every line (including the last one, against the
rules, but I tried without it too) ends with \r\n (ie. CRLF).

This request is sent as a whole (header+blank line+data
in only one string containing CRLFs).

Can anybody points out what I do wrong?

Thanks for any help.

Xave

PS: is there an utility I can use in Win32 to "spy"
HTTP transactions?



POST /bleu.php HTTP/1.0
Content-type: multipart/form-data;
boundary=---------------------------7d025817e60
Connection: keep-alive
Accept: */*
Referer: http://localhost/test.html
Accept-Language: fr-be,en;q=0.5
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 95)
Host: localhost
Pragma: no-cache
Content-Lenght: 141

-----------------------------7d025817e60
content-disposition: form-data; name="target"

tagada
-----------------------------7d025817e60--


home help back first fref pref prev next nref lref last post