发布时间:2013-01-05 14:08:52
http以post方式上传一个文件,构造其请求头和消息报文 假设接受文件的网页程序位于 http://192.168.24.56/logsys/home/uploadIspeedLog!doDefault.html.假设我们要发送一个图片文件,文件名为“kn.jpg”, 首先客户端链接 192.168.24.56 后, 应该发送如下http 请求: POST/logsys/home/uploadIspeedLog!doDefault.html HTTP/1.1 Accept: text/plain, */* Accept-Language:......【阅读全文】
发布时间:2013-01-04 13:38:44
#define IO_BUFFER 256#define BUFFER_SIZE 1024#define MAX_FRAME_SIZE (256*1024)#define TEN_K (10*1024)/* the boundary is used for the M-JPEG stream, it separates the multipart stream of pictures */#define BOUNDARY "boundarydonotcross"#define STD_HEADER "Connection: close\r\n" \ &n......【阅读全文】