master-server/deps/curl/docs/cmdline-opts/proxytunnel.md

25 lines
675 B
Markdown
Raw Normal View History

2024-05-15 15:20:32 -04:00
---
2023-12-11 20:30:44 -05:00
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
Long: proxytunnel
Short: p
2024-05-15 15:20:32 -04:00
Help: HTTP proxy tunnel (using CONNECT)
2023-12-11 20:30:44 -05:00
Category: proxy
Added: 7.3
Multi: boolean
2024-05-15 15:20:32 -04:00
See-also:
- proxy
Example:
- --proxytunnel -x http://proxy $URL
2023-12-11 20:30:44 -05:00
---
2024-05-15 15:20:32 -04:00
# `--proxytunnel`
2023-12-11 20:30:44 -05:00
When an HTTP proxy is used --proxy, this option makes curl tunnel the traffic
through the proxy. The tunnel approach is made with the HTTP proxy CONNECT
request and requires that the proxy allows direct connect to the remote port
number curl wants to tunnel through to.
To suppress proxy CONNECT response headers when curl is set to output headers
use --suppress-connect-headers.