
Copyright © 2009, 2010 Black Box Network Services
724-746-5500 | blackbox.com 37
XML API version 1
Compatibility
Introduced in 8.0.
4.2.3 HTTP GET Request
Function
Allow HTML pages being played in iCOMPEL to access resources that might otherwise be unavailable due to cross-domain
security policies in HTML Player.
Enables building complex mash ups for digital signage where content may need to be fetched from different sources while
ensuring the security of the signage system.
This API uses XML Services proxy, if configured.
Syntax
Example XML:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<http_request href="http://www.onelan.co.uk" method="get"
username="fakeuser"
password="fakepassword">
<header name="accept-language" value="en-GB" />
</http_request>
The header names are case-insensitive.
You may set the following HTTP headers to be forwarded to the remote server
acceptable language for response
an HTTP cookie sent by server in a
previous call
application type requesting the URI
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8)
Gecko/20051111 Firefox/1.5
Return Status
The Return Status will be the same as if the user had accessed the resource through a browser.
Applications may check for 'Content-type' to determine the returned resource.
Compatibility
Introduced in 8.0.
Kommentare zu diesen Handbüchern