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:
14
docs/en/examples/HTTPClient/SetProxy.txt
vendored
Normal file
14
docs/en/examples/HTTPClient/SetProxy.txt
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/get";
|
||||
|
||||
ProxySettings = New InternetProxy;
|
||||
|
||||
ProxySettings.User = "user";
|
||||
ProxySettings.Password = "password";
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize()
|
||||
.SetURL(URL)
|
||||
.SetProxy(ProxySettings) // <---
|
||||
.ProcessRequest("GET", False)
|
||||
.ReturnConnection();
|
||||
32
docs/en/examples/HTTPClient/SplitArraysInURL.txt
vendored
Normal file
32
docs/en/examples/HTTPClient/SplitArraysInURL.txt
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/get";
|
||||
|
||||
ArrayParam = New Array;
|
||||
ArrayParam.Add("val1");
|
||||
ArrayParam.Add("val2");
|
||||
ArrayParam.Add("val3");
|
||||
|
||||
ParametersStructure = New Structure("arrayfield", ArrayParam);
|
||||
|
||||
Separation = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize("https://example.com/page")
|
||||
.SetURLParams(ParametersStructure)
|
||||
.SplitArraysInURL(True) // <---
|
||||
.ProcessRequest("GET", False)
|
||||
.ReturnRequest()
|
||||
.ResourceAddress;
|
||||
|
||||
SeparationPhp = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize("https://example.com/page")
|
||||
.SetURLParams(ParametersStructure)
|
||||
.SplitArraysInURL(True, True) // <---
|
||||
.ProcessRequest("GET", False)
|
||||
.ReturnRequest()
|
||||
.ResourceAddress;
|
||||
|
||||
NoSeparation = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize("https://example.com/page")
|
||||
.SetURLParams(ParametersStructure)
|
||||
.ProcessRequest("GET", False)
|
||||
.ReturnRequest()
|
||||
.ResourceAddress;
|
||||
24
docs/en/examples/HTTPClient/UseURLEncoding.txt
vendored
Normal file
24
docs/en/examples/HTTPClient/UseURLEncoding.txt
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/get";
|
||||
|
||||
ParametersStructure = New Structure;
|
||||
ParametersStructure.Insert("param1", "search?text");
|
||||
ParametersStructure.Insert("param2", "John Doe");
|
||||
ParametersStructure.Insert("param3", "value&another");
|
||||
ParametersStructure.Insert("param4", "cyrillic");
|
||||
ParametersStructure.Insert("param5", "<script>alert('XSS')</script>");
|
||||
|
||||
NoEncoding = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize("https://example.com/page")
|
||||
.SetURLParams(ParametersStructure)
|
||||
.UseURLEncoding(False) // <---
|
||||
.ProcessRequest("GET", False)
|
||||
.ReturnRequest()
|
||||
.ResourceAddress;
|
||||
|
||||
WithEncoding = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize("https://example.com/page")
|
||||
.SetURLParams(ParametersStructure)
|
||||
.ProcessRequest("GET", False)
|
||||
.ReturnRequest()
|
||||
.ResourceAddress;
|
||||
Reference in New Issue
Block a user