Jump to content

Archived

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

morpheuz

cURL and https

Recommended Posts

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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

×

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.