sbout HTTPClient

randie ursal <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
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, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.