HTTP/URL Question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Is there a Filesystem or cURL function that will allow me to request a
url and send a specific string in the message or body of the request?

Also is there a way to display the web page once its in a handle?

Thanks for any answers!

Re: HTTP/URL Question

Quoted text here. Click to load it

I have made this code and have tried it its running fine and I think
this will resolve your query..


$ch = curl_init(" /");
$fp = fopen("curl/example_homepage.txt", "w");

curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);


$source  = "curl/example_homepage.txt";
$html = file($source);
for(  $i=0; $i<count($html); $i++ )
    print $html[$i];

Rahul S

Site Timeline