示例#1
0
 /**
  *    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);
 }
示例#2
0
文件: http.php 项目: sebs/simpletest
 /**
  *    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);
 }