Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Test connection using FTP  RSS feed

 
Sunil Aggarwal
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to test connection to a machine given its user name and password.
I tried using java's URL and URLConnection but is there any way by which I can just test connection to the machine without really having to specify the file name in the URL as I am not really interested in file name.

Thanks
 
Michael Patrick
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use sockets to do the job Sun's Socket Tutorial. FTP Commands, FTP RFC Standard the commands you are most concerned with are the USER and PASS commands.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!