aspose file tools*
The moose likes Other Open Source Projects and the fly likes How to pass the encoding through the PostMethod of HttpClient Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to pass the encoding through the PostMethod of HttpClient" Watch "How to pass the encoding through the PostMethod of HttpClient" New topic
Author

How to pass the encoding through the PostMethod of HttpClient

priby mathew
Greenhorn

Joined: Jan 28, 2008
Posts: 25
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

Joined: Oct 27, 2005
Posts: 19720
    
  20

Which HttpClient are you talking about? The Apache Commons Net one?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
priby mathew
Greenhorn

Joined: Jan 28, 2008
Posts: 25
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;
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to pass the encoding through the PostMethod of HttpClient