Ralph, on Aug 6 2007, 01:14 PM, said:
No, Etomite isn't checking the referrer when testing authentication... Explain "when I use curl" as it relates to your code and maybe we can be of more help...
I'm trying to make a login script that will login into etomite and vbulletin at the same time and then redirect to a etomite page requiring the login.
I thought I'd try curl (
http://us3.php.net/m...en/ref.curl.php)
$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,'http://example.com/loginpage.html');
curl_setopt($curl_handle,CURLOPT_POSTFIELDS,"location=http://example.com
/restrictedpage.html&username=uname&password=xxx&rememberme=0&");
curl_exec($curl_handle);
curl_close($curl_handle);
Since the authenticate_visitor snippet posts to itself (the form has no action) I thought I could simply post a custom form to an etomite page that had the snippet on it (i.e. loginpage.html) and the snippet would pick up the vars and process the login. Of course assuming I pass the same vars as the auth_visitor form.
I get no login... I guess I may have to include the necessary etomite stuff and directly access the userLogin api