Proxy-Authorization in PHP???
| From: | Rajesh Kumar | Date: | Sun, 19 Nov 2000 18:03:06 +0000 |
| Subject: | Proxy-Authorization in PHP??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-26142@lists.php.net to get a copy of this message | ||
How to do proxy authorization in PHP ??
I want to open page for eg. http://www.yahoo.com for reading .
I am unable to do it using fopen("$add","r"), because in our institute we
need to give userid:pwd to access internet. How to bypass internal
proxy server and read pages?
For e.g. in WEBL we need to include following lines-
import Base64;
var A = "Basic " +Base64_Encode("$user:$passwd");
var P=GetURL("http://www.mailcity.com",nil,[."Proxy-Authorization"=A.]);
Do we have something similar in PHP or is there some other way for proxy
authorization ????? or some other way to read pages ??
Please help !!!
thanks
rajesh