Hello Xinjun,

> Could anyone provide me some link or idea on how to use HttpClient
> with attachment?

I have no idea what you mean. Attachments are something you put
in EMails. HttpClient is not an EMail client!?

In case you want to send files with your HTTP requests, have a look
at FileRequestEntity (file only) and MultiPartRequestEntity (HTML
form parameters with files). The latter can handle a FilePartSource.

http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/FileRequestEntity.html
http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/multipart/MultipartRequestEntity.html
http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/multipart/FilePartSource.html

hope that helps,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to