Jump to content

cURL and https


morpheuz

Recommended Posts

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.

[code]
$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);
[/code]

Can anyone help?
Link to comment
https://forums.phpfreaks.com/topic/10998-curl-and-https/#findComment-41257
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.