Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel CRM Desktop for IBM Notes Administration Guide > Customizing Authentication > CRM Desktop SSO Objects You Can Customize > Header ObjectThe header object includes the HTTP headers of a request or response. It is read-only for a response and writable for a request. It includes the following functions:
Get Header Name FunctionThe get_header_name function gets the name of a header. It uses the following format:
For example, the following code gets the name of the first header: var header = req.get_headers().get_header_name(0); Get Header Value FunctionThe get_header_value function gets the value of a header. It uses the following format:
For example, the following code gets the value of the first header: var header_val = req.get_headers().get_header_value(0);. Add Header FunctionThe add_header function adds a new header. You can use it only for a request. You cannot use it for a reply. It uses the following format: For example, the following code adds the content type for the request: req.get_headers().add_header("Content-Type", "text/html"); For more information, see Request Object and Response Object. |
![]() ![]() |
Siebel CRM Desktop for IBM Notes Administration Guide | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |