error: only position independent executables (PIE) are supported when I try to run curl on android 5.1
Curl is an open source project, so the straightforward answer is that you compile it yourself and enable position independent code (pic) for the compilation. This is very inconvenient, I admit, but I strongly discourage using solutions that disable security features. There are good reasons to only allow PIEs.