View Single Post
  #7 (permalink)  
Old 06-05-2008, 03:46 PM
Jordan's Avatar   
Jordan Jordan is online now
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,485
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

Quote:
Originally Posted by CygnetGames View Post
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); 
Good deal! How did you figure it out, trial and error?

Posted via CodeCall Mobile
Reply With Quote