View Single Post
  #6 (permalink)  
Old 06-05-2008, 03:20 PM
CygnetGames's Avatar   
CygnetGames CygnetGames is offline
Programmer
 
Join Date: May 2007
Location: York, England
Posts: 113
Rep Power: 6
CygnetGames is on a distinguished road
Default Re: RSS feeds and cURL

I fixed it!

You were half right Jordan. They were blocking me, but not because I was connecting too often. It was because I had a blank user agent header. Apparently, some servers don't like that. When I spoofed my user agent as Firefox, it worked perfectly.

Thanks for the help.

Here is the additional code for anyone else with a similar problem:
PHP Code:
$useragent 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1';
curl_setopt($chCURLOPT_USERAGENT$useragent); 
Reply With Quote