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

auto-update: curl does not start to download file (core/Http.php [sendHttpRequestBy]) latest.zip with 0kb on disk #7050

Closed
matzegebbe opened this issue Jan 19, 2015 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@matzegebbe
Copy link

hey!

I had some trouble with the update function.
the file download did not start and i got no response from the website anymore.
the file latest.zip was created but with the size of 0 kb.

so i changed the part where $method = 'curl' to a minimum and now it works.
maybe i had some trouble with the header options or something like that (proxy was not set!)... I use Debian 7.7 with apache. Maybe this helps others.

....
else if ($method == 'curl') {
if (!self::isCurlEnabled()) {
// can be triggered in tests
throw new Exception("CURL is not enabled in php.ini, but is being used.");
}
$ch = @curl_init();
curl_setopt($ch, CURLOPT_URL,$aUrl);
curl_setopt($ch, CURLOPT_FILE, $file);
ob_start();
$response = curl_exec($ch);
ob_end_clean();
...
@tsteur
Copy link
Member

tsteur commented Jan 19, 2015

Can you maybe add more of the original code step by step to see what the actual problem is? Otherwise it is hard for us to reproduce / fix it.

@mattab
Copy link
Member

mattab commented Feb 19, 2015

please reopen if you have more info

@mattab mattab closed this as completed Feb 19, 2015
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Feb 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants