Rewriting a "multipart/form-data" request to a "binary" "x-www-form-urlencoded" request

Jon Kristensen info at jonkri.com
Sun Jan 17 00:23:57 UTC 2016


Hi, everyone!

I would like to know if there's a simple way to have Nginx rewrite a
"multipart/form-data" request to a "x-www-form-urlencoded" request with
only a (binary) file as the content.

That is, I want the rewritten request to look like it was produced with the
Curl --data-binary option.

The reason I want to do this is because I'm working with a backend service
that only supports this file encoding.

Thanks in advance!

All the best,
Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160117/a45eeede/attachment.html>


More information about the nginx mailing list