papaface Posted July 14, 2009 Share Posted July 14, 2009 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 More sharing options...
phporcaffeine Posted July 14, 2009 Share Posted July 14, 2009 Bandwidth, Firewall and Server Load Issues are the usual suspects in cases where 'it was working fine but now it isn't'. Link to comment https://forums.phpfreaks.com/topic/165987-curl-extremely-slow-transfer/#findComment-875470 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.