Jump to content

cURL timeout - how long for a large file?


papaface

Recommended Posts

Hi

 

I'm currently writing a script that basically downloads videos from a specific page.

I am downloading with cURL however with some files, they're so large cURL is timing out.

 

This is causing either

a) PHP to timeout

b) PHP memory to run out

c) cURL to stop once defined timeout limit is reached

 

This means that some files are only partitially downloaded as some files are over 100mb and some are only 20mb

 

I have

set_time_limit(0);

and

ini_set("memory_limit","500M");

set but is there a way to make it so PHP will not timeout and the cURL session will not timeout until the file is downloaded?

Link to comment
https://forums.phpfreaks.com/topic/219985-curl-timeout-how-long-for-a-large-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.