Problem Note 40538: Web addresses that contain a colon can cause the URL filename engine to fail with an error of "Hostname host not found"
When reading a website using the URL filename engine, SAS will parse the address for a colon to determine the host name and/or port specification for the server. If the address has a colon elsewhere (not between the host and port), SAS will parse the host improperly.
For example, the address of:
http://spreadsheets.google.com/ccc?key=0Apl4Rhfuebd9dFV4c2tHbXl6cEF1eWFFbHJPNHVMT1E&hl=en#gid=0
causes a redirection to the site:
http://www.google.com/url?q=http://spreadsheets.google.com/ccc?key%3D0Apl...MT1E%26hl%3Den%26pref%3D2&sa=p
and subsequently, the engine attempts to reach host:
www.google.com/url?q=http
which is the string found between "http://" and ":".
The error returned will be something similar to:
NOTE: Unable to connect to host www.google.com/url?q=http. Check validity of host name.
ERROR: Hostname www.google.com/url?q=http not found.
NOTE: The SAS System stopped processing this step because of errors.
Use of a Proxy server will normally correct this problem as the server will pass the hostname to the URL filename engine.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows XP 64-bit Edition | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft® Windows® for x64 | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 for x64 | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2008 for x64 | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows XP Professional | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Windows Vista | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Windows Vista for x64 | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
64-bit Enabled AIX | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
64-bit Enabled HP-UX | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
64-bit Enabled Solaris | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
HP-UX IPF | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Linux | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Linux for x64 | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
OpenVMS on HP Integrity | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
Solaris for x64 | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
When parsing a URL for the host and port, SAS scans the string for a colon to determine port value. If the URL has a colon in another part of the address, the URL filename engine will fail.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2010-09-02 15:26:01 |
Date Created: | 2010-08-06 13:51:15 |