Re: Is it possible to send and email using HTTPCLIENT?

2004-10-20 Thread Roland Weber
Hello Tom, no it is not. Protocols for transferring EMail are SMTP or IMAP. HttpClient implements HTTP. Browsers do lots more than just HTTP, that's why most of them chose to implement mailing functionality as well. But HttpClient is intentionally focused on HTTP alone, which is tricky enough.

Re: Is it possible to send and email using HTTPCLIENT?

2004-10-20 Thread IndianAtTech
HttpClient is specific to Http/hhtps protocols. You can't send messages to email server using Http client. You need to have local SMTP mail server/SMTP mail server provided by your ISP configured to your java application for sending the messages to external server. This code example might help

File Uploading using HttpClient

2004-10-20 Thread IndianAtTech
Hi ALL, I would like to have a working example that helps me to understand the upload concept using HttpClient. I also wanted to know Pros and Cons of HttpClient against other API that supports Uploading file. Regards Sudhakar Koundinya

Re: File Uploading using HttpClient

2004-10-20 Thread Oleg Kalnichevski
Sudhakar, Here's a few sample apps that you may find useful: http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/examples/?only_with_tag=HTTPCLIENT_2_0_BRANCH I do not know of a good comparison of HttpClient vs. competition concentrating primarily on the file upload functionality.

can not turn off log under HttpClient

2004-10-20 Thread jrlecq
Hello, When I read trace in my catalina.out, I find this information many many time : 20 oct. 2004 10:21:27 org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO: Redirect requested but followRedirects is disabled I read carefully the HttpClient user guide about logging and

Re: can not turn off log under HttpClient

2004-10-20 Thread Ortwin Glück
If you use Log4J, put the following in your log4j.properties: log4j.rootLogger=ERROR, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%5p [%c] %m%n Alternatively you can use

RE: can not turn off log under HttpClient

2004-10-20 Thread jrlecq
I have nothing against log4J, but I can not add easyly a new packagge in my application (someone else has to decide it...). So I test with System properties. But the log message is traced again : 20 oct. 2004 10:55:17 org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO:

Re: can not turn off log under HttpClient

2004-10-20 Thread Ortwin Glück
[EMAIL PROTECTED] wrote: I have nothing against log4J, but I can not add easyly a new packagge in my application (someone else has to decide it...). So I test with System properties. But the log message is traced again : 20 oct. 2004 10:55:17 org.apache.commons.httpclient.HttpMethodBase

RE: can not turn off log under HttpClient

2004-10-20 Thread jrlecq
Ok it's working : I write this on the top of my main class and the boring trace disepear : static{ System.setProperty(org.apache.commons.logging.Log,org.apache.commons.lo gging.impl.SimpleLog);

Re: File Uploading using HttpClient

2004-10-20 Thread IndianAtTech
OK, Thanks for the Information. I have found FileUpload API from Jakarta commons project Why do we have 2 API for Uploading from Same project 1. MultipartFileUpload - (Jakarta-commons)HttpClient - Project 2. FileUpload - (Jakarta Commons) Instead of having 2 API from Same project, why we

Re: File Uploading using HttpClient

2004-10-20 Thread Ortwin Glück
IndianAtTech wrote: OK, Thanks for the Information. I have found FileUpload API from Jakarta commons project Why do we have 2 API for Uploading from Same project 1. MultipartFileUpload - (Jakarta-commons)HttpClient - Project This is a client side interface to upload to a server. 2. FileUpload

Re: File Uploading using HttpClient

2004-10-20 Thread Michael McGrady
Not sure what you are saying here, Gluck. Can you explain? I personally see these two implementations as competing applications. Michael McGrady Ortwin Glück wrote: IndianAtTech wrote: OK, Thanks for the Information. I have found FileUpload API from Jakarta commons project Why do we have 2

Re: File Uploading using HttpClient

2004-10-20 Thread Ortwin Glück
Michael McGrady wrote: Not sure what you are saying here, Gluck. Can you explain? I personally see these two implementations as competing applications. Michael McGrady Michael, (My first name is Ortwin btw) No they are not competing but they are complementary. You would use HttpClient to

Re: File Uploading using HttpClient

2004-10-20 Thread Oleg Kalnichevski
On Wed, 2004-10-20 at 11:50, Michael McGrady wrote: Not sure what you are saying here, Gluck. Can you explain? I personally see these two implementations as competing applications. Michael, These are complementary technologies. FileUpload implements the receiving/decoding logic, whereas

RE: Is it possible to send and email using HTTPCLIENT?

2004-10-20 Thread Gerdes, Tom
Thanks! -Original Message- From: Roland Weber [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 1:03 AM To: Commons HttpClient Project Subject: Re: Is it possible to send and email using HTTPCLIENT? Hello Tom, no it is not. Protocols for transferring EMail are SMTP or IMAP.

RE: Is it possible to send and email using HTTPCLIENT?

2004-10-20 Thread Gerdes, Tom
Thanks, for the example! Question though about it... In the main you use the send class. Is this supposed to be SendApp, or am I missing something about the code? -Original Message- From: IndianAtTech [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 1:11 AM To: Commons

Re: Is it possible to send and email using HTTPCLIENT?

2004-10-20 Thread Ortwin Glück
Gerdes, Tom wrote: Thanks, for the example! Question though about it... In the main you use the send class. Is this supposed to be SendApp, or am I missing something about the code? Tom, send is a static method of SendApp. For further questions about the Java language, please refer to your

Re: File Uploading using HttpClient

2004-10-20 Thread IndianAtTech
To Ortwin and Oleg, I understand what you are saying. Thanks for info Best Regards Sudhakar Chavali On Wed, 20 Oct 2004 12:00:32 +0200, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Wed, 2004-10-20 at 11:50, Michael McGrady wrote: Not sure what you are saying here, Gluck. Can you