RE: FTPClient hangs when downloading large files

2011-02-16 Thread Steve Cole
Try it with some other FTP client software. If it doesn't work, then the problem isn't in your java class. -Original Message- From: Cysneros, Nelson A CIV SPAWARSYSCEN-PACIFIC, 56540 [mailto:nelson.cysne...@navy.mil] Sent: Tuesday, February 15, 2011 4:50 PM To: user@commons.apache.org

RE: [NET] FTPSClient: 502 authentication type cannot be set to TLS

2011-02-07 Thread Steve Cole
Try FTPSClient fc = new FTPSClient(true); -Original Message- From: Benzion [mailto:benzi...@yahoo.com] Sent: Sunday, February 06, 2011 3:06 AM To: user@commons.apache.org Subject: RE: [NET] FTPSClient: 502 authentication type cannot be set to TLS Hi, Here's a simple client I run with

RE: [NET] FTPSClient: 502 authentication type cannot be set to TLS

2011-02-04 Thread Steve Cole
Since you know TLS isn't supported, try setting auth type to SSL. -Original Message- From: Benzion [mailto:benzi...@yahoo.com] Sent: Friday, February 04, 2011 12:52 AM To: user@commons.apache.org Subject: [NET] FTPSClient: 502 authentication type cannot be set to TLS Hi, I try the

RE: [NET] FTPSClient: 502 authentication type cannot be set to TLS

2011-02-04 Thread Steve Cole
Try implicit. Need to set isImplicit to true in one of the constructors. If you've tried that too, then please explain everything you have tried. -Original Message- From: Benzion [mailto:benzi...@yahoo.com] Sent: Friday, February 04, 2011 8:48 AM To: user@commons.apache.org Subject: RE:

RE: [NET] NNTPClient with SSL

2010-06-29 Thread Steve Cole
I'm not sure if the SSL handshake process is the same with NNTPS as it is with FTPS, but you could look at FTPSClient and see how the SSL is implemented over the FTPClient. Maybe use that as an example for writing a NNTPSClient. -Original Message- From: Ken--

RE: Commons-net FTP and AIX 5.3 FTP Server

2010-04-23 Thread Steve Cole
{ ftp.logout(); ftp.disconnect(); if(fis != null) { fis.close(); } } } I double checked to see if the preferIPv4Stack was there on the execution properties, and I also tried passing java.net.preferIPv6Stack=false, but for no avail. Thanks 2010/4/23 Steve

RE: [Net] access denied (java.net.SocketPermission ftpperso.free.fr resolve)

2010-04-08 Thread Steve Cole
Haven't worked with applets in a long time, but when I did, you could not access files or resources outside the browser sandbox. That was a designed security feature to prevent malicious code from accessing files a computer. The only option was installing custom security policy. -Original

RE: how to implement login using httpclient?

2010-03-31 Thread Steve Cole
Here's some snippet code how we implemented HttpClient using the MultiThreadedHttpConnectionManager... import java.io.*; import java.util.*; import java.text.*; import java.security.Security; import org.apache.commons.httpclient.*; import org.apache.commons.httpclient.auth.*; import

Re: Connection Reset Error with Commons FTP

2009-12-23 Thread Steve Cole
What version of Commons Net are you using? Looks like an older one. Try a newer version, either 1.4.1 or 2.0. - Original Message - From: Sathish G sathish...@rediffmail.com To: user@commons.apache.org Sent: Wednesday, December 23, 2009 12:58 AM Subject: Connection Reset Error with

Re: commons FTP: copy a file within the remote server

2009-12-17 Thread Steve Cole
am getting 500 'SITE CP file1.dat dir2/file1.dat': command not understood. Steve Cole-6 wrote: Not sure how widely supported it is, but you could try using the site() method to execute a native OS command to copy the file. - Original Message - Hello All

Re: commons FTP: copy a file within the remote server

2009-12-16 Thread Steve Cole
Not sure how widely supported it is, but you could try using the site() method to execute a native OS command to copy the file. - Original Message - From: ter ter...@yahoo.de To: user@commons.apache.org Sent: Wednesday, December 16, 2009 12:23 PM Subject: commons FTP: copy a file within

Re: how FTPClient get file created time?

2009-10-29 Thread Steve Cole
Is the timestamp created in the raw listing? If so, parse it out of that. - Original Message - From: geek.shrek miss_cool_...@yahoo.com To: user@commons.apache.org Sent: Wednesday, October 28, 2009 5:35 PM Subject: how FTPClient get file created time? Hi, I'm using

Re: SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1.2

2009-10-21 Thread Steve Cole
Looks like you're trying to connect to a SSH service, not FTP. If you're trying to connect to a FTP service, verify the port you're using is correct. FTP is typically 21. If you're trying to connect to a SSH service which is typically on port 23, the apache coommons ftp client isn't going to work.

Re: FTP library.

2009-10-06 Thread Steve Cole
OutputStream output = new FileOutputStream(localFilename); ftpsClient.retrieveFile(remoteFilename, output); output.close(); - Original Message - From: Alan Grimes agri...@speakeasy.net To: Commons Users List user@commons.apache.org Sent: Tuesday, October 06, 2009 11:52 AM

Re: Trying to get List via FTPS results in a 550 code.

2009-10-05 Thread Steve Cole
in the correct folder and I get 550 when send the LIST command. in the EDT FTP Pro library it works. Steve Cole-6 wrote: A 550 is file not available, not found or not accessible. Are you able to get a directory list from USER_NAME's home directory using the other FTPS clients? Try

Re: Trying to get List via FTPS results in a 550 code.

