hi,

   does anyone use HttpClient?

   i want to know how am i going to inform the servlet that i am
sending a "shift_jis" character set? because i tried to set it on the
"Content-type" header during sending of request. here is a sample code:

   HTTPConnection con = new HTTPConnection("http://carnelian:8080";);

   NVPair data = new NVPair[1];
   data[0] = new NVPair("name", "randie");

   NVPair[] pair = new NVPair[1];
   pair[0] = new NVPair("Content-type", "charset=shift_jis");

   HttpResponse rsp = con.Post("/statistic/LogIn", data, pair);

but my servlet would get the "data" value of NULL.

thanks a lot.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com

Reply via email to