HttpRequest Task
Basic Syntax
<task class="endpoints.task.HttpRequestTask">
<!-- mandatory -->
<url>http://www.google.com/foo/${variable}</url>
<!-- optional, default GET -->
<method name="POST"/>
<!-- zero or more - provided method is GET -->
<get-parameter name="foo">${variable}</get-parameter>
<!-- zero or more - provided method is POST -->
<post-parameter name="foo">${variable}</post-parameter>
<!-- zero or more -->
<request-header name="foo">${variable}</request-header>
<!-- optional -->
<basic-access-authentication username="${variable}" password="${variable}"/>
<!-- either one <xml-body>, or <json-body>, or neither -->
<json-body>...</json-body>
</task>Request Body
XML-Request Body with Inline Contents
XML-Request Body from Transformation
JSON-Request Body with Inline Contents
JSON-Request Body from Transformation
Last updated