/** * Sends the headers and request data. * @param SimpleSocket $socket Open socket. * @param string $method HTTP request method, usually GET. * @access protected */ function _request(&$socket, $method) { $this->addHeaderLine('Content-Length: ' . strlen($this->_pushed_content)); parent::_request($socket, $method); $socket->write($this->_pushed_content); }
/** * Sends the headers and request data. * @param SimpleSocket $socket Open socket. * @param string $method HTTP request method, usually GET. * @access protected */ function _request(&$socket, $method) { $this->addHeaderLine('Content-Length: ' . strlen($this->_pushed_content)); $this->addHeaderLine('Content-Type: application/x-www-form-urlencoded'); parent::_request($socket, $method); $socket->write($this->_pushed_content); }