[FFmpeg-devel] [RFC] Add option for using PUT instead of POST in HTTP protocol

Tomas Härdin tomas.hardin
Fri Jul 30 16:07:57 CEST 2010


Hi

I've mentioned a couple of times on this list that users might want to
use PUT to upload files instead of POST. As expected, I had to do that
at work today. I solved it using a simple hack, but after asking around
a bit on IRC it seems implementing this as an option in http's priv_data
would be an acceptable solution.

As a proposal, I added an int called "put" in HTTPContext, and a
corresponding AVOption. If non-zero, it uses "PUT" instead of "POST" for
uploads. See attached patch, although it's just for discussion purposes
since I'm not entirely sure how to use AVOption. It compiles and tests
fine though.

/Tomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http_put.patch
Type: text/x-patch
Size: 1783 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100730/d913bf01/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100730/d913bf01/attachment.pgp>



More information about the ffmpeg-devel mailing list