code: public function writeHeadersTo(&$socket)
      {
          $socket->write('Content-Length: ' . (integer) strlen($this->encode()) . "\r\n");
          $socket->write('Content-Type: ' .  $this->getContentType() . "\r\n");
      }
docs: Dispatches the form headers down the socket.
  
  @param SimpleSocket $socket        Socket to write to.