-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http-proxy: only attempt FTP over HTTP proxy #1505
Conversation
@bagder, thanks for your PR! By analyzing the history of the files in this pull request, we identified @captain-caveman2k, @yangtse and @yirkha to be potential reviewers. |
all other non-HTTP schemes |
... all other non-HTTP protocol schemes are now defaulting to "tunnel trough" mode if a HTTP proxy is specified. In reality there are no HTTP proxies out there that allow those other schemes. Assisted-by: Ray Satiro, Michael Kaufmann
7906896
to
8e34b02
Compare
Due to the slight change in behavior, I figured I'll wait with merging this until the next feature-window opens. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this really simplifies the proxy code :-)
@@ -855,6 +855,7 @@ struct Curl_handler { | |||
#define PROTOPT_STREAM (1<<9) /* a protocol with individual logical streams */ | |||
#define PROTOPT_URLOPTIONS (1<<10) /* allow options part in the userinfo field | |||
of the URL */ | |||
#define PROTOPT_HTTP_PROXY (1<<11) /* allow over a HTTP proxy */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should explain that this flag is not intended for HTTP itself, and that the only difference is whether tunneling will be enabled automatically.
Maybe "HTTP proxies may know this protocol and act as a gateway" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that's a good point. I'll add something in that style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why don't we just put it directly in the flag, PROTOPT_ALLOW_HTTP_PROXY or something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PROTOPT_PROXY_AS_HTTP is another one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the latter suggestion more. PROTOPT_PROXY_AS_HTTP
it shall be, thanks!
... all other protocol schemes are now defaulting to "tunnel trough"
mode if a HTTP proxy is specified. In reality there are no HTTP proxies
out there that allow those other schemes.
ping @jay and @mkauf
Assisted-by: Ray Satiro, Michael Kaufmann