Hello,
I am accessing a url which needs authentication, so for authentication i am using cookie something like this
$out = "GET $path HTTP/1.0\r\nHost: $host\r\nCookie: user=$cookie\r\n\r\n";
$fp = fsockopen($host, 80, $errno, $errstr, 30) or htmlerror('Bandwidth limit exceeded, please try again later.');
fwrite($fp, $out);
so i wanted to know whether instead of cookie how can i use directly username and password in variable $out
Thank You