2009-10-02 Thread Steve Cole
via a desktop FTP client and another java library called EDT FTP Pro. I just can't seem to get it to work with the commons-net library. Steve Cole-6 wrote: Verify USER_NAME has permission to get a list from the default directory. - Original Message - From: giladgaron giladga

Re: Trying to get List via FTPS results in a 550 code.

2009-10-02 Thread Steve Cole
the LIST command. in the EDT FTP Pro library it works. Steve Cole-6 wrote: A 550 is file not available, not found or not accessible. Are you able to get a directory list from USER_NAME's home directory using the other FTPS clients? Try changing the working directory, to one that's worked

Re: Trying to get List via FTPS results in a 550 code.

2009-10-01 Thread Steve Cole
Verify USER_NAME has permission to get a list from the default directory. - Original Message - From: giladgaron giladga...@gmail.com To: user@commons.apache.org Sent: Thursday, October 01, 2009 5:25 AM Subject: Trying to get List via FTPS results in a 550 code. Hello, I'm trying to

Re: FTPS Connect Help

2009-07-14 Thread Steve Cole
1. Are you sure you want to use SSL instead of TLS for the protocol? 2. Is it implicit or explicit? 3. Are you using the correct port? 990 is typical. Here's how my implementation connects... String protocol= TLS;// SSL/TLS FTPSClient ftpsClient = null; if (implicit){ ftpsClient =

Re: Two-way SSL with HttpClient

2009-07-02 Thread Steve Cole
/httpclient-3.x/sslguide.html http://svn.apache.org/viewvc/httpcomponents/oac.hc3x/trunk/src/contrib/org/apache/commons/httpclient/contrib/ssl/AuthSSLProtocolSocketFactory.java?view=markup Ta Meeraj http://hc.apache.org/httpclient-3.x/sslguide.html On Wed, Jul 1, 2009 at 2:30 PM, Steve Cole sc

Re: Two-way SSL with HttpClient

2009-07-01 Thread Steve Cole
Actually, there's a AuthSSLProtocolSocketFactory constructor that includes the Keystore URL and password. - Original Message - From: Steve Cole sc...@camsbycbs.com To: Commons Users List user@commons.apache.org Sent: Wednesday, July 01, 2009 9:28 AM Subject: Re: Two-way SSL

Re: {NET}Question about FTPSClient -Client Authentication

2009-06-12 Thread Steve Cole
If the server expects you to be the client, which is the likely case, you need to use client mode. Otherwise, the SSLSocket will not perform the negotiation correctly. In order for FTPSClient to successfully authenticate itself, you must set the FTPSClient KeyManager to a KeyManager initialized

Re: Question about FTPClient.sendCommand()

2009-06-02 Thread Steve Cole
The sendCommand method requires the command and args to be passed as two separate variables. I think the bigger issue is that simpling sending a PUT command along with the filenames is not going to send the file to the server. Check out the FTPClient.java source and look at the _storeFile method.

Re: Read time out issue

2009-05-26 Thread Steve Cole
Need to see the code. - Original Message - From: Siddharth Godbole siddharth@gmail.com To: user@commons.apache.org Sent: Monday, May 25, 2009 1:28 AM Subject: Read time out issue Hi, I am using commons net version of 1.4.1 for connection with a telnet server. I have set SO

Re: [commons-net] FTPClient setReceiveBufferSize() setSendBufferSize()

2009-04-22 Thread Steve Cole
Download the source, modify the SocketClient.connect() method and use the setReceiveBufferSize() and setSendBufferSize() methods and see if it gives you results you want. Have you tried using the FTPClient.setBufferSize() method, which sets the buffersize of the BufferedInputStream used for the

Re: IOExceptionjavax.net.ssl.SSLException: Unexpected end of handshake data

2009-04-20 Thread Steve Cole
Imagination is more important than knowledge. Take care, Cheers, Chetan From: Steve Cole sc...@camsbycbs.com To: Commons Users List user@commons.apache.org Sent: Friday, 17 April, 2009 20:45:15 Subject: Re

Re: IOExceptionjavax.net.ssl.SSLException: Unexpected end of handshake data

2009-04-17 Thread Steve Cole
Does the server require the client to use a certificate for authentication? If so, are you setting the FTPSClient KeyManager using a keystore that contains the correct signed certificate? - Original Message - From: Chetan chetanku...@yahoo.com To: user@commons.apache.org Sent: Thursday,

Re: org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication

2009-04-08 Thread Steve Cole
Try port 21. That or maybe the server is only configured for implicit ssl. - Original Message - From: Chetan chetanku...@yahoo.com To: user@commons.apache.org Sent: Tuesday, April 07, 2009 10:59 PM Subject: org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed

Re: how to use http proxy to connect a ftp

2009-03-25 Thread Steve Cole
This may be helpful...http://marc.info/?l=jakarta-commons-userm=107877944806547w=2 - Original Message - From: 王巍巍 ww.wang...@gmail.com To: user@commons.apache.org Sent: Tuesday, March 24, 2009 9:47 PM Subject: how to use http proxy to connect a ftp I used apache common net FTPClient

Re: [Commons NET]

2009-03-05 Thread Steve Cole
I think you need to call the FTPClient completePendingCommand() method. Here's the example from API documentation... For example, InputStream input; OutputStream output; input = new FileInputStream(foobaz.txt); output = ftp.storeFileStream(foobar.txt)

org.apache.commons.net.ftp.FTPSClient question

2009-02-03 Thread Steve Cole
How to do I set the keystore used for client and server certifcate authentication? Can I just set these System properties or do I need actually set the KeyManager and TrustManager in FTPSClient? System.setProperty(javax.net.ssl.trustStore,trustStore);