I am looking to convert the html url into ansible uri module, when i load the url in browser it gives results, but from uri module i am getting errors
My URL:- https://rally1.rallydev.com/slm/webservice/v2.0/user?query=(FirstName = test1)&fetch=true
Ansible uri module:-
uri:
url: https://rally1.rallydev.com/slm/webservice/v2.0/user?query=(FirstName = "test1")&fetch=true
user: myusername
password: mypass
force_basic_auth: yes
follow_redirects: all
return_content: yes
method: GET
register: get_data
- debug: var=get_data
I am getting this error:-
fatal: [localhost]: FAILED! => {"cache_control": "no-cache", "cf_ray": "4dd5a65fea0cba46-ATL", "changed": false, "connection": "close", "content": "<html><body><h1>400 Bad request</h1>\nYour browser sent an invalid request.\n</body></html>\n", "content_type": "text/html", "date": "Mon, 27 May 2019 05:39:42 GMT",
Please help