You are attempting to access the web port directly, is that the actual port of the proxy server?
Try using the proxy server port # "Kriegers Horst" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I wish to fetch an internet web page. > Oour internet access is through MS-Proxy server 2.0 with NTLM > authentification (domain\user:password). > I experience an access probleme. > > Here you are the result: > proxy_srv_01:80 is available > HTTP/1.0 407 Proxy Access Denied Server: Microsoft-IIS/3.0 Date: Fri, 08 Feb > 2002 08:15:35 GMT Proxy-Authenticate: NTLM Proxy-Authenticate: Basic > realm="proxy_srv_01.stg.swiss" > > > Here you are my code: > > <? > $user="lnt_01\test"; // DomainNT\UserName > $pass="test"; // UserPassword > > > $proxy_s = "proxy_srv_01"; // Proxy server to Internet > $proxy_p = "80"; // Proxy port > > $myfiles = "http://www.phpscripts-fr.net"; // URL to fetch > > $datei = fsockopen($proxy_s, $proxy_p, &$errno,&$errstr, 30); > > if( !$datei ) > { > echo "<font color=red><b>$proxy_s:$proxy_p isn't available > !</b></font>"; > exit(); > } else { > echo "<font color=green><b>$proxy_s:$proxy_p is > available</b></font><br>"; > fputs($datei,"GET $myfiles/ HTTP/1.0 \r\n\r\n"); > > while (!feof($datei)) > { > echo $zeile = fread($datei,1000); > } > } > ?> > > Is something erroneous in my code? > > If somebody can help me, I will be really happy > Thanks > > Horst > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php