cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Getting Raw Response

From: Stephen Pynenburg <spynenburg_at_gmail.com>
Date: Wed, 6 Aug 2008 10:01:20 -0400

Here's something I found on the net - maybe compare the result of this to
the same sort of thing in cURL? I know what you mean about the "raw"
response, but on the other hand, I'm not sure how much parsing (if any) cURL
does on its own.

$res = "";
$fp = fsockopen($proxyip , $proxyport);
fputs($fp , $requestheader);
while(!feof($fp)){
    $res .=fgets($fp , 1024);
}
fclose($fp);

-Stephen

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-08-06