larcenists / larceny

Larceny Scheme implementation
Other
202 stars 32 forks source link

Unable to download files from the website via curl. #741

Open Earnestly opened 8 years ago

Earnestly commented 8 years ago

When trying to download the prebuilt packages from http://www.larcenists.org/download.html I am greeted with a 406 Not Accessible.

To test:

% curl -O http://www.larcenists.org/LarcenyReleases/larceny-0.98-bin-native-ia32-linux86.tar.gz

% file larceny-0.98-bin-native-ia32-linux86.tar.gz 
larceny-0.98-bin-native-ia32-linux86.tar.gz: HTML document, ASCII text, with very long lines, with no line terminators

The contents of said file:

<html><head><title>Error 406 - Not Acceptable</title><head><body><h1>Error 406 - Not Acceptable</h1><p>An error has occurred. Generally a 406 error is caused because a request has been blocked by Mod Security. If you believe that your request has been blocked by mistake please contact the web site owner.</p></body></html>

This is very likely a case of UA blacklisting, if so, please consider removing curl's UA. The build system could be hacked to specify an alternative UA but this is less than ideal.

WillClinger commented 8 years ago

This problem has been fixed by disabling mod_security as described at http://www.inmotionhosting.com/support/website/error-numbers/406-error

If this fix leads to security problems, I may have to try something more complicated.

wasamasa commented 7 years ago

I'm still getting this:

$ curl http://www.larcenists.org/LarcenyReleases/larceny-1.3-bin-native-ia32-linux86.tar.gz  
<html><head><title>Error 406 - Not Acceptable</title><head><body><h1>Error 406 - Not Acceptable</h1><p>Generally a 406 error is caused because a request has been blocked by Mod Security. If you believe that your request has been blocked by mistake please contact the web site owner.</p></body></html>
ecraven commented 7 years ago

Me too :-/

johnwcowan commented 6 years ago

I confirm that it doesn't work with curl, whereas it does work with wget, so a workaround is to use wget.

WillClinger commented 6 years ago

Re-opening issue. I apologize for overlooking the September comments; I must have been too busy with the start of classes.