Location2=11
- Last UpdatedFeb 14, 2023
- 1 minute read
If Location2 is 11, the required keyword is DEVICE=. Its value specifies a Web page; for example,
DEVICE=www.mycompany.com/thePage.html
By default, the interface uses HTTPS to load the Web page. If you want to use HTTP, specify PROT=HTTP. For example,
DEVICE=www.mycompany.com/thePage.html; PROT=HTTP;
For HTTPS, the interface connects to port 443 of the remote device. For HTTP, the interface connects to port 80. To tell the interface to connect to a particular port number, specify it using the PORT= keyword. For example,
DEVICE=www.mycompany.com/thePage.html; PROT=HTTP; PORT=2080;
If the Web page requires username and password authentication, you need to specify three additional keywords: USER= , AUTH= , and REPLY=.
The USER= keyword indicates the username for the Web page. The interface sends the corresponding password from the pitcpresp#.password file, where # is the service ID of the interface. Please see the topic: Principles of operation for PI Interface for TCP Response for the format of this file.
The AUTH= keyword indicates the authentication type. Valid values are:
|
AUTH value |
Authentication Type |
|---|---|
|
BASIC |
Basic |
|
NTLM |
NTLM |
Separate multiple authentication types with |. For example, to use both Basic and NTLM authentication:
DEVICE=www.mycompany.com/thePage.html; USER=theUser; AUTH=BASIC|NTLM;
If the characters are not found in the first 1024 characters of the Web page, the interface writes Bad Input.