-
Notifications
You must be signed in to change notification settings - Fork 1.5k
can you support parse http multipart header #486
Comments
Do you have an example of such request? We've been using this parser in Node.js for quite some time. As far as I know multipart headers should be well supported. |
upload_file.zip |
Since this library does no networking, could you please extract the actual request from Thanks! |
POST /fileupload/servlet/UploadHandleServlet HTTP/1.1 ------WebKitFormBoundaryAe47vGj7ybAe6RwO ------WebKitFormBoundaryAe47vGj7ybAe6RwO 123456 ------WebKitFormBoundaryAe47vGj7ybAe6RwO-- |
content-disposition and Content-Type can not be parsed |
They should be emitted as body of request (which they are). Is that what you see? |
yes, they are emitted as body of request,and we can parse the ones above the ‘------WebKitFormBoundaryAe47vGj7ybAe6RwO’ . we also need parse content-disposition and more from MIME header |
I see now. Thank you for clarification. Unfortunately, this is working as intended. It would not be reasonable to solve this on http-parser level. Rather the high-level user of this library should be solving it. Sorry! |
@hongjiangchen, Nodejs here only "maintains" (almost abandoned) parser and do not care about any new features. Nodejs itself have a higher level multipart form data parser, so I am sure that multipart support won't ever be a part of new bicycle named "llhttp". |
for example,when we upload a file through http post, http_parse can not parse multipart header
The text was updated successfully, but these errors were encountered: