Jump to content

cURL Extremely Slow Transfer


papaface

Recommended Posts

Hello,

 

I have a script which is used to get a file off a remote server however the transfer is taking place an an EXTREMELY slow rate.

 

Does anyone have any idea what could be causing this?

		$this->ch = curl_init($url);
	$parts = parse_url($url);
	curl_setopt($this->ch,CURLOPT_RETURNTRANSFER,1);
	curl_setopt($this->ch,CURLOPT_FOLLOWLOCATION,1);
	$header = array("Host: {$parts['host']}","Accept: text/xml,application/xml,application/xhtml+xml,text/html,;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5", "Accept-Language: en-us,en;q=0.5", "Connection: keep-alive", "User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.4) Gecko/20070625 Ubuntu/7.10 (gutsy) Firefox/3.0.0.7", "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Keep-Alive: 300");
	curl_setopt($this->ch, CURLOPT_HTTPHEADER, $header);

Link to comment
https://forums.phpfreaks.com/topic/165987-curl-extremely-slow-transfer/
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.