getURLHeaderInfo (Database - Java)

Gets the 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.

Note: This method is obsolete in Release 6.

Defined in

Database

Syntax

public String getURLHeaderInfo(String url, String header, String webuser, String webpasswd, String proxyuser, String proxypasswd)
    throws NotesException

Parameters

String 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.

String 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

String. 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

String. 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

String. 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

String. 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

String

The requested header, or null if the URL or the requested header value is not found. Any dashes are converted to underscores.

Example