encoding.php
public function writeHeadersTo(&$socket)
    {
        $socket->write('Content-Length: ' . (integer) strlen($this->encode()) . "\r\n");
        $socket->write('Content-Type: multipart/form-data; boundary=' . $this->boundary . "\r\n");
    }
public function writeHeadersTo(&$socket)
    {
        $socket->write('Content-Length: ' . (integer) strlen($this->encode()) . "\r\n");
        $socket->write('Content-Type: multipart/form-data; boundary=' . $this->boundary . "\r\n");
    }
Dispatches the form headers down the socket.

@param SimpleSocket $socket        Socket to write to.