Primo.Networking
1.1.8
dotnet add package Primo.Networking --version 1.1.8
NuGet\Install-Package Primo.Networking -Version 1.1.8
<PackageReference Include="Primo.Networking" Version="1.1.8" />
<PackageVersion Include="Primo.Networking" Version="1.1.8" />
<PackageReference Include="Primo.Networking" />
paket add Primo.Networking --version 1.1.8
#r "nuget: Primo.Networking, 1.1.8"
#:package Primo.Networking@1.1.8
#addin nuget:?package=Primo.Networking&version=1.1.8
#tool nuget:?package=Primo.Networking&version=1.1.8
About
Primo.Networking is a set of ready-to-use activities for Primo RPA Studio designed to automate sending HTTP requests. It addresses the need to interact with web services and APIs within automated processes. Key activities include: sending HTTP and SOAP requests, sending e-mail via SMTP. The package can be added to any Primo RPA Studio project via the built-in dependency manager.
How to Use
In Primo RPA Studio, create a project that will be executed by the Primo RPA Robot. Install this package via the ".Dependencies → Manage Dependencies" menu; the "Network-HTTP request" node will appear in the Elements tree.
The "HTTP request" element sends a request to the specified URL and returns the response content, status and headers. Basic authentication (login with a password or a secure password), OAuth1, OAuth2 and client certificate authentication are supported.
Proxy
By default the request goes through the proxy server from the system settings, as in the previous versions. To use another proxy server, fill in the "Proxy" group of the element:
- Address: [String] Proxy server address in host:port format, for example "proxy.company.com:3128"
- Login: [String] Login for a proxy server that requires authentication (optional)
- Password: [String] Proxy server password (optional)
- Secure password: [SecureString] Secure proxy server password (optional)
The login and the passwords are used only when the address is specified. To stop using the proxy server, clear the address. In pure code projects send a request through a proxy server as follows:
//url - URL: [String] Request URL
//proxyAddress - Address: [String] Proxy server address in host:port format
//proxyLogin - Login: [String] Proxy server login, null if not required
//proxyPassword - Password: [String] Proxy server password, null if not required
//timeOut - Time-out: [Int32] Time-out (ms)
//enableSsl - SSL verification: [Boolean] Enable SSL certificate verification
Primo.Networking.Model.RequestParameters pars = new Primo.Networking.Model.RequestParameters() { EndpointUrl = new System.Uri(url) };
Primo.Networking.Model.RestClient client = new Primo.Networking.Model.RestClient(pars);
client.SetProxy(proxyAddress, proxyLogin, proxyPassword);
Primo.Networking.Model.RestResponse response = client.ExecuteRequestAsync(Primo.Networking.Model.Method.GET, Primo.Networking.Model.AcceptHeaderType.ANY, timeOut, enableSsl, System.Threading.CancellationToken.None).Result;
//response.StatusCode - Status: [Int32] Server response status
//response.Response - Content: [String] Server response content
Key Features
- Element for working with HTTP-request
- Proxy server support: address in host:port format, optional login and password
- Supports .NET Framework 4.6.1+
Main Types
- Primo.Networking.Elements.WFHttpClient
- Primo.Networking.Elements.WFSOAPRequest
- Primo.Networking.Elements.WFSendSMTPAdvanced
Feedback
Bug reports and contributions are welcome at Primo RPA chat
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net is compatible. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.