-
-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request with multipart/form-data is parsed only when its size is very small #607
Comments
Very strange, I don't get this error when I try to upload a file with
|
Strange indeed... it must be a silly mistake but I cannot find it. I copied your code and it does not work for me either. maybe I included libraries in a bad way since i'm using standalone ASIO and manually including Crow, but the code works just fine other than this specific case. Thanks for checking it out @kiner-shah |
Probably curl inserts a HTTP header "Expect: 100-continue" when uploaded file is greater than some threshold. I have a similar issue when POSTING json data with curl :
By forcing Expect:100-continue, I have the same issue : from read(1) with description: "invalid HTTP method" When I remove the header, and send a small file, it works !
|
Hello,
I am making a file uploading server. the simplified code is like this.
When the Content-length exceeds 1024, http parser raises an error "invalid HTTP method". I tested with varying sizes and file types but it always stops to work when the content-length is 1025 or over
What should I do to make it work with bigger files?
Thanks
The text was updated successfully, but these errors were encountered: