views:

103

answers:

0

Hello,

I receive HTTP Post requests from an application, which is already deployed on mobile phones. This application worked fine the last months, but now PHP started complaining with respect to a POST file upload: UPLOAD_ERR_PARTIAL via HTTP 1.0 and PHP5. (After a crash the server had been set up again with new Apache and PHP versions, and this probably has broken the working application.)

I am not able to modify the already deployed application. Hence, I need to correct this on server side.

I checked the tcpdump and saw that the final/trailing boundary is missing e.g.,

--FORM-DATA-BOUNDARY
Content-Disposition: form-data; name="duk"; filename="duk.png"
Content-Type: image/png

<BINARY DATA>
--FORM-DATA-BOUNDARY   <------- this one is MISSING

Is there a way to modify the Apache raw input data and add the boundary manually (say using mod_rewrite)?

Or is there a "fix the HTTP request format" module or option?

Thanks!

Erik