Http refresh header, Appendix g – Aastra Telecom SIP 480I User Manual
Page 491
How to Create an XML Application
41-001129-00 Rev 09, Release 1.4.1
G-21
Creating an XML Application
Appendix G
HTTP Refresh Header
An HTTP refresh header feature can be used with the XML screen objects on the
IP phones. This feature includes 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:
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.