Anasayfa Posts tagged "post"
formats

PHP: curl İle Form Post Etmek ve curl’de Cookie Kullanımı

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://urlpostadresi"); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLINFO_HEADER_OUT, true); curl_setopt($ch, CURLOPT_COOKIEJAR, ‘somedirectory/cookies.txt’); curl_setopt($ch, CURLOPT_COOKIEFILE, ‘somedirectory/cookies.txt’); // cookies.txt: cookie’lerin kaydedileceği dosya curl_getinfo($ch, CURLINFO_EFFECTIVE_URL); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch,

Read More…

 
Etiketler: , , , ,
© 3mrullah.com 2014 - Her hakkı saklı gibidir.
Themes By Cyber Chimps