Jump to content


Photo

cURL and https


  • Please log in to reply
1 reply to this topic

#1 morpheuz

morpheuz
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 02 June 2006 - 02:12 AM

...can I login to my hosted space and post to another area? Anyone familiar with this?

#2 morpheuz

morpheuz
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 02 June 2006 - 05:55 PM

Ok, I've gotten a little progress....it's an error, but at least it's feedback. :)

Error #35
(SSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol)

I have a basic session setup here.

$ch = curl_init(); 
curl_setopt ($ch, CURLOPT_URL, "https://loginareablahblah");
curl_setopt ($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); 
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, "user=john&pass=doe");
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
$res = curl_exec ($ch);
curl_close($ch);

Can anyone help?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users