> For the complete documentation index, see [llms.txt](https://hiimmaxx7s-organization.gitbook.io/gpm-automate/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hiimmaxx7s-organization.gitbook.io/gpm-automate/no-code-automation/http/http-request.md).

# HTTP Request

## Giải thích thêm về 1 số thông số khi dùng action HTTP Request

1. **URL:** Địa chỉ của tài nguyên trên server.
2. **Method:** Phương thức HTTP để thực hiện yêu cầu, ví dụ: GET, POST, PUT, DELETE,...
3. **Header:** Thông tin bổ sung gửi kèm yêu cầu, chẳng hạn như loại nội dung và thông tin xác thực.\
   VD: Authorization: Bearer \<token>,...
4. **Data:** Dữ liệu gửi kèm trong yêu cầu (chỉ áp dụng cho một số phương thức như POST và PUT) (chính là body/payload).
5. **Use profile's proxy:** Sử dụng proxy của profile khi thực hiện request thay vì dùng local ip.<br>

**Ví dụ 1:** Với dạng body **application/json** thì phần body điền theo định dạng:

<figure><img src="/files/ckdYvXla2HPUUmZvNekp" alt=""><figcaption><p>HTTP Request 1</p></figcaption></figure>

<figure><img src="/files/xs3HylcazBSum7LHTFM5" alt=""><figcaption><p>HTTP Request 2</p></figcaption></figure>

**Ví dụ 2:** Với dạng body **application/x-www-form-urlencoded** thì phần body điền theo định dạng: key1=value1\&key2=value2\&key3=value3 (các cặp key-value nối với nhau bởi dấu &)

<figure><img src="/files/zr6kyOAPN2UhAT1jnugc" alt=""><figcaption><p>Postman</p></figcaption></figure>

<figure><img src="/files/QtPxIOnxWRWOfkNEal3Q" alt=""><figcaption><p>HTTP Request 1</p></figcaption></figure>

<figure><img src="/files/C3E1X0PrFH5RMQ6iFjlP" alt=""><figcaption><p>HTTP Request 2</p></figcaption></figure>

**Ví dụ 3:** Với dạng body **multipart/form-data** thì phần body điền theo định dạng:

<figure><img src="/files/NGvpSajXYrI1yQQtMSXw" alt=""><figcaption><p>Postman</p></figcaption></figure>

<figure><img src="/files/Ea1WcpYUC191OTUVau6i" alt=""><figcaption><p>HTTP Request 1</p></figcaption></figure>

<figure><img src="/files/JaQISF3ULaj05T9IZDgk" alt=""><figcaption><p>HTTP Request 2</p></figcaption></figure>
