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
363 B
Plaintext
Raw Normal View History

2025-05-06 23:00:33 +03:00
 URL = "https://httpbin.org";
URL = URL + "/post";
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.SetBinaryBody(Image)
.UseGzipCompression(True) // <---
.ProcessRequest("POST", False)
.ReturnRequest();