You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
Main build (Jenkins)
This commit is contained in:
13
docs/en/examples/HTTPClient/AddMultipartFormDataFile.txt
vendored
Normal file
13
docs/en/examples/HTTPClient/AddMultipartFormDataFile.txt
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
.StartMultipartBody()
|
||||
.AddMultipartFormDataFile("file1", "pic.png", Image, "image/png") // <---
|
||||
.AddMultipartFormDataField("Field1", "Text")
|
||||
.AddMultipartFormDataField("Field2", "10")
|
||||
.ProcessRequest("POST")
|
||||
.ReturnResponseAsJSONObject();
|
||||
Reference in New Issue
Block a user