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); Quote Link to comment 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'. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.