[ http://issues.apache.org/jira/browse/HTTPCLIENT-585?page=comments#action_12415599 ]
Roland Weber commented on HTTPCLIENT-585: ----------------------------------------- http://triton*.mojblog.co.yu/rss.aspx is not a valid URL. See RFC 1738 (http://www.ietf.org/rfc/rfc1738.txt), section 3.1, paragraph on the host part: > Fully qualified domain names take the form as described > in Section 3.5 of RFC 1034 [13] and Section 2.1 of RFC 1123 > [5]: a sequence of domain labels separated by ".", each domain > label starting and ending with an alphanumerical character and > possibly also containing "-" characters. The quoted RFC 1034, section 3.5 says: > The labels must follow the rules for ARPANET host names. They must > start with a letter, end with a letter or digit, and have as interior > characters only letters, digits, and hyphen. The asterisk * is clearly not allowed as part of the host name. cheers, Roland > invalid host wildcard specification (asterix in URL) > ---------------------------------------------------- > > Key: HTTPCLIENT-585 > URL: http://issues.apache.org/jira/browse/HTTPCLIENT-585 > Project: Jakarta HttpClient > Type: Bug > Components: HttpClient > Versions: 3.0 Final > Environment: jdk1.5.0_06 > Reporter: Borut BolĨina > > If URL contains asterix (*) a NullPointerException is thrown > * Nested Exception (Underlying Cause) --------------- > java.lang.NullPointerException > at > org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:720) > at > org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1 > 321) > at > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) > at > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) > when > httpMethod = new GetMethod(url); > logger.info("GetMethod("+url+")"); > int returnCode = client.executeMethod(httpMethod); <== this throws an > exception > INFO [09 Jun 2006 10:39] GetMethod(http://triton*.mojblog.co.yu/rss.aspx) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
