Oleg, Laura Thanks a lot for your response. Setting content-type worked.
Regards, Amit. > -----Original Message----- > From: Kalnichevski, Oleg [mailto:[EMAIL PROTECTED] > 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:[EMAIL PROTECTED] > Sent: Tue 7/1/2003 12:16 > To: [EMAIL PROTECTED] > 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: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
