• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to pass the encoding through the PostMethod of HttpClient

 
priby mathew
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings to all,

I am having component that sends data to another component using PostMethod of HttpClient . I want to send the type of encoding used in one component to the other component.
Is there any way to achieve this?

Any help appreciated.

Thanks in advance

priby
 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which HttpClient are you talking about? The Apache Commons Net one?
 
priby mathew
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the following packages in my code:

org.apache.commons.httpclient.HostConfiguration;
org.apache.commons.httpclient.HttpClient;
org.apache.commons.httpclient.NameValuePair;
org.apache.commons.httpclient.methods.PostMethod;
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic