How about asking the php folks?

If this were java - just use HttpClient from jakarta-commons.

-Tim

bin cai wrote:
Hi,
In client side i wrote a php script trying to invoke a cgi script in web server
$fp = fsockopen (http://webserver, 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs ($fp, "GET /bintest.cgi?" HTTP/1.0\r\nHost:http://webserver\r\n\r\n";);
}
The web server will chanllenge me to supply user name and password.
How can I write the username and password into my php script in order to invoke the cgi script .
Any help will be really appreciated.
bin




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to