Thank you so much for your reply penegate (I posted this problem on many other php forums an no-one replied, vbforums was my last resort)
Well, I already had a attempt at this. But it just keeps giving me a 302 response :s. Using sockets is not a requirement, but I would very much like to use sockets since I like to explore stuff.
PHP Code:
<?php
$host = "www.onelook.com";
$fp = fsockopen($host, 80, $errno, $errdesc) or die("Connection to $host failed");
$request = "GET /w=cat&ls=a HTTP/1.1\r\n";
$request .= "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*\r\n";
$request .= "Referer: http://www.onelook.com/?w=cat&ls=a\r\n";
$request .= "Accept-Language: en-us\r\n";
$request .= "Accept-Encoding: gzip, deflate\r\n";
$request .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)\r\n";
$request .= "Host: www.onelook.com\r\n";
$request .= "Connection: Keep-Alive\r\n\r\n";
fputs($fp, $request);
while(!feof($fp)){
$page[] = fgets($fp, 1024);
}
fclose($fp);
for($i=0; $i<count($page); $i++){
echo $page[$i] . "\n";
}
?>
Any ideas matey? I hope you are the one who can help me!