Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1490234
  • 博文数量: 129
  • 博客积分: 1449
  • 博客等级: 上尉
  • 技术积分: 3048
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-24 18:36
文章分类

全部博文(129)

文章存档

2015年(3)

2014年(20)

2013年(65)

2012年(41)

发布时间: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:......【阅读全文】

阅读(4429) | 评论(0) | 转发(0)

发布时间: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......【阅读全文】

阅读(1758) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册