# PR: update on URI module, retrieve filename on redirected urls

**URL:** <https://forum.ansible.com/t/pr-update-on-uri-module-retrieve-filename-on-redirected-urls/12656>\
**Category:** Ansible Project\
**Created:** [April 10, 2013, 12:25am UTC](https://forum.ansible.com/t/pr-update-on-uri-module-retrieve-filename-on-redirected-urls/12656 "2013-04-10T00:25:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [April 10, 2013, 12:25am UTC](https://forum.ansible.com/t/pr-update-on-uri-module-retrieve-filename-on-redirected-urls/12656/1 "2013-04-10T00:25:14Z")

</div>

FYI

I updated the uri module to retrieve the remote file name first when the initial url gets redirected.

[https://github.com/ansible/ansible/pull/2630](https://github.com/ansible/ansible/pull/2630)

I tested a couple of use cases, and all seemed fine in the end, though some more testing might be needed.

Serge

---

<div class="post-metadata">

**Author:** ![Romeo\_Theriault](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@Romeo\_Theriault](https://forum.ansible.com/u/Romeo_Theriault)\
**Post date:** [April 10, 2013, 7:30pm UTC](https://forum.ansible.com/t/pr-update-on-uri-module-retrieve-filename-on-redirected-urls/12656/2 "2013-04-10T19:30:54Z")

</div>

Thanks for the note Serge, I’ll run you’re updated URI module through some of the different items I use it for to make sure they still work, but eyeballing (and looking at the httplib2 docs) seems to indicate that your modifications look good.

Romeo
