[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Parsing HTTP headers and HTTP Post Multipart file uploads
From: |
R. Diez |
Subject: |
[lwip-users] Parsing HTTP headers and HTTP Post Multipart file uploads |
Date: |
Thu, 18 Feb 2016 17:53:53 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
Hi all:
I am running lwIP on a 32-bit Cortex-M4 microcontroller. I managed to
get httpserver_raw up and running with LWIP_HTTPD_SUPPORT_POST enabled.
I am trying to upload a file with a Web browser.
It does not seem like httpserver_raw provides any help parsing the HTTP
headers. I specifically need to catch this kind of header:
Content-Type: multipart/form-data;
boundary=---------------------------287032381131322
I haven't found any easy examples on the Internet about parsing HTTP
headers. Can somebody here help?
Once I get the Content-Type sorted out, I need to parse the multipart
headers. Again, lwIP/contrib provides no help. I found this library on
the Internet:
https://github.com/iafonov/multipart-parser-c
But I am having a little trouble. This list of open issues is not very
reassuring:
https://github.com/iafonov/multipart-parser-c/issues
Can anyone here suggest an alternative?
Please copy me on any answers, as I am not subscribed to this mailing list.
Many thanks in advance,
rdiez
- [lwip-users] Parsing HTTP headers and HTTP Post Multipart file uploads,
R. Diez <=