Share this page

# Example: web_save_header

In the following example, the request and response headers are saved to two parameters, "response header" and "request header". At each web_url call, the contents of the parameters are replaced.

    web_save_header(RESPONSE,"response header");
    web_save_header(REQUEST,"request header");
    web_url("John_Willoughby",
        "URL=http://Combe_Magna.com/portal/index.asp",
        "TargetFrame=_TOP",
        LAST );

    web_url("George_Wickham",
        "URL=http://Meryton.com/regiment/",
        "TargetFrame=_TOP",
        LAST );

After web_url "John_Willoughby" :
Action.c(9): Notify: Saving Parameter "request header = GET /portal/index.asp HTTP/1.1\r\nAccept: */*\r\nUser–Agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows NT)\r\nConnection: Keep–Alive\r\nHost: Combe_Magna.com\r\n\r\n"
Action.c(9): Notify: Saving Parameter "response header = HTTP/1.1 200 OK\r\nServer: Microsoft–IIS/4.0\r\nDate: Sun, 10 Aug 2003 13:38:28 GMT\r\nContent–Type: text/html\r\nSet–Cookie: ASPSESSIONIDQQGGGHHK=IGDLGLJALBHDNEDBBNIOHNOG; path=/\r\nCache–control: private\r\nTransfer–Encoding: chunked\r\n\r\n"
After web_url "George_Wickham":
Action.c(17): Notify: Saving Parameter "request header = GET /regiment/ HTTP/1.1\r\nReferer: http://Combe_Magna.com/portal/index.asp\r\nAccept: */*\r\nUser–Agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows NT)\r\nConnection: Keep–Alive\r\nHost: Meryton.com\r\n\r\n"
Action.c(17): Notify: Saving Parameter "response header = HTTP/1.1 200 OK\r\nServer: Microsoft–IIS/5.0\r\nDate: Sun, 10 Aug 2003 13:43:18 GMT\r\nCache–Control: private\r\nContent–Type: text/html; charset=utf–8\r\nContent–Length: 11346\r\n\r\n"

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: