You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2003/09/20 01:39:41 UTC
DO NOT REPLY [Bug 23284] New: -
problem with isIPv4address() for relative uri's
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23284>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23284
problem with isIPv4address() for relative uri's
Summary: problem with isIPv4address() for relative uri's
Product: Commons
Version: 2.0 Milestone 1
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: Minor
Priority: Other
Component: HttpClient
AssignedTo: commons-httpclient-dev@jakarta.apache.org
ReportedBy: garry@ascii-turf.net
the following block of code:
try {
URI uri = new URI("http://10.0.1.10:8830");
System.out.println("is IP="+uri. isIPv4address());
uri = new URI(uri, "/04-1.html");
System.out.println("is IP="+uri. isIPv4address());
} catch (URIException e) { ; }
returns the output:
is IP=true
is IP=false
so by being created from a relative uri URI objects don't have the right setting of isIPv4address().
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org