Forum Moderators: coopster

Message Too Old, No Replies

Sending HTTPS GET requests without CURL

Host doesn't support CURL, any alternatives?

         

ms348work

2:15 pm on Oct 4, 2006 (gmt 0)

10+ Year Member



Hi all

I was hoping the widely available snoopy php class would do this, however it uses CURL for HTTPS. Anybody used other alternatives that work?

Thanks

Manoj

DrDoc

4:37 pm on Oct 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are always sockets ...
fsockopen

ms348work

8:00 am on Oct 5, 2006 (gmt 0)

10+ Year Member



Tried fsockopen but you need OpenSSL installed with PHP for it to work. Which i'm sure my host does not. In any case that timed out too.

jezra

4:31 pm on Oct 5, 2006 (gmt 0)

10+ Year Member



Have you tried shell_exec [us3.php.net] with either curl or wget?

mcavic

4:05 am on Oct 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In any case that timed out too.

Maybe your host doesn't allow outbound connections. But shelling out to an external curl or wget is probably the way to go for HTTPS if you don't have libcurl.

coopster

7:36 pm on Oct 9, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Without SSL installed you are likely going to get a

Unable to find the wrapper "https" --

NOTICE
error every time. Try to run your HTTPS GET request with a simple file_get_contents [php.net] and see what happens. Make sure you have error_reporting turned up so you can see what is happening.