# header without "=" sign in uri command

**URL:** <https://forum.ansible.com/t/header-without-sign-in-uri-command/17567>\
**Category:** Ansible Project\
**Created:** [February 19, 2015, 12:20pm UTC](https://forum.ansible.com/t/header-without-sign-in-uri-command/17567 "2015-02-19T12:20:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Behdad\_Forghani](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@Behdad\_Forghani](https://forum.ansible.com/u/Behdad_Forghani)\
**Post date:** [February 19, 2015, 12:20pm UTC](https://forum.ansible.com/t/header-without-sign-in-uri-command/17567/1 "2015-02-19T12:20:36Z")

</div>

Hi,

I am trying to automate deployment of ambari cluster with Ansible and I do not seem to be able to get the POST method working.

The command that I use with curl is:

curl --user admin:admin -H ‘X-Requested-By:exapackets’ -X POST [http://c6501:8080/api/v1/blueprints/multinode\_cluster](http://c6501:8080/api/v1/blueprints/multinode_cluster) -d @blueprint.json

This works fine.

I tried:

uri: user=admin password=admin method=POST force\_basic\_auth=yes HEADER\_=X-Requested-By:exapackets url=[http://c6501:8080/api/v1/blueprints/multinode\_cluster](http://c6501:8080/api/v1/blueprints/multinode_cluster) body=“{{ lookup(‘file’,‘blueprint.json’) }}”

and

HEADER\_X-Requested-By=exapackets

and

HEADER\_X-Requested-By:exapackets=‘’

None of the seem to work. My suspicion is that the problem is that Ansible expects key=value and in the case of headers, the equal sign becomes part of the header. Any idea?

Of course, for now as a workaround, I am running the curl command as a shell.

Behdad
