hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Rana" <r...@solis.jp>
Subject RE: 0xfffd
Date Wed, 02 Jul 2003 01:34:59 GMT
Oleg, Laura Thanks a lot for your response.

Setting content-type worked.

Regards,
Amit.

> -----Original Message-----
> From: Kalnichevski, Oleg [mailto:oleg.kalnichevski@bearingpoint.com]
> Sent: Tuesday, July 01, 2003 8:47 PM
> To: Commons HttpClient Project
> Subject: RE: 0xfffd
> 
> Amit,
> Could you please post the complete wire log? It is not quite clear
what exactly
> you are doing or trying to do. And yes, you do have to ensure that the
content
> of the request body is properly encoded. You can either encode the
content
> yourself and set it with PostMethod#setRequestBody(InputStream) or
> PostMethod#setRequestBody(String), or let HttpClient do it for you by
using
> PostMethod#setRequestBody(NameValuePair[]) method. In the latter case
you
> would also need to set appropriate Content-Encoding header
> 'application/x-www-form-urlencoded; charset=whatever' with an
explicitly
> specified charset parameter.
> 
> Oleg
> 
> 
> 
> 
> -----Original Message-----
> From:	Amit Rana [mailto:rana@solis.jp]
> Sent:	Tue 7/1/2003 12:16
> To:	commons-httpclient-dev@jakarta.apache.org
> Cc:
> Subject:	0xfffd
> Hi,
> 
> 	I am trying to make a search on
> http://www2.ipdl.jpo.go.jp/beginner_tm/TM_AREA.cgi , the text box only
> accepts double byte values.
> 
> 	After sending an Http Post request using HttpClient, server
> responds by saying "no input was given". Following is what HttpClient
> sends for the variable:
> 2003/07/01 18:39:35:924 JST [DEBUG] wire - ->> "key01:
> [0xfffd][0xfffd][0xfffd]{
> [0xfffd][0xfffd][\r][\n]"
> 
> 1. What does this 0xfffd means? Why is server treating this as null?
> 2. Do I need to set some encoding type for data to be sent or is there
> anything extra I need to do to send double byte characters values for
> post variables?
> 
> Thanks in advance.
> 
> Regards,
> Amit.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-httpclient-dev-help@jakarta.apache.org
> 
> 
> 
> 



Mime
View raw message