includes/http.php
changeset 354 979d99a0b00e
parent 349 fdaf9070566c
child 387 92664d2efab8
equal deleted inserted replaced
353:2398420f48e7 354:979d99a0b00e
   351       echo '<p><b>' . __CLASS__ . ': Sending request</b></p><p>Request parameters:</p>';
   351       echo '<p><b>' . __CLASS__ . ': Sending request</b></p><p>Request parameters:</p>';
   352       echo "<p><b>Headers:</b></p><pre>$headers</pre>";
   352       echo "<p><b>Headers:</b></p><pre>$headers</pre>";
   353       echo "<p><b>Cookies:</b> $cookies</p>";
   353       echo "<p><b>Cookies:</b> $cookies</p>";
   354       echo "<p><b>GET URI:</b> " . htmlspecialchars($this->uri . $get) . "</p>";
   354       echo "<p><b>GET URI:</b> " . htmlspecialchars($this->uri . $get) . "</p>";
   355       echo "<p><b>POST DATA:</b> " . htmlspecialchars($post) . "</p>";
   355       echo "<p><b>POST DATA:</b> " . htmlspecialchars($post) . "</p>";
   356     }
   356       echo "<pre>";
   357     echo "<pre>";
   357     }
   358     
   358     
   359     $this->_fputs($connection, "{$this->method} {$this->uri}{$get} HTTP/1.1{$newline}");
   359     $this->_fputs($connection, "{$this->method} {$this->uri}{$get} HTTP/1.1{$newline}");
   360     $this->_fputs($connection, "Host: {$this->host}{$newline}");
   360     $this->_fputs($connection, "Host: {$this->host}{$newline}");
   361     $this->_fputs($connection, $headers);
   361     $this->_fputs($connection, $headers);
   362     $this->_fputs($connection, $cookies);
   362     $this->_fputs($connection, $cookies);