About post file in a request
Dear warmcat,
I am working on sending a file with post request and find i have to parse the multipart http body myself and then record file, so is it possible libwebsocket realize this parse function? This shouldn't be an issue, but i have no other way to submit, sorry.
Thanks jessie
On 10/12/13 12:54, the mail apparently from bluebluesky included:
Dear warmcat,
I am working on sending a file with post request and find i have to parse the multipart http body myself and then record file, so is it possible libwebsocket realize this parse function? This shouldn't be an issue, but i have no other way to submit, sorry.
Let me have a think about this... POST was a bit of a slippery slope in terms of bloat considering it's specifically a websockets library.
It might be time to start a new small library which provides lws-style http handling APIs in a tight way without bloating lws itself. Or, just protect it with a config option.
BTW there's a mailing list here
http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
-Andy
Thanks jessie
— Reply to this email directly or view it on GitHub https://github.com/warmcat/libwebsockets/issues/36.