Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl download fails to handle 301 error #251

Closed
Chris1LDN opened this issue Aug 15, 2024 · 1 comment · Fixed by #253
Closed

curl download fails to handle 301 error #251

Chris1LDN opened this issue Aug 15, 2024 · 1 comment · Fixed by #253

Comments

@Chris1LDN
Copy link

I've been trying to use your script but have been hitting a problem. The openssl archive would be downloaded as 0 bytes. After a while trying to debug it, I've realised that the remote host is returning HTTP 301 - Moved permanently.

After a bit more investigation, I discovered that passing the -L option to curl causes it to follow the redirect. I've attached a patch that fixes the issue for me. (I had to give it a ".txt" suffix as github refused ".patch" for some reason).

P.S. Thanks for the project, very useful.

openssl-for-iphone-redirect.txt

@YuvarajIcon
Copy link

Just an FYI, the script already has CURL_OPTIONS variable to pass custom curl arguments. You can use this variable to pass -L to the script if you do not want to modify the build script yourself, or wait for the contributors to make changes :)

CURL_OPTIONS="-L" ./build-libssl.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants