java做的socket服务端接收http请求,怎么接收不到内容?
各位,我客户端用 URLConnection向服务端发送数据,服务端我用socket来接收,怎么接收不到想要的数据?只能收到如下内容:
POST /a.lif HTTP/1.1
Content-type: text/xml
User-Agent: Java/1.4.1_02
Host: 127.0.0.1:10444
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 9