FTPHTTPClient SocketFactory and connection encoding support#1
Closed
prakapenka wants to merge 1 commit intoapache:trunkfrom
prakapenka:FTPHTTPsf
Closed
FTPHTTPClient SocketFactory and connection encoding support#1prakapenka wants to merge 1 commit intoapache:trunkfrom prakapenka:FTPHTTPsf
prakapenka wants to merge 1 commit intoapache:trunkfrom
prakapenka:FTPHTTPsf
Conversation
Author
Author
|
UPD *Since FTPHTTPClient extends FTPClient we just can change new Scoket(...) to factory methods. |
Contributor
|
Fixed, thanks |
sebbASF
pushed a commit
that referenced
this pull request
Jun 19, 2020
MLSD List Engine made public.
GiacomoTortora
added a commit
to GiacomoTortora/commons-net
that referenced
this pull request
Oct 21, 2024
refactor of 2 main methods in examples/ftp/ServerToServerFTP.java and examples/Main.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi all.
I am writing ftp client to have support for https proxies. This also should be able to use SOCK and HTTP poxy (like we do connect to http proxy through transparent sock5 proxy). Also I want to have control over socket timeout for http proxy handshake. This can be achieved using customized SocketFactory (same approach was for FTPClient) to generate proxied sockets.
For example now we have for HTTPFTPclient only drect socket creation in connect mehtod. Using SocketFactory we can control sockets creation. So if out Socket factory will provide implementation like:
{ ...
private final Proxy connProxy;
}
where is proxy is sock5 proxy:
new Proxy( Proxy.Type.SOCKS, sock );
I hope we may have HTTPFTPClient supports in next releases.
Thank you.