Http refresh header, Appendix g – Aastra Telecom SIP 57I User Manual

Page 802

Advertising
background image

How to Create an XML Application

G-64

41-001160-00, Release 2.1, Rev 04

IP Phone Administrator Guide

Appendix G

HTTP Refresh Header

You can use an HTTP refresh header with the XML screen objects on the IP
phones. This feature provides the following:

All current XML screen objects have the ability to be refreshed by adding a
Refresh and URL setting to the HTTP headers. (see Refresh setting format
below)

The Refresh setting is set by the XML application and it is up to the
application to decide which objects it wants to refresh.

The Refresh setting must be included in the HTTP header. The XML application
decides which objects it wants to use with this setting. The phone recognizes this
setting when parsing the HTTP header. If the setting is present, then it passes
along the refresh timeout and the URL to the ParserData object, which all XML
screen objects inherit from. The ParserData class also has a timer, which must be
set to expire at the next refresh time. When the timer expires (time to refresh the
screen), the phone requests the URL again and displays the refreshed screen.

Refresh Setting Format

The following is the Refresh setting format for the HTTP header:

Refresh: <timeout>; URL=<page to load>

The following example is a Refresh setting for use in an HTTP header:

Refresh: 3; URL=http://10.50.10.140/cgi-bin/update.xml

Note:

This HTTP refresh header feature only applies to objects that

display to the screen.

Note:

You must use the Refresh and URL parameters in order for this

feature to work in the HTTP header.

Advertising
This manual is related to the following products: