ufairiya / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Extracting post data #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Sending multipart form data
2.
3.

What is the expected output? What do you see instead?
Multipart form data (attached file) minus the header information from ri-
>post_data

What version of the product are you using? On what operating system?
mongoose 2.3 and mongoose 2.8 in different applications.

Please provide any additional information below.
I want to extract the attached file from the post_data. The post_data also 
has the header informaiton attached. How do I get back my binary file from 
this?
Thanks.

Original issue reported on code.google.com by sameer...@gmail.com on 22 Nov 2009 at 3:09

GoogleCodeExporter commented 9 years ago
You have to parse POST data manually, there is no API for that yet.

Original comment by valenok on 21 Apr 2010 at 9:28

GoogleCodeExporter commented 9 years ago
>> You have to parse POST data manually, there is no API for that yet.

Hi, 

I've just tried mongoose and I need to parse post data. For a very simple form. 
I'd be happy to do it manually, but I do not see where I can get the raw data 
from.

I installed
void* Handler(mg_event event, mg_connection *conn, const mg_request_info 
*request_info)
with mg_start. It gets called on posts. But where can I get the data from ?

Thanks,
J.

Original comment by JeffreyR...@gmail.com on 2 Sep 2011 at 11:41