curl-and-php
LIMIT EXCEEDED
Date: Fri, 26 May 2006 15:23:22 +0300
I'm trying to copy a page from a site and all works only the first time.
When I try again, I receive:
Valid user but LIMIT EXCEEDED.Sorry, your subscription allows 1 users. 1 user (s) already logged in.
Can I avoid this?
This is my script:
$url = "http://www.website.com";$ch = curl_init();
($ch, CURLOPT_URL,$url);
($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
($ch, CURLOPT_RETURNTRANSFER,1);
($ch, CURLOPT_TIMEOUT, 3);
($ch, CURLOPT_POST, 1);
($ch, CURLOPT_POSTFIELDS, "user=USER&pass=PASSWORD");
$result = curl_exec($ch);
$result=strip_tags($result);
curl_close($ch);
$file = fopen("ale/mypage.txt", "w");
fwrite($file, $result);
fclose($file);
Thanks,
Luke
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-05-26