博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年3月2日

摘要: 这是一个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 wangwangkunkun 阅读(151) 评论(0) 推荐(0) 编辑