2022-12-19 18:43:46 +01:00
|
|
|
# Example request using curl
|
|
|
|
|
curl -X {{=data.methodUpper}} http://coder-server:8080{{=data.url}}{{=data.requiredQueryString}}{{?data.allHeaders.length}} \{{?}}
|
2023-01-03 19:21:10 +01:00
|
|
|
{{~data.allHeaders :p:index}}{{
|
|
|
|
|
if (p.name == "Content-Type" && p.exampleValues.object == "application/x-www-form-urlencoded") {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
}} -H '{{=p.name}}: {{=p.exampleValues.object}}'{{?index < data.allHeaders.length-1}} \
|
2022-12-21 15:37:30 +01:00
|
|
|
{{?}}{{~}}
|