Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

bagder
Copy link
Member

@bagder bagder commented May 22, 2017

... 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

@mention-bot
Copy link

@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.

@bagder
Copy link
Member Author

bagder commented May 22, 2017

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
@bagder bagder force-pushed the bagder/non-http-no-http-proxy branch from 7906896 to 8e34b02 Compare May 22, 2017 22:21
@bagder bagder added connecting & proxies HTTP feature-window A merge of this requires an open feature window labels May 23, 2017
@bagder
Copy link
Member Author

bagder commented May 23, 2017

Due to the slight change in behavior, I figured I'll wait with merging this until the next feature-window opens.

Copy link
Contributor

@mkauf mkauf left a 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 */
Copy link
Contributor

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" ?

Copy link
Member Author

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.

Copy link
Member

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

Copy link
Member

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

Copy link
Member Author

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!

@bagder bagder closed this in efc83d6 Jun 15, 2017
@bagder bagder deleted the bagder/non-http-no-http-proxy branch June 15, 2017 11:47
@lock lock bot locked as resolved and limited conversation to collaborators May 13, 2018
@bagder bagder removed the feature-window A merge of this requires an open feature window label Sep 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

4 participants