The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Tim Moores wrote:This seems like the same problem we talked about at https://coderanch.com/t/556511/java/java/check-whether-file-exits-server, isn't it? So the question is still the same: For commonly used file transfer protocols like FTP, HTTP, WebDAV and CIFS it's easy to find Java servers. If, OTOH, .
what protocol does the server understand?
you're set on implementing your own protocol then you need to write both client and server code for that
The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
naved momin wrote:
Tim Moores wrote:This seems like the same problem we talked about at https://coderanch.com/t/556511/java/java/check-whether-file-exits-server, isn't it? So the question is still the same: For commonly used file transfer protocols like FTP, HTTP, WebDAV and CIFS it's easy to find Java servers. If, OTOH, .
this is not the same like earlier there i just need to check but here i need to download that file too
naved momin wrote:
Tim Moores wrote:what protocol does the server understand?
i guess windows pc can transfer file using both ftp & http (ya you are right server running on windows machine)
Henry Wong wrote:
naved momin wrote:
Tim Moores wrote:what protocol does the server understand?
i guess windows pc can transfer file using both ftp & http (ya you are right server running on windows machine)
Don't guess. Check it. By default, Windows don't do expose file transfer, unless it is configured. And in some cases, you need to install a third party service.
Keep in mind, we are talking about the server here. Just because you can run a client that supports ftp and http, doesn't mean that there is a service that will support that protocol when another client tries to connect.
Henry
The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Tim Moores wrote:I'm not quite sure what you mean by "can we make a ftp protocol in java" - protocols are independent of particular languages. Both FTP client and server implementations are available for Java. Check out Apache Commons Net for the client side, and the Apache Mina FTP server.
The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Spoor wrote:Use an FTP library instead. Apache Commons Net has an FTP client, and I personally use JvFTP whenever I need to access an FTP server from Java.
The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
No holds barred. And no bars holed. Except this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|