note 68219 deleted from function.fsockopen by danbrown

From: Date: Mon, 18 May 2009 01:49:44 +0000
Subject: note 68219 deleted from function.fsockopen by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155602@lists.php.net to get a copy of this message
Note Submitter: tylernt at bigfoot dot com ---- 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.

« previous php.notes (#155602) next »