mam taki kod i nie moge za nic zalogować się na pcworld.pl:
curl('https://www.pcworld.pl/rejestracja/logowanie/'); function curl1($url) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1) Gecko/20061024 BonEcho/2.0"); curl_setopt($ch, CURLOPT_COOKIESESSION, true); curl_setopt($ch, CURLOPT_COOKIEJAR, "c.txt"); curl_setopt($ch, CURLOPT_COOKIEFILE, "c.txt"); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, 'login=mojlogin&haslo=mojehaslo'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $html =curl_exec($ch); return $html; }
Moglby mi ktos pomóc?
Pozdrawiam