Manage Internet access parameters using Web API service
This parameter allows you to define settings to enable Artica to download resources from the Internet.
This parameter allows you to define settings to enable Artica to download resources from the Internet using Web API service.
Get Internet parameters
GET http://[server]:[port]/system/internet/access
Give a json output
{
Status: true
Info: "HTTP Client parameters"
UseProxy: false
Proxy: ""
ProxyUserName: ""
LocalInterface: ""
UserAgent: "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0"
}
- UseProxy: If using a proxy to access to Internet
- Proxy: the proxy adress:port
- ProxyUsername: if Proxy require “basic” authentication with an username
- LocalInterface: if the HTTP client must bind a specific local IP address to access to remote resource
- UserAgent: The User Agent string to use.
Change internet access settings.
POST http://[server]:[port]/system/internet/access
Post fields using these values
- UseProxy: 1/0 Use proxy of not
- Proxy: Proxy address and port ( 192.168.1.1:3128)
- ProxyUserName: If authentication is required, set the username
- ProxyPassword: Password to use for authentication
- LocalInterface: Local Ip address to bind ( use empty if no interface to bind )
- UserAgent: The user Agent string to use.
Example:
curl -X POST --data "UseProxy=1&Proxy=192.168.1.165:3128&ProxyUserName=dtouzeau&ProxyPassword=P@\$\$word1234&UserAgent=Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0" http://[server]:[port]/system/internet/access