摘要:这是一个download file 的 c写的cgi ,请找出程序错误和可能有问题的地方。void downFile( char *filename){char buff[655]; int n; time_t tp; FILE *fp; struct stat s; tp=time(NULL); stat(filename, &s);printf("HTTP/1.1 200 OK\n"); printf("Content-Disposition: attachment;filename=test.txt\n"); printf("Co
阅读全文
posted @ 2012-03-02 14:12
浙公网安备 33010602011771号