HTTP.POST
Send an HTTP POST request. Used to create a resource on the server or to generally send data to the server. Please refer to https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods for more information about the different HTTP methods
Syntax
=HTTP.POST(URL, [Body], [HeadersJSON], [ConfigJSON], [Target])
Arguments
Name | Type | Description |
---|---|---|
URL | String | The URL to request. |
Body (optional) | String | The body of the request |
HeadersJSON (optional) | JSON | Headers of the HTTP request. |
ConfigJSON (optional) | JSON | A JSON with one or more of the following properties:
|
Target (optional) | Target | INBOX(), OUTBOX("MsgID") or a cell range where the result will be placed. Make sure the cell range is big enough or not everything is displayed. |
Return
The function HTTP.POST() always returns a unique random request ID. Otherwise an error is displayed.
Examples
A | B | |
---|---|---|
1 | Headers | |
2 | Accept | application/json |
3 | Config | |
4 | timeout | 3000 |
Examples for using the config and header parameter. Use a JSON() function around the cell ranges.