Skip to main content

HTTP Step Reference

This topic describes the settings for the HTTP step.

You can use the HTTP step to run HTTP methods containing URLs, methods, headers, assertions, and variables.


The name of the step. You'll use this name when you reference this step's settings.

For example, if the step name is HTTP and you want to reference the URL entered in its URL setting, you would use:



The timeout for this step. You can use:

  • w for weeks
  • d for days
  • h for hours
  • m for minutes
  • s for seconds
  • ms for milliseconds

The maximum is 53w.

Timeouts can be set at the Pipeline level also.


The URL for the HTTP call.


The HTTP method to use in the step.

Request Body

The message body of the HTTP message.


The assertion is used to validate the incoming response. For example, if you wanted to check the health of an HTTP connection, you could use the assertion <+httpResponseCode> == 200.

The expression <+httpResponseCode> == 200 will evaluate to true if the HTTP call returns a 200 code.

Expressions can use the following aliases to refer to the HTTP responses, URL, and method:

  • <+httpResponseCode>
  • <+httpResponseBody>


Enter the media type for the message. For example, if you are using the GET method, the headers are used to specify the GET response body message type Harness will check for.

For example, in Key, enter Token .

In Value, enter <+secrets.getValue("aws-playground_AWS_secret_key")>.

Another example:

  • Key: variable:
  • Value: var1,var2:var3


Create output variables to be used by other steps in the stage. The Value setting can contain any HTTP step input, output, or response information.

You can also use ​JSON and XML functors in the values for the output variable. For example, <"data.attributes.version_pins.mvn-service://new-construction-api", httpResponseBody)>.

See JSON and XML Functors.

Step Execution Inputs and Outputs

Once you execute your Pipeline, the step displays its inputs and outputs and their values.

You can reference these anywhere in your Pipeline.


In the following examples, the Id of the HTTP step is HTTP.

Input NameInput Reference ExampleInput Value Example
name<>check response
assertion<+pipeline.stages.HTTP.spec.execution.steps.check_response.spec.assertion><+httpResponseCode> == 200


In the following examples, the Id of the HTTP step is HTTP.

OutputOutput Reference ExampleOutput Value Example

Advanced Settings

In Advanced, you can use the following options:

Header Capability Check

When Harness runs an HTTP step and connects to a service, it checks to make sure that an HTTP connection can be established.

Some services require that HTTP headers are included in connections. Without the headers, the HTTP connections fail and simple HTTP verification cannot be performed.

Harness performs an HTTP header capability check for any header requirements on the target service.

If the target host server requires headers and you do not include headers in the Headers setting of the HTTP step, the Harness Delegate will fail the deployment with the error No eligible Delegates could perform this task (error 400).

Simply add the required headers in Headers, and then run the deployment. Adding the headers will prevent the 400 error.

See Also