Get Header

From CometWiki

(Difference between revisions)
Jump to: navigation, search
m
m
Line 1: Line 1:
-
===When issued to LUN 0, the "Get Header" control gets the entire HTTP request header that was received from the browser.===
+
===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:
Syntax:

Revision as of 18:21, 6 November 2011

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" )

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