# s3 module - passing headers for PUT operations

**URL:** <https://forum.ansible.com/t/s3-module-passing-headers-for-put-operations/13815>\
**Category:** Ansible Project\
**Created:** [October 31, 2013, 4:10pm UTC](https://forum.ansible.com/t/s3-module-passing-headers-for-put-operations/13815 "2013-10-31T16:10:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jake\_Kreider](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@Jake\_Kreider](https://forum.ansible.com/u/Jake_Kreider)\
**Post date:** [October 31, 2013, 4:10pm UTC](https://forum.ansible.com/t/s3-module-passing-headers-for-put-operations/13815/1 "2013-10-31T16:10:46Z")

</div>

Amazon S3 uses file metadata for various HTTP headers (cache control, content encoding, etc.), which are provided as HTTP headers when PUTting the file. From what I can tell, the s3 module currently doesn’t provide a way to pass headers during PUT operations, although the underlying boto function set\_contents\_from\_filename can accept them. Is there another way to go about doing this? Or, if this is a feature the maintainers think would be valuable, I can work on a pull request for library/cloud/s3? Thanks in advance.

Jake

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [November 1, 2013, 12:08am UTC](https://forum.ansible.com/t/s3-module-passing-headers-for-put-operations/13815/2 "2013-11-01T00:08:47Z")

</div>

A pull request would be great, thanks!
