Anidazen Posted January 29, 2008 Share Posted January 29, 2008 Hey -- thanks in advance for the help! This is a bit of a mystery. I am trying to automatically update my signature link in a forum (http://www.warriorforum.com/forum/ to be precise -- if that's relevant). I can't do it! No matter what I try, I cannot get the page to work. I have used a header viewer to give the EXACT same cookie string that my real user-session has at that point. The code is as below. The postvars are exactly right too... I flipped the form method to GETs and copied and pasted from the URL. Given seemingly EXACTLY the same information as the browser feeds it, I cannot elicit the same response. I'm running this from my desktop so even the IP will be the same! Please advise! $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 1); if($postvars){curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postvars);} curl_setopt($ch, CURLOPT_COOKIE, $cookie); ob_start(); curl_exec($ch); curl_close($ch); $content = ob_get_contents(); ob_end_clean(); Link to comment https://forums.phpfreaks.com/topic/88371-solved-curl-issue-these-rarely-beat-me/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.