FORUMS
Remove All Ads from XDA

[HowTo] Install cURL and OpenSSL on Android

1,745 posts
Thanks Meter: 2,053
 
By r3pwn, Inactive Recognized Developer on 13th July 2013, 06:04 PM
Post Reply Email Thread
3rd November 2013, 08:10 PM |#11  
Member
Thanks Meter: 5
 
More
No help on this?
4th December 2013, 01:47 AM |#12  
Quote:
Originally Posted by heytcass

No help on this?

Have you tried running it from Android Terminal Emulator or via an adb shell? That is how it's intended to run.


Sent from my iPod touch using Tapatalk
9th December 2013, 04:10 AM |#13  
Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by r3pwn

Have you tried running it from Android Terminal Emulator or via an adb shell? That is how it's intended to run.


Sent from my iPod touch using Tapatalk

I was of the understanding that the terminal within SL4A was a proper terminal emulator. I'll try it with a standalone emulator and see what result that gets me.

Thanks.
10th December 2013, 06:03 PM |#14  
Quote:
Originally Posted by heytcass

I was of the understanding that the terminal within SL4A was a proper terminal emulator. I'll try it with a standalone emulator and see what result that gets me.

Thanks.

Okay.
You're welcome.


Sent from my iPod touch using Tapatalk
6th January 2014, 08:03 PM |#15  
Member
Thanks Meter: 5
 
More
I reinstalled everything again, and did the dropbox curl test, which worked no problem. But when I run the script through SL4A, I still get the curl_init fatal error. And when I try to run it through either adb shell or terminal emulator, I get a permission denied error. I seem to be doomed in getting this thing going.
28th June 2014, 10:20 PM |#16  
Junior Member
Flag Jakarta
Thanks Meter: 0
 
More
Quote:
Originally Posted by heytcass

Just tried to install this and didn't seem to get it running.

My purpose for getting curl on Android is so I can have SL4A run a script launched by tasker, but every time I run the script I get "Fatal error: Call to undefined function curl_init() in storage/emulated/0/sl4a/scripts/nest.class.php (a PHP script for controlling my Nest thermostat).

I followed all your steps to install, although I seemed to have to do most through Root Explorer, by pushing to a folder through adb, copying from there into /data/local/ssl (which I had to mkdir for) and /system/bin, then using Root Explorer to change the permissions. Could this install process be the issue? If not, any other tips on getting cURL installed so it can be used?

Thanks.

seem like your php not have curl extension.
use this method
PHP Code:
$html shell_exec('/system/bin/curl --url your_target_URL');
echo 
$html
for other parameters please follow the curl --help
29th June 2014, 03:31 AM |#17  
wavrunrx's Avatar
Senior Member
Thanks Meter: 400
 
More
will the cURL / openssl binaries survive ROM updates ? ie, cyanogenmod nightly --> cyanogenmod nightly ?
29th June 2014, 03:35 PM |#18  
Junior Member
Flag Jakarta
Thanks Meter: 0
 
More
since you put in /system and /data folder, they will gone if you update the rom
5th August 2014, 03:50 PM |#19  
Junior Member
Thanks Meter: 0
 
More
Hi! I managed to install curl, and put the /data/local/ssl folder
in /data/local/ssl in my phone, but when I tried to do
curl to an https site, the following error appears:

Click image for larger version

Name:	Screenshot_2014-08-05-11-05-02.png
Views:	508
Size:	65.7 KB
ID:	2885033

So, I'm trying to guess what's going wrong. Any hint that can
help me get rid of this error will be appreciated.
6th August 2014, 07:33 PM |#20  
Quote:
Originally Posted by jose_ramirez

Hi! I managed to install curl, and put the /data/local/ssl folder
in /data/local/ssl in my phone, but when I tried to do
curl to an https site, the following error appears:

Attachment 2885033

So, I'm trying to guess what's going wrong. Any hint that can
help me get rid of this error will be appreciated.


Do what it says,
Run "curl -k yoururlhere"
6th August 2014, 08:22 PM |#21  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by r3pwn

Do what it says,
Run "curl -k yoururlhere"

just like that? and avoid the verification completely?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes