Sriharsha Setty
2010-08-11 16:08:39 UTC
Hello,
I want my application to handle requests sent through `curl' like this:
curl -X POST -d @def.json -d @image.jpg http://localhost:8080/json
The first part of the POST chunk is a JSON snippet read from a file and the
other is an image file.
I believe request.body gives me both these chunks as an single entity. Is
there a way I can handle both these separately ?
Thank you,
I want my application to handle requests sent through `curl' like this:
curl -X POST -d @def.json -d @image.jpg http://localhost:8080/json
The first part of the POST chunk is a JSON snippet read from a file and the
other is an image file.
I believe request.body gives me both these chunks as an single entity. Is
there a way I can handle both these separately ?
Thank you,