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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/71629-curl-problem/#findComment-360619 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.