Providing a favorites icon
Many web browsers automatically make a request for a favorites icon (favicon) when a user visits or bookmarks a web page. You can provide a favicon as a static response using a URIMAP definition.
About this task
Web browsers make requests for default favicons using the following
URL:
http://www.example.com/favicon.ico
where www.example.com is the host name
for the site. The HTTPS scheme can be used instead, if appropriate.
You can provide a favicon in these ways:- A default favicon that is returned for any host name used by your CICS® region
- A different default favicon for each host name used by your CICS region
If a web browser requests a favicon and you do not provide
one, CICS sends an error response to the browser:
- If you are using the CICS-supplied default analyzer DFHWBAAX, a 404 (Not Found) response is returned. No CICS message is issued in this situation.
- If you are using the sample analyzer DFHWBADX, or a similar analyzer
that can interpret only the URL format that was required before CICS TS Version 3, the analyzer might misinterpret the path
favicon.icoas an incorrectly specified converter program name. In this case, message DFHWB0723 is issued, and a 400 (Bad Request) response is returned to the browser. To avoid this situation, you can either modify the analyzer program to recognize the favicon request and provide a more suitable error response, or provide a favicon using a URIMAP definition. Both actions mean that the sample analyzer program is bypassed for these requests.
To provide a favicon for all or some of your host names, using a URIMAP definition, follow these steps: