Get Header

From CometWiki

Jump to: navigation, search

XAP Control: Get Header

When issued to LUN 0 in an XAP program, the "Get Header" control gets the entire HTTP request header that was received from the browser.

Syntax:

output$ = Control( 0, "Get Header" )

Return Value:

Entire HTTP request header from browser

Example Result:

GET /xap/xaptest HTTP/1.1
Host: localhost:8080
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: visits=101; loadtime=0.25
Personal tools