请教http request的POST详细格式
现在本机用ASP配好了一个IIS,现在自己编写客户端,要求通过socket利用http协议与服务器端进行通信,现在的要求就是在自己编写的客户端输入一串字符串,使之能够上传到服务器,我想应该是用POST格式吧,在网上搜了相关资料,发现多数是关于GET的,也看了RFC2616,发现上面也没详细说明POST的格式,故特来请教。另外附上自己根据网上资料编的request,但是最后运行时提示:400 Bad Request
sprintf(request, "POST http://localhost:6000/default.asp HTTP/1.1\r\n\
Accept: */*\r\n\
User-Agent: MSIE 6.0\r\n\
Content-Type: application/x-www-form-urlencoded\r\n\
Content-Length: 20\r\n\
Accept-Language: zh-cn\r\n\
Host: http://localhost:6000\r\n\r\n\
type=12345&name=aaaa\r\n\r\n");