hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: query as byte array
Date Wed, 01 Mar 2006 12:18:10 GMT
On Wed, 2006-03-01 at 17:42 +0530, Chaitanya Ravi wrote:
> Even the post doesn't work. Its the same way.
> 

What specifically does not work?


> The only way to help sending unicode characters is to send it as
> bytearray.Am not finding any method to do it :(
> 
> Can the developers add something like methodBase.setQueryStrin(byte[]) ?
> 

What for? Just URL encode query strings that contain non ASCII
characters if you insist on sending the request body in the query
string. 


> Meanwhile can someone suggest workaround ?
> 

What you are trying to do makes no sense. Just use POST.

Oleg

> 
> 
> On 3/1/06, Oleg Kalnichevski <olegk@apache.org> wrote:
> >
> > On Wed, 2006-03-01 at 15:11 +0530, Chaitanya Ravi wrote:
> > > Hi
> > >
> > > I wan tot send the query as the byte array since my query string
> > includes
> > > unicode characters. How can i do this ?
> > >
> > > GetMethod method = new GetMethod("/Sponsor");
> > > method.setQueryString(" I send xml string here");
> > >
> > > But if i have unicode characters in the xmlstring, they don't get sent
> > > properly. So, i want to convert the xml string into byte array and send
> > it
> > > to my server.
> > >
> > > Please help
> >
> > Why not just use POST?
> >
> > Oleg
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message