xref: /aosp_15_r20/external/curl/docs/cmdline-opts/proxytunnel.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: proxytunnel
5*6236dae4SAndroid Build Coastguard WorkerShort: p
6*6236dae4SAndroid Build Coastguard WorkerHelp: HTTP proxy tunnel (using CONNECT)
7*6236dae4SAndroid Build Coastguard WorkerCategory: proxy
8*6236dae4SAndroid Build Coastguard WorkerAdded: 7.3
9*6236dae4SAndroid Build Coastguard WorkerMulti: boolean
10*6236dae4SAndroid Build Coastguard WorkerSee-also:
11*6236dae4SAndroid Build Coastguard Worker  - proxy
12*6236dae4SAndroid Build Coastguard WorkerExample:
13*6236dae4SAndroid Build Coastguard Worker  - --proxytunnel -x http://proxy $URL
14*6236dae4SAndroid Build Coastguard Worker---
15*6236dae4SAndroid Build Coastguard Worker
16*6236dae4SAndroid Build Coastguard Worker# `--proxytunnel`
17*6236dae4SAndroid Build Coastguard Worker
18*6236dae4SAndroid Build Coastguard WorkerWhen an HTTP proxy is used --proxy, this option makes curl tunnel the traffic
19*6236dae4SAndroid Build Coastguard Workerthrough the proxy. The tunnel approach is made with the HTTP proxy CONNECT
20*6236dae4SAndroid Build Coastguard Workerrequest and requires that the proxy allows direct connect to the remote port
21*6236dae4SAndroid Build Coastguard Workernumber curl wants to tunnel through to.
22*6236dae4SAndroid Build Coastguard Worker
23*6236dae4SAndroid Build Coastguard WorkerTo suppress proxy CONNECT response headers when curl is set to output headers
24*6236dae4SAndroid Build Coastguard Workeruse --suppress-connect-headers.
25