PRODUCT






Home









Free Download








Installation Instructions





FAQ





FAQ








Ask A Question





LEARN SCRIPTING





Overview








Lesson 1








2


3


4


5








Exam





SAMPLE SCRIPTS





Computer








Internet








Administrators








Developers








Data








Miscellaneous





HELP / DOCUMENTATION





Commands








Automated Internet








Automated Editors








Sample Scripts








Precompiled Functions








System Features






  Help Page - isheadret

( Some help pages may not display correctly in html because those help pages may have sample code
in them, part of which may be mis-interpreted as html tags.

All help pages, including this help page, are available in biterScripting with the help command. )




Command isheadret Purpose Retrieves (gets) headers for the immediately preceeding response from an internet server. Aliases isheaderretrieve, isheadret, ishretrieve, ishret, ishr Syntax isheadret <name> Options None. Arguments <name> This is the name of the internet session, also called session. A session by this name must have already started with the isstart command and connected to a server with the iscon command. This argument can be supplied using a constant, variable, expression, function call, inline command, or a combination of these, all resulting into a single value of type string. If a constant is used, it should be enclosed in double quotes. Stream Input Ignored. Stream Output The retrieved headers are written here. Stream Error Any errors are listed here. Description This command retrieves or gets the headers associated with the immediately preceeding response from an internet server. The session must have already been started with the isstart command, and connected to a server with the iscon command. The retrieved headers are written to stream output. If the immediately preceeding response from the server has no header information, output will be blank. Similarly if the previous request to the server failed, output will be blank. This command can be used to retrieve cookies, among other information, from the server. A server returns cookies in the headers in the following format. Set-Cookie: name=value These cookies can be extracted using various edit commands, and can be sent back to server using the isheadsub command. A sample script, SS_ISCookies, is also available to exchange cookies with a server. Restrictions Valid Examples isstart "mail" iscon "mail" "http://mail.yourfavoritesite.com" isheadret "mail" Will retrieve the headers associated with the default document serverd by the internet server at "http://mail.yourfavoritesite.com". isstart "mail" iscon "mail" "http://mail.yourfavoritesite.com" var str header isheadret "mail" > $header Will write the header information into variable $header. Let's assume that this header contains "Content-Type: text/html;charset=utf-8". We can now extract that information as follows. stex -r -c "^Content-Type\:&(\n\;)^" $header Invalid Examples isstart "accesslog" isheadret "accesslog" Will produce an error. Session "accesslog" is not connected to a server. See Also edit stex IS isheadsub isstart isend iscon isdiscon isret issub issave SS_ISCookies

2008-2013, biterScripting.com. All rights reserved.
biterScripting, biterScript, biterBrowser, biterMobile, biterScripting.com, FVA (Forward Variable Assignment) are trademarks of biterScripting.com. Is it biterScripting-compatible ? is a service mark of biterScripting.com. Explorer, Unix, Windows are trademarks, service marks or other forms of intellectual property of their respective owners.