sudyal Posted October 3, 2007 Share Posted October 3, 2007 hello i'm trying to use curl(); to post a params to a login form but i think the site required a cookies or something like if you can please check the code http://pastebin.com/m3818c27b thanks Link to comment https://forums.phpfreaks.com/topic/71629-curl-problem/ Share on other sites More sharing options...
sKunKbad Posted October 3, 2007 Share Posted October 3, 2007 $params needs to be an array like this: $params = array('Nickname'=>"$Nickname",'Password'=>"$Password"') curl_setopt($ch, CURLOPT_POSTFIELDS,$params); You have it as $_GET variables in a URL, which is wrong. Link to comment https://forums.phpfreaks.com/topic/71629-curl-problem/#findComment-360619 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.