# HTTP Post Task

This is a task that executes the HTTP protocol's POST method.

## Parameters

- Path

  - Sets the target path for the HTTP call.
  - The URL is completed by adding the path to the base of the connection's endpoint.
    - If the connection endpoint is 'https://abc.com:8080' and the path is '/users/def', then the URL becomes 'https://abc.com:8080/users/def'.
  - The path supports [template literals](../concept/template-literal.md), allowing the use of variables such as data, variables, and domain.

- Headers

  - Adds header values to be included in the request.
  - The value of each header supports [template literals](../concept/template-literal.md), allowing the use of variables such as data, variables, and domain.

- Content Type

  - Sets the format of the content in the POST request.
  - This format is added to the 'content-type' header included in the request.
    - 'text/plain': Indicates that the body format of the request is text.
    - 'application/json': Indicates that the body format of the request is a JSON object.
    - 'application/x-www-form-urlencoded': Indicates that the body format of the request is in the search parameter format.

- Accessor [accessor](../concept/data-accessor.md)

  - Sets the step from the data in the scenario context that will be used as the body of the POST request.
  - The result value of that step is used as the body of this request.

## Result

- The data format of the HTTP POST method's response follows the setting of the "content-type" header in the response.
  - If the "content-type" header value of the HTTP response is 'application/json', it returns an object format. Otherwise, it returns a string format.
