On 26/10/14 22:21, Stas Malyshev wrote:
> Hi!
> 
>> The only way to do this in PHP now is write a userland function that parses
>> multipart form data, which is non-trivial. I had written one, but would
> 
> It is true that PUT data need to be parsed, however it is not true you
> have to implement MIME parsing from scratch. There are frameworks that
> implement that. Not everything must be written in C. But if you want C,
> doesn't pecl/http already have the required bits?

Yes, see here:

http://devel-m6w6.rhcloud.com/mdref/http/Env
http://devel-m6w6.rhcloud.com/mdref/http/Env/Request
http://devel-m6w6.rhcloud.com/mdref/http/Message
http://devel-m6w6.rhcloud.com/mdref/http/Message/splitMultipartBody
http://devel-m6w6.rhcloud.com/mdref/http/Message/Body


-- 
Regards,
Mike

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to