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

Feature: SSH style --proxycommand #4941

Closed
fasmide opened this issue Feb 17, 2020 · 2 comments · Fixed by sthagen/curl-curl#105
Closed

Feature: SSH style --proxycommand #4941

fasmide opened this issue Feb 17, 2020 · 2 comments · Fixed by sthagen/curl-curl#105

Comments

@fasmide
Copy link

fasmide commented Feb 17, 2020

I did this

man curl :)

I expected the following

I expected to find a -pc, --proxycommand which, ssh ProxyCommand style, would allow the user to make curl run a command and use its stdio to make requests and not do any network connection by itself.

That way, it would be really easy to use ssh as a means of transport to another network, e.g.

curl --proxycommand 'ssh pi@raspberrypi.local -W 10.1.1.75 80' \
       http://some/otherwise/unavailable/service.php

Today, bash scripts have to run, maintain and close an ssh session prior to running curl, which in my opinion is rather cumbersome

I do realize its often possible to turn the situation around, by SSH'ing to the remote host and, if available, run curl on the remote - while being a good workaround in a lot of cases there is always this one time where you have multiple -F parameters (so you cannot really use @- for POST input) or just don't want to expose auth details with the remote.

I'm just the average curl user and as such haven't read the documentation thoroughly - but I have a feeling the Opensocket and Closecosket options can be used to achieve this

@bagder
Copy link
Member

bagder commented Feb 18, 2020

Thanks, I think that's an excellent idea.

We use this tracker for bugs and issues only, we put ideas to work on in the future in the TODO document and we will close this feature-request when we do that.

@HACKClown
Copy link

HACKClown commented Mar 22, 2022

IPv4 vs IPv6 Proxy list

@curl curl locked as off-topic and limited conversation to collaborators Mar 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants