Glad that it worked. I tested the 1.0 branch, and when the URL is properly escaped (with "%20"), I had no problem getting the content of that URL you mentioned. The reason clients are more lenient towards forms (for POST) or queries (for GETs) is they are often generated from a real end-user input (for example, someone typing sentences in a text field and submitting them). In this case, the client should properly escape all unsafe characters for the users.
However, the path portion of the URL is often directly typed in or referred to by other pages, and it is not unreasonable to expect the user to escape it before using it. Thanks, Sangjin On Sun, Jun 15, 2008 at 5:48 AM, yoav.moblica <[EMAIL PROTECTED]> wrote: > > Well, the problem just disappeared. Probably was a problem on our side. > > BTW, we are using v1.0 and not the trunk (because we wish to wait until > Mina2 becomes stable) > > Thanks for the help > > > Sangjin Lee wrote: > > > > Yoav, > > > > Are you using the trunk version of the asyncweb client or the 1.0 branch? > > > > Sangjin > > > > On Thu, Jun 12, 2008 at 6:32 AM, yoav.moblica <[EMAIL PROTECTED]> wrote: > > > >> > >> What is the form part in contrast to the URL part? > >> > >> A URL I had issues with is, for example: > >> http://thesuperficial.com//bfm_gallery/2008/06/0610 Kim Kardashian > >> France/post_image/post_image-0610_kim_kardashian_france_00.jpg > >> > >> We tried to replace the space characters with %20 but got a 404 error > >> > >> Thanks > >> > >> > >> > >> Sangjin Lee wrote: > >> > > >> > Where was the space in your case? Was it in the path portion of the > >> URL > >> > or > >> > in the form? AFAIK, if the space is in the path portion AHC does > *not* > >> > encode it. If it is in the query string or in the form, AHC converts > >> it > >> > into "+". So I'm not sure why you're seeing underscores. Could you > >> send > >> > us > >> > the exact URL you're testing with? > >> > > >> > Thanks, > >> > Sangjin > >> > > >> > > >> > On Wed, Jun 11, 2008 at 6:51 AM, Viktor Balázs > >> <[EMAIL PROTECTED]> > >> > wrote: > >> > > >> >> Hi! > >> >> > >> >> Try to replace spaces to %20... > >> >> > >> >> 2008/6/11 Yoav Artzi <[EMAIL PROTECTED]>: > >> >> > When I request a URL containing spaces in AHC (AsyncHttpClient) it > >> >> seems > >> >> > like AHC replaces the space characters with underscores. Then, when > >> >> doing > >> >> > the actual request, AHC gets a 404 error. Any way I can change this > >> >> behavior > >> >> > and instruct AHC to send th eURL as is? > >> >> > > >> >> > Thanks > >> >> > > >> >> > >> >> > >> >> > >> >> -- > >> >> Balázs Viktor > >> >> Amkai Kft. (1188 Budapest, Szövet u. 9.) > >> >> > >> >> Email: [EMAIL PROTECTED] > >> >> Jabber: [EMAIL PROTECTED] > >> >> MSN: [EMAIL PROTECTED] > >> >> Telefon: +36-30/6755532 > >> >> > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/AsyncHttpClient-and-spaces-in-URLs-tp17777877p17800048.html > >> Sent from the Apache MINA User Forum mailing list archive at Nabble.com. > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/AsyncHttpClient-and-spaces-in-URLs-tp17777877p17849650.html > Sent from the Apache MINA User Forum mailing list archive at Nabble.com. > >
