summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/proxytunnel.d
blob: ef2d56b2a71a042cee39b10812ef357595d56d13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
Long: proxytunnel
Short: p
Help: Operate through an HTTP proxy tunnel (using CONNECT)
See-also: proxy
Category: proxy
Example: --proxytunnel -x http://proxy $URL
Added: 7.3
Multi: boolean
---
When an HTTP proxy is used --proxy, this option will make curl tunnel 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.