Okay, this is what I've done,
$script_url="/path/secure?request=yourinfo";
$fp = fsockopen ("http://www.foobar.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs( $fp, sprintf( "GET %s HTTP/1.0\n\n", $script_url ) );
while (!feof($fp)) {
echo fgets ($fp,256);
}
fclose ($fp);
Then I got stuck. Again I would like to know how to examine the response for occurrences of "John" from here. Could anyone please give me a hand on this?(On how to read through the js file: http://www.foobar.com/path/secure?request=yourinfo to find out the existence of the string "John"? Thank you very much