hi
i used of this cul code and it worked successfully.
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "http://www.aftab.ir/news/subcategory.php?id=123");
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_COOKIEJAR, "/home/qazvin/public_html/data/arz_cookie.txt");
curl_setopt($curl, CURLOPT_COOKIEFILE, "/home/qazvin/public_html/data/arz_cookie.txt");
$mswdata = curl_exec($curl);
curl_close ($curl);
echo $mswdata;
at recently when i echo $mswdata it printed:
Bad Request
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
Cookie: Aftab2625153=f6693bfc3d5c4269a3b6ee7278833e19; Aftab2498493=bf05bfa6a50cd16c7ffb6acc9a8c905f; Aftab2477894=9d20bae6a13b5018a2e5dd0718386c50;
any one can help me for solving this problem?
thanks