{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1179","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1179/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1179/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1179/events","html_url":"https://github.com/ansible/ansible-modules-core/pull/1179","id":69802640,"number":1179,"title":"Allow custom methods in uri module","user":{"login":"hver","id":3062750,"avatar_url":"https://avatars.githubusercontent.com/u/3062750?v=3","gravatar_id":"","url":"https://api.github.com/users/hver","html_url":"https://github.com/hver","followers_url":"https://api.github.com/users/hver/followers","following_url":"https://api.github.com/users/hver/following{/other_user}","gists_url":"https://api.github.com/users/hver/gists{/gist_id}","starred_url":"https://api.github.com/users/hver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hver/subscriptions","organizations_url":"https://api.github.com/users/hver/orgs","repos_url":"https://api.github.com/users/hver/repos","events_url":"https://api.github.com/users/hver/events{/privacy}","received_events_url":"https://api.github.com/users/hver/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/feature_pull_request","name":"feature_pull_request","color":"009800"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P3","name":"P3","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-21T10:10:33Z","updated_at":"2015-07-04T18:17:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/1179","html_url":"https://github.com/ansible/ansible-modules-core/pull/1179","diff_url":"https://github.com/ansible/ansible-modules-core/pull/1179.diff","patch_url":"https://github.com/ansible/ansible-modules-core/pull/1179.patch"},"body":"I want to use Ansible in a task to refresh Varnish caches. To do so, I have to send a _REFRESH_ request. Unfortunately it is currently not possible, because the _uri_ module restricts the methods to `[GET,POST,PUT,HEAD,DELETE,OPTIONS,PATCH]`.\r\nI would like to propose to remove this restriction and allow any string to be use as a method. I looked into the [RFC2616](https://datatracker.ietf.org/doc/rfc2616/) if there is a list of restricted methods to allow, but it tells only that \r\n> The methods GET and HEAD MUST be supported by all general-purpose servers. \r\n\r\nSo I think there is no reason to restrict the methods to this list. (Otherwise we should rename the _uri_ module to something like _rest_api_)"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/118539852","html_url":"https://github.com/ansible/ansible-modules-core/pull/1179#issuecomment-118539852","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1179","id":118539852,"user":{"login":"gregdek","id":252125,"avatar_url":"https://avatars.githubusercontent.com/u/252125?v=3","gravatar_id":"","url":"https://api.github.com/users/gregdek","html_url":"https://github.com/gregdek","followers_url":"https://api.github.com/users/gregdek/followers","following_url":"https://api.github.com/users/gregdek/following{/other_user}","gists_url":"https://api.github.com/users/gregdek/gists{/gist_id}","starred_url":"https://api.github.com/users/gregdek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregdek/subscriptions","organizations_url":"https://api.github.com/users/gregdek/orgs","repos_url":"https://api.github.com/users/gregdek/repos","events_url":"https://api.github.com/users/gregdek/events{/privacy}","received_events_url":"https://api.github.com/users/gregdek/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T18:17:34Z","updated_at":"2015-07-04T18:17:34Z","body":"@romeotheriault Please review this PR to make sure it adheres to the following guidelines:\r\n\r\nhttp://docs.ansible.com/developing_modules.html#module-checklist\r\n\r\nIf it passes these guidelines, and if you believe it’s a good PR otherwise, please give it a +1; at that point, we will add the “priority_reviewed” flag to this PR, which will move it to the top of our queue for potential inclusion."}}