# HTTP

The HTTP channel is useful for pushing your Shopify orders to a REST API, a GraphQL interface, or a SOAP web service.

### URL

The first step is to specify the target URL.

<figure><img src="/files/PAD5sqzqvcSiyu8N5d0d" alt="HTTP target URL set to https://api.posterflow.de/api/"><figcaption></figcaption></figure>

You can include [Liquid variables](/liquid/liquid-variables.md) in the URL. For example, to pass the order number in the path, set the URL to:

```
https://api.example.com/orders/{{order.order_number}}
```

A special Liquid variable for the URL field is the `{{output}}` variable which stores the entire content generated from the output template. It can be useful in rare cases when a web service accepts data only through the query parameters.

```
https://ecommerce.gardenimpressions.nl/webservices/garden-mkpprod/PutOrder?XMLTEXT={{output | url_encode}}
```

### Method

You can select one of the following HTTP methods: GET, POST, or PUT.

In most cases, the desired method is POST.

For POST and PUT methods, the generated output is passed in the request payload body.

### Headers

HTTP headers are pieces of information that are sent along with the main payload. An HTTP header consist of a key (a fixed name), and value. One of the most popular headers is `Content-Type`. The `Content-Type` header is automatically added by Exporteo, and changes according to the selected output format.

<figure><img src="/files/X2ihD4nV3dLVyDd9mryx" alt="Content-Type header set to text/csv"><figcaption></figcaption></figure>

| Output Format | Content-Type     |
| ------------- | ---------------- |
| CSV           | text/csv         |
| JSON          | application/json |
| XML           | application/xml  |

However, you may need to adjust the `Content-Type` header for the XML output formats, as some web services require `text/xml` instead of `application/xml`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.exporteo.solvenium.com/destination-settings/http.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
