getURLHeaderInfo (NotesDatabase - JavaScript)

Gets specific Hypertext Transfer Protocol (HTTP) header information from the Uniform Resource Locator (URL). A URL is a text string used for identifying and addressing a Web resource.

Defined in

Note: This method is obsolete.
NotesDatabase

Syntax

getURLHeaderInfo(url:string, header:string, webuser:string, webpasswd:string, proxyuser:string, proxypasswd:string) : string
Parameter Description
url The URL for the Web page you want information on, for example, http://www.acme.com/. Specify the entire URL starting with http. You can enter a maximum string length of 15K.
header Enter a header string of the URL header value you want returned. The acceptable header strings are documented in the HTTP specification (available at various locations on the Internet, such as http://www.w3.org/) and are subject to change based on updated versions of the specification.
webuser Some Internet servers require you to obtain a username before you can access their pages. This parameter allows you to enter the username that you previously obtained from the Internet server. Specify null if you don't need this parameter.
webpasswd Some Internet servers require you to obtain a password before you can access their pages. This parameter allows you to enter the password that you previously obtained from the Internet server. Specify null if you don't need this parameter.
proxyuser Some proxy servers require that you specify a username in order to connect through them. This parameter allows you to enter the username for the proxy server. See your administrator for the username required by the proxy. Specify null if you don't need this parameter.
proxypasswd Some proxy servers require that you specify a password in order to connect through them. This parameter allows you to enter the password for the proxy server. See your administrator for the password required by the proxy. Specify null if you don't need this parameter.
Return value Description
string The requested header, or null if the URL or the requested header value is not found. Any dashes are converted to underscores.