hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Büttner" <simon.buett...@googlemail.com>
Subject Re: Big Problem: Invalid uri - escaped absolute path not valid
Date Fri, 01 Sep 2006 09:51:20 GMT
Hi Oleg,
thanks for your suggestions.
Is there a solution to escape the url automatically?



On 9/1/06, Oleg Kalnichevski <olegk@apache.org> wrote:
>
> On Fri, 2006-09-01 at 10:39 +0200, Simon Büttner wrote:
> > there is no space in the url. i think httpclient has a problem with the
> :
> > after the id/38826/mmg_exvi-action Part.
> >
> > I tried the url with the standard java url.openstream and it works. but
> i
> > need to use the httpclient to have
> > cookie support so i have to get it figured out.
> >
>
> Simon,
>
> The url is not correctly escaped. Colon (:) is a reserved character and
> may not be used in URLs
>
> Oleg
>
> > On 9/1/06, Doug Lochart <dlochart@gmail.com> wrote:
> > >
> > > Could it be that the space needs to be protected (escaped) ?
> > >
> > > On 8/31/06, Simon Büttner <simon.buettner@googlemail.com> wrote:
> > > >
> > > > Hello ,
> > > > I got to parse a Site with a very strange url rewriting and i always
> get
> > > > the
> > > > following exception when trying to call it:
> > > > Exception in thread "main" java.lang.IllegalArgumentException:
> Invalid
> > > uri
> > > > '
> > > >
> > > >
> > >
> http://www.exporeal.net/id/38826/mmg_exvi-action:setModel/accid:15436334|language:de|page:detail/cubesig/e403769764220c2abd83120ae9f1ccbf
> > > > ':
> > > > escaped absolute path not valid
> > > >     at org.apache.commons.httpclient.HttpMethodBase.<init>(
> > > > HttpMethodBase.java:219)
> > > >     at org.apache.commons.httpclient.methods.GetMethod.<init>(
> > > > GetMethod.java
> > > > :88)
> > > >     at spider.exporeal.HttpConnector.writeWebsiteIntoFile(
> > > > HttpConnector.java
> > > > :35)
> > > >     at spider.exporeal.participants.ParticipantExtractor.main(
> > > > ParticipantExtractor.java:34)
> > > >
> > > >
> > > > I would be very happy for any suggestions
> > > >
> > > >
> > >
> > >
> > > --
> > > What profits a man if he gains the whole world yet loses his soul?
> > >
> > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message