Hi guys,
I have this problem:
I am using a script like this to make php use a remote proxy to get pages using a 
remote proxy:
 $data1 = fsockopen($proxy, $port, &$errno, &$errstr); 
 if( !$data1 ) 
  { 
   echo "proxy not available !"; 
   fclose($resultfile); 
//   exit(); 
  }
 else 
  {
  fputs($data1,"GET $myfiles/ HTTP/1.0\n\n"); 
  while (!feof($data1)) 
   { 
    $mydata = fgets($data1,1000); 
    echo "$mydata";
   } 
  } 

The problem is that i want to set the HTTP_USER_AGENT to something different than a 
blank field, but have no idea how to do that.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to