Brecht,
When I use your URI all I get is an UnknownHostException (probably
because that host is within your LAN).
According to http://www.ietf.org/rfc/rfc2396.txt; underscores are
unreserved characters. It would help if you pasted the stack you are
getting along with the environments (os; java; httpclient) you are using.
Raymond
Ubuntu 6.06
Java 1.6.0-b105
HttpClient 3.0.1
java HttpClientTest http://vntsxbiklop1_test:8080/axis2/services/wsinterface
java.net.UnknownHostException: vntsxbiklop1_test
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:239)
at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket
(DefaultProtocolSocketFactory.java:79)
at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket
(DefaultProtocolSocketFactory.java:121)
at org.apache.commons.httpclient.HttpConnection.open(
HttpConnection.java:706)
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)
at HttpClientTest.invokeGet(HttpClientTest.java:48)
On 9/6/07, Brecht Yperman <[EMAIL PROTECTED]> wrote:
>
> Great, awaiting that one, then.
>
> Thanks,
> Brecht
>
> -----Original Message-----
> From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED]
> Sent: donderdag 6 september 2007 16:46
> To: HttpClient User Discussion
> Subject: RE: URL not parsed correctly
>
> On Thu, 2007-09-06 at 16:33 +0200, Brecht Yperman wrote:
> > And dashes - to my knowledge :-)
> >
> > Anyway: the problem is it tries to connect to port 80 instead of 8080.
> >
> > If underscores aren't allowed, I'd rather have an exception, instead
> of
> > wrongfully parsing. (to
> > http://vntsxbiklop1_test/axis2/services/wsinterface)
> >
>
> URI class in HttpClient 3.x is an utter freaking mess, none of us is
> willing to touch even with a barge pole. It got replaced with the
> standard java.net.URI in the 4.0 branch.
>
> Oleg
>
>
> > Thanks,
> > Brecht
> >
> > -----Original Message-----
> > From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED]
> > Sent: donderdag 6 september 2007 16:31
> > To: HttpClient User Discussion
> > Subject: Re: URL not parsed correctly
> >
> > On Thu, 2007-09-06 at 14:33 +0200, Brecht Yperman wrote:
> > > Hi,
> > >
> > > When using HttpClient (from SVN), the following URL isn't parsed
> > > correctly:
> > > http://vntsxbiklop1_test:8080/axis2/services/wsinterface
> > >
> > > This has got to have something to do with the underscore, but I
> can't
> > > figure out where (somewhere in org.apache.commons.httpclient.URI.
> > > parseUriReference, I guess).
> > >
> > > Is this a bug, or are underscore just not allowed in domain names?
> > >
> >
> > Brecht,
> >
> > To my knowledge only letters (A-Z) and numbers (0-9) are permitted in
> > DNS names.
> >
> > Oleg
> >
> > > Thanks,
> > > Brecht
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------------------------
Raymond Kroeker
thinkParity Solutions Inc.