try something simple $file_get_contents = "your url"; PHP: and use this function to get what you need. function carcabot ($string, $source1, $source2) { $mid_url = ""; $pos_s = strpos($string,$source1); $pos_e = strpos($string,$ssource2); for ( $i=$pos_s+strlen($source1) ; ( ( $i < ($pos_e)) && $i < strlen($string) ) ; $i++ ) { $mid_url .= $string[$i]; } return $mid_url; } PHP: /CarcaBot
$ua='Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5'; curl_setopt($ch, CURLOPT_USERAGENT, $ua); something like that ?