curl grabbing a website
| From: | Martin Justra | Date: | Sun, 19 Sep 2004 12:49:46 +0000 |
| Subject: | curl grabbing a website | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-197178@lists.php.net to get a copy of this message | ||
Hello,
I finally managed to grab the website via curl. Now the problen is that I
want to have a small piece of that site. I tried to cut that site by
explode. Now the browser hangs. He says "waiting for www.domain.de".... and
does nothing.
Here is my listing:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,
"https://www.example?benutzer=aaa&passwort=bbb&ic=tracking");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$test = curl_exec($ch);
$teil = explode("<!-- rows -->", $test);
echo $teil[0];
curl_close($ch);
What did I do wrong ?
Martin
?>