post请求后,无返回信息,是怎么回事呢?? 400 报错
@hongliuliao 你好,想跟你请教个问题:post请求后,无返回信息,是怎么回事呢?
2015-10-20 19:47:11.778 DEBUG /home/develop/httpserver/epoll_socket.cpp(71): server: got connection from 172.18.20.193
2015-10-20 19:47:11.778 DEBUG /home/develop/httpserver/epoll_socket.cpp(84): get accept socket which listen fd:3, conn_sock_fd:5
2015-10-20 19:47:11.779 DEBUG /home/develop/httpserver/epoll_socket.cpp(116): read success which read size:172
2015-10-20 19:47:11.779 DEBUG /home/develop/httpserver/http_parser.cpp(199): read from client: size:172, content:POST /sayhello HTTP/1.1
Host: 172.18.20.195
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.4 (Java 1.5 minimum; Java/1.7.0_75)
Accept-Encoding: gzip,deflate
2015-10-20 19:47:11.779 DEBUG /home/develop/httpserver/http_parser.cpp(224): start parse req_line line:POST /sayhello HTTP/1.1
2015-10-20 19:47:11.779 DEBUG /home/develop/httpserver/http_parser.cpp(85): start parse params which request_url:/sayhello
2015-10-20 19:47:11.779 DEBUG /home/develop/httpserver/http_parser.cpp(231): parse_request_line success which method:POST, url:/sayhello, http_version:HTTP/1.1
2015-10-20 19:47:11.779 DEBUG /home/develop/httpserver/http_parser.cpp(242): start PARSE_REQ_HEAD line:Host: 172.18.20.195
2015-10-20 19:47:11.779 DEBUG /home/develop/httpserver/http_parser.cpp(242): start PARSE_REQ_HEAD line:Connection: Keep-Alive
2015-10-20 19:47:11.779 DEBUG /home/develop/httpserver/http_parser.cpp(242): start PARSE_REQ_HEAD line:User-Agent: Apache-HttpClient/4.4 (Java 1.5 minimum; Java/1.7.0_75)
2015-10-20 19:47:11.779 DEBUG /home/develop/httpserver/http_parser.cpp(242): start PARSE_REQ_HEAD line:Accept-Encoding: gzip,deflate
2015-10-20 19:47:11.779 ERROR /home/develop/httpserver/http_parser.cpp(269): parse request no over parse_part:2, line_info:method:POST,request_url:/sayhello,http_version:HTTP/1.1
在post请的body中加上 数据后,就出现如下提示
2015-10-20 20:40:14.877 DEBUG /home/develop/Balancer/httpserver/http_parser.cpp(184): READ REQUEST NOT OVER!
浏览器的链接已经保存链接不会关闭。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。