Ethernet Configuration and Control, cont'd - Extron Electronics

Ethernet Configuration and Control, cont'd - Extron Electronics Ethernet Configuration and Control, cont'd - Extron Electronics

27.08.2013 Views

PRELIMINARY Ethernet Configuration and Control, cont’d 4-26 Query strings A query string is the portion of a URL that appears after the question mark. The query string contains parameters or instructions for the Web server to execute. The basic format for a query string within a link is: Receptacle 1 where x is the SIS command to be executed. When a link is accessed on a Web page, the URL is passed to the Web server to tell it which Web page to return to the browser. The portion of the URL after the question mark is the query string, which contains the SIS command that the IPL T PC1 will remove and execute. Like SSI formatted commands, query strings can use any valid SIS command. The query string in the figure below turns off DHCP on the IP Link device. HTML Code for a Link Receptacle on Linked Text Example of a URL with a query string using an SIS command Closes link. *Enter with no spaces. Code example The following figure shows a practical use for both SSIs and query strings. In this example, the HTML source code contains three SSI commands. Example 1 HTML Example #1 The following lines demonstrate how to read status from the IPLink Product: IPLink Product Name: IPLink Product Description: IPLink Product Part Number: SSI commands Web page HTML source code document showing SSIs The SSI commands in the figure above request the product name, product description and product part number of an IP Link device.

The figure below shows the HTML code that results from the SSIs shown in the above example. Example 1 HTML Example #1 The following lines demonstrate how to read status from the IPLink Product: IPLink Product Name: IPL T PC1 IPLink Product Description: One Switched 110v AC Receptacle with Serial and IR communication IPLink Product Part Number: 60-544-10 Resulting HTML source code served by an IP Link Web server Notice, in the figure below, that the commands executed by the PC1 in response to SSI references have been replied to, and were implemented when the Web page was served to the browser. Browser view of previous HTML source code URL encoding URL (Universal Resource Locator) encoding is the method of using ASCII hexadecimal characters to display specific characters in a URL. It is used for several reasons. On some operating systems, certain characters are unsafe or not available, and others are reserved by the HTML or URL specification. URL encoding is used to insure compatibility and functionality with most Internet browsers. As a general rule, use the hexadecimal encoding method shown below when these characters appear in your URLs. The following types of characters do not require encoding in a URL: alphanumerics special characters reserved characters 0-9 a-z A-Z $ _ _ . + ! * ( ) , Characters that do not require encoding ; / ? : @ = & When used for their reserved purposes, these characters do not require encoding within a URL. IPL T PC1 Ethernet Configuration and Control 4-27 PRELIMINARY

PRELIMINARY<br />

<strong>Ethernet</strong> <strong>Configuration</strong> <strong>and</strong> <strong>Control</strong>, cont’d<br />

4-26<br />

Query strings<br />

A query string is the portion of a URL that appears after the question mark. The<br />

query string contains parameters or instructions for the Web server to execute. The<br />

basic format for a query string within a link is:<br />

Receptacle 1<br />

where x is the SIS comm<strong>and</strong> to be executed.<br />

When a link is accessed on a Web page, the URL is passed to the Web server to tell<br />

it which Web page to return to the browser. The portion of the URL after the<br />

question mark is the query string, which contains the SIS comm<strong>and</strong> that the<br />

IPL T PC1 will remove <strong>and</strong> execute.<br />

Like SSI formatted comm<strong>and</strong>s, query strings can use any valid SIS comm<strong>and</strong>.<br />

The query string in the figure below turns off DHCP on the IP Link device.<br />

<br />

HTML Code<br />

for a Link<br />

Receptacle on<br />

Linked Text<br />

Example of a URL with a query string using an SIS comm<strong>and</strong><br />

<br />

Closes<br />

link.<br />

*Enter with no spaces.<br />

Code example<br />

The following figure shows a practical use for both SSIs <strong>and</strong> query strings. In this<br />

example, the HTML source code contains three SSI comm<strong>and</strong>s.<br />

<br />

Example 1<br />

HTML Example #1<br />

<br />

The following lines demonstrate how to read status from the IPLink Product:<br />

IPLink Product Name: <br />

<br />

IPLink Product Description: <br />

<br />

IPLink Product Part Number: <br />

<br />

<br />

SSI<br />

comm<strong>and</strong>s<br />

Web page HTML source code document showing SSIs<br />

The SSI comm<strong>and</strong>s in the figure above request the product name, product<br />

description <strong>and</strong> product part number of an IP Link device.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!