Technically not a drupal link (shoot me !!!) but while browsing I came across an interesting link on url snooping with php here the code - it uses the snoopy class which is only 37 kB
[?php
include("Snoopy.class.inc");
$snoopy = new Snoopy;
$serverURL = "http://www.google.com/search?";
$searchString = "hl=en&lr=&ie=UTF-8&oe=UTF-8&q=%22what+is+wrong+with+flash%22&btnG=Google+Search";
$snoopy->fetchtext($serverURL.$searchString);
print $snoopy->results;
?]