1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/examples/HTTPClient/UseGzipCompression.txt

12 lines
349 B
Plaintext
Raw Normal View History

2025-06-27 11:47:43 +03:00
 URL = FunctionParameters["HTTP_URL"];
2025-05-06 23:00:33 +03:00
URL = URL + "/post";
2025-06-27 11:47:43 +03:00
Image = FunctionParameters["Picture"]; // URL, Path or Binary Data
2025-05-06 23:00:33 +03:00
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.SetBinaryBody(Image)
2025-05-09 00:04:38 +03:00
.UseGzipCompression(False) // <---
2025-05-06 23:00:33 +03:00
.ProcessRequest("POST", False)
.ReturnRequest();