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

Failed to download mod_cloudflare.c #1

Closed
sertaconay opened this issue Mar 22, 2013 · 5 comments
Closed

Failed to download mod_cloudflare.c #1

sertaconay opened this issue Mar 22, 2013 · 5 comments

Comments

@sertaconay
Copy link

Hello.

I run "perl cloudflare.pl install" command but it gives an error:

Failed to download: [https://raw.github.com/cloudflare/CloudFlare-Tools/master/mod_cloudflare.c] at cloudflare.pl line 40.

I'm on CentOS 5.9, using Cpanel/WHM.

I can download it with wget but why can't this script download the file?

@tylerl
Copy link
Owner

tylerl commented Mar 22, 2013

Yes, without any sort of debugging information it's difficult to tell. Add $resp->status_line somewhere in the output on line 40 to see what message the HTTP component is returning. e.g:

$resp and $resp->is_success or die "Failed to download: [$DOWNLOAD_URL] : $resp->status_line";

@sertaconay
Copy link
Author

Thank you for your interest.
I added what you say and here is the output:

Failed to download: [https://raw.github.com/cloudflare/mod_cloudflare/master/mod_cloudflare.c] : HTTP::Response=HASH(0x2821460)->status_line at cloudflare.pl line 40.

@tylerl
Copy link
Owner

tylerl commented Mar 22, 2013

Sorry - like this:

$resp and $resp->is_success or die "Failed to download: [$DOWNLOAD_URL] : " . $resp->status_line;

@sertaconay
Copy link
Author

OK. It says now:
Failed to download: [https://raw.github.com/cloudflare/mod_cloudflare/master/mod_cloudflare.c] : 501 Protocol scheme 'https' is not supported (LWP::Protocol::https not installed) at cloudflare.pl line 40.

I'm searching for this issue, too.

@sertaconay
Copy link
Author

I ran "cpan LWP::Protocol:https" and all is done. Thank you.

@tylerl tylerl closed this as completed Mar 22, 2013
This was referenced Mar 1, 2016
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

No branches or pull requests

2 participants