This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X{{ method }} {{ url }} | |
{%- if query_string|length %}?{% endif %} | |
{{- query_string }} \ | |
{%- for header, value in headers.iteritems() %} | |
-H '{{ header|urlencode }}: {{ value|urlencode }}'{% if not loop.last or params|length or auth %} \{% endif %} | |
{%- endfor -%} | |
{% if params|length %}{% for param, value in params.iteritems() %} | |
-d '{{ param.decode('utf-8')|urlencode }}={{ value.decode('utf-8')|urlencode }}'{% if not loop.last or auth %} \{% endif %} | |
{%- endfor %}{%- endif %} | |
{%- if auth %} |