I'm using the Socket class to upload a file over FTP to a server. I have been trying to figure out how to implement SFTP and I haven't found any library or API anywhere. But as I was working on it I saw a SecureSocket class. Is this SFTP or FTPS / TLS or something else?
Update:
It looks like it's SSL and TLS:
The SecureSocket class enables code to make socket connections using
the Secure Sockets Layer (SSL) and Transport Layer Security (TLS)
protocols.
Can I just switch to using this? Is this what I've been looking for all of my life?
SecureSocket is a TLS-protected socket. It's not related to SFTP (which is a protocol used on top of SSH, not TLS). SecureSocket can be used for FTP/TLS if you write an FTP client in ActionScipt - then you can use that socket.
Related
i still got the Problem, that my Java Interpreter can't handle SSL Handshake from a FTPS Client Connection. So I want to try out another FTPS Class that cann store a File on a FTP Server.
Do you know any other Examples/Classes than the Commons.Net one ?
Thank you, Louis
This is my first set up of a webserver, so it's an experimental learning experience.
I had successfully got lighttpd using mod_fastcgi (https://redmine.lighttpd.net/projects/1/wiki/docs_modfastcgi) working to send a request to a separate process via a TCP socket. It sends the request using the FastCGI protocol.
But is there a module or way to send raw data to the TCP socket without the FastCGI protocol? Alternatively, if not lighttpd, is there another lightweight webserver that does allow sending basic requests to a TCP socket without any extra protocol wrapping around it?
I think you are looking for lighttpd mod_proxy.
https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModProxy
I have to edit an existing VB6 application that deals with Socket requests from client endpoints. What are tools (Classes/methods) that allow one to make an SSL Socket instead of a classic socket. I found out that there is a control called WinSock, but I don't know whether it is suitable for the server's tasks or not.
Any kind of help will be appreciated.
Thanks.
I have a mozila.jss ssl socket and I'm using it for RMI connection.
I'm trying to convert the RMI connection to RMI-over-http connection using apache server with tomcat.
For the RMI-over-http I'm using RMIHttpsToCGISocketFactory.
The question is how can I use the JSS authentication (FIPS compatible) over HTTP.
I would appreciate any input on this subject
Thanks
In the Java ME platform that I am using I have only SocketConnection class to connect to a distant server. For example I can create a connection to a server socket on the given ip using Connector.open("socket://"+ip+":"+port).
What I want is to implement an HttpConnection that will use http protocol, a url and port 80 as parameters. I imagine it will be something like Connector.open("http://www.google.com:80) to be able to send GET, POST, DELETE, PUT requests to the server afterwards.
Is there a way to get the ip via url address and then connect to this ip using http protocol? Or if it isn't supported by my platform, then I have to stick to using sockets? I know my question can seem a little abstract, so ask if you need any clarifications.
You have to stick to using sockets. If the Java ME platform that you are using have only SocketConnection, a call to Connector.open("http://www.google.com:80") will throw an exception.