Artifactspublic-v0

curl

master
ply4 git calls310 ms288 KiB2 cachedprotocol v2
61 lines2.1 KiBRaw

--proxy

Use the specified proxy.

The proxy string can be specified with a protocol:// prefix. No protocol specified or http:// it is treated as an HTTP proxy. Use socks4://, socks4a://, socks5:// or socks5h:// to request a specific SOCKS version to be used. (Added in 7.21.7)

Unix domain sockets are supported for socks proxy. Set localhost for the host part. e.g. socks5h://localhost/path/to/socket.sock

HTTPS proxy support works with the https:// protocol prefix for OpenSSL and GnuTLS (added in 7.52.0). It also works for mbedTLS, Rustls, Schannel and wolfSSL (added in 7.87.0).

Unrecognized and unsupported proxy protocol schemes cause an error.

If the port number is not specified in the proxy string, it is assumed to be 1080.

This option overrides existing environment variables that set the proxy to use. If there is an environment variable setting a proxy, you can set proxy to "" to override it.

All operations that are performed over an HTTP proxy are transparently converted to HTTP. It means that certain protocol specific operations might not be available. This is not the case if you can tunnel through the proxy, as one with the --proxytunnel option.

User and password that might be provided in the proxy string are URL decoded by curl. This allows you to pass in special characters such as @ by using %40 or pass in a colon with %3a.

The proxy host can be specified the same way as the proxy environment variables, including the protocol prefix (http://) and the embedded user + password.

When a proxy is used, the active FTP mode as set with --ftp-port, cannot be used.

Doing FTP over an HTTP proxy without --proxytunnel makes curl do HTTP with an FTP URL over the proxy. For such transfers, common FTP specific options do not work, including --ssl-reqd and --ftp-ssl-control.

1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: proxy
5Short: x
6Arg: <[protocol://]host[:port]>
7Help: Use this proxy
8Category: proxy
9Added: 4.0
10Multi: single
11See-also:
12 - socks5
13 - proxy-basic
14Example:
15 - --proxy http://proxy.example $URL
16---
18# `--proxy`
20Use the specified proxy.
22The proxy string can be specified with a `protocol://` prefix. No protocol
23specified or http:// it is treated as an HTTP proxy. Use `socks4://`,
24`socks4a://`, `socks5://` or `socks5h://` to request a specific SOCKS version
25to be used. (Added in 7.21.7)
27Unix domain sockets are supported for socks proxy. Set localhost for the host
28part. e.g. socks5h://localhost/path/to/socket.sock
30HTTPS proxy support works with the `https://` protocol prefix for OpenSSL and
31GnuTLS (added in 7.52.0). It also works for mbedTLS, Rustls, Schannel and
32wolfSSL (added in 7.87.0).
34Unrecognized and unsupported proxy protocol schemes cause an error.
36If the port number is not specified in the proxy string, it is assumed to be
371080.
39This option overrides existing environment variables that set the proxy to
40use. If there is an environment variable setting a proxy, you can set proxy to
41"" to override it.
43All operations that are performed over an HTTP proxy are transparently
44converted to HTTP. It means that certain protocol specific operations might
45not be available. This is not the case if you can tunnel through the proxy, as
46one with the --proxytunnel option.
48User and password that might be provided in the proxy string are URL decoded
49by curl. This allows you to pass in special characters such as @ by using %40
50or pass in a colon with %3a.
52The proxy host can be specified the same way as the proxy environment
53variables, including the protocol prefix (`http://`) and the embedded user +
54password.
56When a proxy is used, the active FTP mode as set with --ftp-port, cannot be
57used.
59Doing FTP over an HTTP proxy without --proxytunnel makes curl do HTTP with an
60FTP URL over the proxy. For such transfers, common FTP specific options do not
61work, including --ssl-reqd and --ftp-ssl-control.
Diagnostics4 git calls · 310 ms
CallStatusSizeTime0310 ms
discover200152 B3 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=2
git.response.bytes=152
git.server.agent=gitty/1.0
git.server.object_format=sha1
git.server.caps=agent ls-refs fetch object-format
git.server.fetch=shallow filter sideband-all
git.protocol.version=2
git.pkt.frames=8
git.pkt.data=6
git.pkt.flush=2
git.pkt.delim=0
git.pkt.bytes=152
git.pkt.payload.max=34
ls-refs200149 B · hit2 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=2
git.response.bytes=149
git.response.cache=HIT
git.response.duration_ms=2
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=149
git.pkt.payload.max=78
git.ls_refs.count=2
git.ls_refs.head=refs/heads/master
fetchblob:none · deepen 10200287 KiB · hit2 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=305
git.response.bytes=293470
git.response.cache=HIT
git.response.duration_ms=2
git.fetch.filter=blob:none
git.fetch.filter.requested=tree:0
git.fetch.filter.fallback=blob:none
git.fetch.filter.learned=false
git.fetch.wants=31c911efe5652725e930f4d2e60c9060e5f6646d
git.fetch.haves.count=0
git.fetch.deepen=10
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=10
git.pkt.data=8
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=293470
git.pkt.payload.max=65516
git.sideband.band1.bytes=293354
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=87
git.pack.bytes=293354
git.pack.ofs_delta=0
git.pack.ref_delta=1
git.pack.chain.max=1
git.pack.trailer=6a646bcda6740bab42e321b51998b52ea15146c0
git.pack.full=86
Open pack map
fetch2001.1 KiB305 ms
git.upload-pack fetch
http.response.status_code=200
git.response.bytes=1140
git.response.cache=MISS
git.response.duration_ms=305
git.fetch.wants=881f62d6a1a8e6465e7ba8cd256158afbcc5fcf9
git.fetch.haves.count=0
git.fetch.deepen=0
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=1140
git.pkt.payload.max=1119
git.sideband.band1.bytes=1118
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0

Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.

Remote
https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/curl.git
Ref
refs/heads/master
Commit
31c911efe5652725e930f4d2e60c9060e5f6646d
cf-ray
a5e2cadc78bc4b67
Request
7955cccb…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format