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
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?
22nd December 2014, 07:05 AM |#22  
Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by r3pwn

NOTE: YOU MUST BE ROOTED WITH BUSYBOX INSTALLED TO INSTALL cURL AND OpenSSL.
Recently, when looking to see if it was possible to get cURL on Android, I found something posted on June 22nd of 2013 on http://curl.haxx.se/. What was it, you may ask? It was an announcement of the curl binary version 7.31.0. This also came with a nice little surprise. cURL and openssl binaries for android! If you want, you can download them by going to http://curl.haxx.se/download.html and scrolling down until you see Linux - Android. Download the ".tar.gz" file and extract it. Inside, you will see a folder called data. To install, copy the data/local/ssl to /data/local/ssl on the device. Also, push the curl and openssl binaries from data/local/bin to /system/bin on the device. Be sure to chmod them to 0755. Once all that is done, have fun using curl!

I have confirmed this to be working on my Kindle Fire HD running android 4.2.2.

EDIT: Root is needed in order to run OpenSSL, but not cURL.

Sent from my Amazon Kindle Fire HD using xda app-developers app

Somehow I copied the data/local/ssl to /data/local/ssl on the device.
But not data/local/bin to /system/bin. it says operation failed and in adb shell also it is unable to copy with the CAT command.
Please advice.
23rd December 2014, 11:43 PM |#23  
RolluS's Avatar
Senior Member
Flag Near Paris
Thanks Meter: 426
 
Donate to Me
More
Wow nice find, thanks to r3pwn.

For your problem mac_see, you could try to mount system rw:
Code:
adb remount
or
Code:
adb shell mount -o rw,remount /system
9th February 2016, 04:02 PM |#24  
lemoineo's Avatar
Junior Member
Flag Croissy/seine
Thanks Meter: 1
 
More
Hello, it's a good idea ! But how version of Android ?
with the 5.1.1 (rom custom) on my Samsung Galaxy Note 4 (Exynos), when I type exemple
Code:
curl https://curl.haxx.se
the respons is
Code:
Error : only position independent executables (PIE) are supported.
And to compile the source code, it is not very like UNIX, ... the command make does not exist
Olivier
28th February 2016, 03:13 PM |#25  
Member
Thanks Meter: 17
 
More
Quote:
Originally Posted by lemoineo

Hello, it's a good idea ! But how version of Android ?
with the 5.1.1 (rom custom) on my Samsung Galaxy Note 4 (Exynos), when I type exemple

Code:
curl https://curl.haxx.se
the respons is
Code:
Error : only position independent executables (PIE) are supported.
And to compile the source code, it is not very like UNIX, ... the command make does not exist
Olivier

getting the same error when i install the curl bin into /system/bin (tried /system/xbin too, no luck)
14th April 2016, 08:56 PM |#26  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by lemoineo

Hello, it's a good idea ! But how version of Android ?
with the 5.1.1 (rom custom) on my Samsung Galaxy Note 4 (Exynos), when I type exemple

Code:
curl https://curl.haxx.se
the respons is
Code:
Error : only position independent executables (PIE) are supported.
And to compile the source code, it is not very like UNIX, ... the command make does not exist
Olivier

Same error with CM12.1. Any idea to fix it?
29th November 2016, 09:09 AM |#27  
Senior Member
Thanks Meter: 244
 
More
I'm on Android 6.0.1 and I get /system/bin/sh: not found after install. Got it anyone to work with newer android versions?
26th April 2017, 08:02 AM |#28  
Junior Member
Thanks Meter: 3
 
More
Hi
I'm using Android M.
With the compiled package found on this page I've got the same error than Dablado and Stcraft. So I installed the cURL APK package from (Google Play and I've this error when I launched cURL in the terminal :
Quote:

CANNOT LINK EXECUTABLE: cannot locate symbol "UI_get_string_type" referenced by "curl"...

I compiled very well these sources I meant without error. I didn't find any binaries.
Do have any other issue?
Thanks for any help.
21st July 2017, 10:58 AM |#29  
Member
Flag Dublin
Thanks Meter: 9
 
More
Quote:
Originally Posted by r3pwn

Be sure to chmod them to 0755

Can someone explain this bit please?
The Following User Says Thank You to ang3l For This Useful Post: [ View ] Gift ang3l Ad-Free
6th January 2018, 07:42 AM |#30  
Junior Member
Thanks Meter: 0
 
More
chmod to 0755
Quote:
Originally Posted by ang3l

Can someone explain this bit please?

I do not know that it really means. Someone, please help. I am a newbie.
I already coppied the folder and 2 files in the said directory. I am stuck at the "chmod to 0755" the files, I do know how.
20th January 2018, 11:06 PM |#31  
Junior Member
Thanks Meter: 0
 
More
cd /system/bin
chmod 0755 curl
chmod 0755 openssl
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