note 68219 added to function.fsockopen
| From: | tylernt at bigfoot dot com | Date: | Tue, 18 Jul 2006 18:57:41 +0000 |
| Subject: | note 68219 added to function.fsockopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-114896@lists.php.net to get a copy of this message | ||
If you are composing your own HTTP POST to upload to a form or upload a file, you need to realize
that when you *use* your boundary to separate the parts, you need to prepend two dashes (--) to
whatever you *defined* your boundary as. For example, if you define your boundary as --1234, then
you need to send ----1234 as your boundaries.
If you forget to prepend those two dashes, it is particularly frustrating because the server will
return a 200 OK / accepted code, but your receiving form will not recieve any POSTed data.
I only wasted a day and a half on that one.
----
Server IP: 216.194.113.175
Probable Submitter: 15.235.137.70
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.fsockopen.php
Edit -- http://master.php.net/note/edit/68219
Del: integrated -- http://master.php.net/note/delete/68219/integrated
Del: useless -- http://master.php.net/note/delete/68219/useless
Del: bad code -- http://master.php.net/note/delete/68219/bad+code
Del: spam -- http://master.php.net/note/delete/68219/spam
Del: non-english -- http://master.php.net/note/delete/68219/non-english
Del: in docs -- http://master.php.net/note/delete/68219/in+docs
Del: other reasons-- http://master.php.net/note/delete/68219
Reject -- http://master.php.net/note/reject/68219
Search -- http://master.php.net/manage/user-notes.php