---
title: "http:request — HTTP request"
description: "iXML command http:request: HTTP request."
canonical_url: "https://www.zeyos.com/ixml/ref/http-request"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/http-request.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# http:request — HTTP request

HTTP:REQUEST sends a HTTP/1.1 request and receives a HTTP response according to RFC 2616.

HTTP:REQUEST returns an array in 'var_info' comprised of the following items:

				Key    Description
				----------------------------
				status response status code
				type   response content type
				header response header
				body   response body

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name for response body |
| var_info | var |  | Result variable name for detailed response information |
| url | string |  | URL |
| timeout | int | 60 | Timeout in seconds |
| validate | bool |  | Validate SSL |
| method | string | GET | Method |

#### Possible values
Possible values for `method`:
- HEAD — HEAD
- GET — GET
- POST — POST
- PUT — PUT
- DELETE — DELETE
- TRACE — TRACE
- OPTIONS — OPTIONS
- CONNECT — CONNECT


### Children
- http:header (occurrence: single) — HTTP header
- http:body (occurrence: single) — HTTP body

### Parents
- (not restricted in the reference)

### Result
- binding: var; type: string
- binding: var_info; type: array; predicate: no-result-propagation

### Examples

```xml
<decode:json var="data">
	<http:request url="https://api.predic8.de/shop/v2/products" method="POST">
		<http:header>
			Content-Type: application/json
		</http:header>

		<http:body>
			{"name": "Wildberries", "price": 4.99}
		</http:body>
	</http:request>
</decode:json>

<set var="route">$data.self_link</set>

<decode:json var="data">
	<http:request url="https://api.predic8.de$route" method="GET"/>
</decode:json>

<output>$data.name</output>

<!-- Wildberries -->
```
