} if (!$this->pragma) { header('Pragma: '); } $headersParsed = true; } $length = strlen($string); echo $string; return $length; } protected function createRequestHeaders() { $headers = apache_request_headers(); foreach ($headers as $header => $value) { switch ($header) { case 'Host': break; default: $this->requestHeaders[] = sprintf('%s: %s', $header, $value); break; } } } } //$contentType = curl_getinfo($ch, CURLINFO_CONTENT_TYPE); //header('Content-Type:'.$contentType); //echo '<pre/>'; //print_r(apache_request_headers());exit; $p = new Proxy('', 'http://tutsplus.com'); $p->excute();