How to invoke a remote program that need authentication

2003-07-10 Thread bin cai
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

how to write file download program

2003-10-09 Thread bin cai
Hi, I am afraid to ask some instruction for my work. I am thinking to write a program to help client to download some sound file from server. Client send request to download a file in server. The request includes the file name and directory he want the file to be loaded onto. the request invokes