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

13 lines
372 B
Plaintext
Raw Normal View History

2025-05-14 14:53:52 +03:00
 URL = "https://httpbin.org";
URL = URL + "/get";
ProxySettings = New InternetProxy;
2025-06-02 15:34:34 +03:00
ProxySettings.Set("https", "proxy.com", 443, "user", "password", False);
2025-05-14 14:53:52 +03:00
Result = OPI_HTTPRequests.NewRequest()
.Initialize()
.SetURL(URL)
.SetProxy(ProxySettings) // <---
.ProcessRequest("GET", False)
.ReturnConnection();