Artifactspublic-v0

curl

master
ply4 git calls25 ms288 KiB3 cachedprotocol v2
93 lines3.2 KiBRaw

--quote

Send an arbitrary command to the remote FTP or SFTP server. Quote commands are sent BEFORE the transfer takes place (immediately after the initial PWD command in an FTP transfer, to be exact). To make commands take place after a successful transfer, prefix them with a dash '-'.

(FTP only) To make commands be sent after curl has changed the working directory, immediately before the file transfer command(s), prefix the command with a '+'.

You may specify any number of commands.

By default curl stops at first failure. To make curl continue even if the command fails, prefix the command with an asterisk (*). Otherwise, if the server returns failure for one of the commands, the entire operation is aborted.

You must send syntactically correct FTP commands as RFC 959 defines to FTP servers, or one of the commands listed below to SFTP servers.

SFTP is a binary protocol. Unlike for FTP, curl interprets SFTP quote commands itself before sending them to the server. Filenames must be provided within double quotes to embed spaces, backslashes, quotes or double quotes. Within double quotes the following escape sequences are available for that purpose: \, ", and '.

Following is the list of all supported SFTP quote commands:

atime date file

The atime command sets the last access time of the file named by the file operand. The date expression can be all sorts of date strings, see the curl_getdate(3) man page for date expression details. (Added in 7.73.0)

chgrp group file

The chgrp command sets the group ID of the file named by the file operand to the group ID specified by the group operand. The group operand is a decimal integer group ID.

chmod mode file

The chmod command modifies the file mode bits of the specified file. The mode operand is an octal integer mode number.

chown user file

The chown command sets the owner of the file named by the file operand to the user ID specified by the user operand. The user operand is a decimal integer user ID.

ln source_file target_file

The ln and symlink commands create a symbolic link at the target_file location pointing to the source_file location.

mkdir directory_name

The mkdir command creates the directory named by the directory_name operand.

mtime date file

The mtime command sets the last modification time of the file named by the file operand. The date expression can be all sorts of date strings, see the curl_getdate(3) man page for date expression details. (Added in 7.73.0)

pwd

The pwd command returns the absolute path name of the current working directory.

rename source target

The rename command renames the file or directory named by the source operand to the destination path named by the target operand.

rm file

The rm command removes the file specified by the file operand.

rmdir directory

The rmdir command removes the directory entry specified by the directory operand, provided it is empty.

See ln.

1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: quote
5Arg: <command>
6Short: Q
7Help: Send command(s) to server before transfer
8Protocols: FTP SFTP
9Category: ftp sftp
10Added: 5.3
11Multi: append
12See-also:
13 - request
14Example:
15 - --quote "DELE file" ftp://example.com/foo
16---
18# `--quote`
20Send an arbitrary command to the remote FTP or SFTP server. Quote commands are
21sent BEFORE the transfer takes place (immediately after the initial **PWD**
22command in an FTP transfer, to be exact). To make commands take place after a
23successful transfer, prefix them with a dash '-'.
25(FTP only) To make commands be sent after curl has changed the working
26directory, immediately before the file transfer command(s), prefix the command
27with a '+'.
29You may specify any number of commands.
31By default curl stops at first failure. To make curl continue even if the
32command fails, prefix the command with an asterisk (*). Otherwise, if the
33server returns failure for one of the commands, the entire operation is
34aborted.
36You must send syntactically correct FTP commands as RFC 959 defines to FTP
37servers, or one of the commands listed below to SFTP servers.
39SFTP is a binary protocol. Unlike for FTP, curl interprets SFTP quote commands
40itself before sending them to the server. Filenames must be provided within
41double quotes to embed spaces, backslashes, quotes or double quotes. Within
42double quotes the following escape sequences are available for that purpose:
43\\, \", and \'.
45Following is the list of all supported SFTP quote commands:
47## atime date file
48The atime command sets the last access time of the file named by the file
49operand. The date expression can be all sorts of date strings, see the
50*curl_getdate(3)* man page for date expression details. (Added in 7.73.0)
52## chgrp group file
53The chgrp command sets the group ID of the file named by the file operand to
54the group ID specified by the group operand. The group operand is a decimal
55integer group ID.
57## chmod mode file
58The chmod command modifies the file mode bits of the specified file. The
59mode operand is an octal integer mode number.
61## chown user file
62The chown command sets the owner of the file named by the file operand to the
63user ID specified by the user operand. The user operand is a decimal
64integer user ID.
66## ln source_file target_file
67The ln and symlink commands create a symbolic link at the target_file location
68pointing to the source_file location.
70## mkdir directory_name
71The mkdir command creates the directory named by the directory_name operand.
73## mtime date file
74The mtime command sets the last modification time of the file named by the
75file operand. The date expression can be all sorts of date strings, see the
76*curl_getdate(3)* man page for date expression details. (Added in 7.73.0)
78## pwd
79The pwd command returns the absolute path name of the current working directory.
81## rename source target
82The rename command renames the file or directory named by the source
83operand to the destination path named by the target operand.
85## rm file
86The rm command removes the file specified by the file operand.
88## rmdir directory
89The rmdir command removes the directory entry specified by the directory
90operand, provided it is empty.
92## symlink source_file target_file
93See ln.
Diagnostics4 git calls · 25 ms
CallStatusSizeTime025 ms
discover200152 B2 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
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 · hit3 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=3
git.response.bytes=293470
git.response.cache=HIT
git.response.duration_ms=3
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.4 KiB · hit20 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=20
git.response.bytes=1447
git.response.cache=HIT
git.response.duration_ms=20
git.fetch.wants=1ac2076b74ce752fbfd6e38eaa65460f18b6956a
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=1447
git.pkt.payload.max=1426
git.sideband.band1.bytes=1425
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
a5e1e6459c99d96e
Request
fe2d1a11…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format