GeezerVison is showing github.com — example/hello_world_server can't handler POST request with big text body · Issue #681 · cpp-netlib/cpp-netlib
example/hello_world_server can't handler POST request with big text body #681Description
- I run the hello_world_server example
- post some raw text data to hello_world_server with POSTMAN
small text OK
large text, say 1000 words, get the "Cound not get any response" error
can anybody tell me why? Activitydeanberris commented on Aug 25, 2016 Does POSTMAN expect a "100 continue" response for larger POST requests? If so, then the hello_world_server doesn't send those 100-continue responses. janlely commented on Aug 26, 2016 I print out all the request headers, it seems that POSTMAN didn't set the "Expect: 100-continue"
Host : 127.0.0.1:8080
Connection : keep-alive
Content-Length : 564
Cache-Control : no-cache
Origin : chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop
Content-Type : text/plain;charset=UTF-8
User-Agent : Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/51.0.2704.79 Chrome/51.0.2704.79 Safari/537.36
Postman-Token : 15587bd8-154a-fac4-e209-06b752dff5aa
Accept : /
Accept-Encoding : gzip, deflate
Accept-Language : en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2 deanberris commented on Aug 26, 2016 Interesting. The hello_world_server is just supposed to respond with text in that case, since it will just attempt to drop the incoming data. Have you tried modifying the server implementation to print the data it's receiving, to see where the problem is? janlely commented on Sep 9, 2016 The content above was just print by the "hello_world_server".
hope you can test by yourself, and solve the problem
I now use libevent instead. carun commented on Jan 13, 2018 I've been able to reproduce the issue on 0.13-release branch on Ubuntu 17.10 64 bit. Will try to find the root cause. carun commented on Feb 23, 2018
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|