NAME pcopy - copy/paste across machines USAGE: curl [-T FILE] [-d DATA] [-u:PASS] https://nopaste.net[/FILENAME][?s=1][&m=rw|ro][&t=DURATION][&f=text|json] DESCRIPTION: This is is the curl-endpoint for pcopy, a tool to copy/paste across machines. You may use curl's -T option to PUT files, or -d option to POST data. If a FILENAME is passed, it will be used. If not, a random one will be picked. You may also pass the word "random" as a FILENAME to avoid curl's awkward file name logic when -T is used. To stream data without storing it on the server, you may pass the ?s=1 query parameter. The upload will then block until the download of the file begins. If this clipboard is password-protected, you must pass the password PASS using the -u option as -u:PASS. To avoid passing the password, you may use -ux and curl will ask for the password. Examples: curl -T hi.txt https://nopaste.net # Copy file hi.txt to https://nopaste.net/hi.txt (via PUT) curl -T hi.txt https://nopaste.net/random # Copy file hi.txt and pick a random file name (via PUT) curl -d "a thing" https://nopaste.net/thing.txt # Copy text "a thing" to "thing.txt" (via POST) curl -d howdy 'https://nopaste.net?t=30m' # Copy text "howdy" to a random file with a TTL of 30m cat go.log | curl -T- https://nopaste.net/go.log # Copy text from STDIN to "go.log" curl -u:mypass -d hi https://nopaste.net # Uses password "mypass" to copy text "hi" cat a.log | curl -T- "https://nopaste.net/cool?s=1" # Stream to "cool", blocks until download begins OPTIONS: Query params: ?s=1 stream data without storing on the server ?m=rw|ro defines whether to set the file mode as read-write or read-only (default: ro, allowed: ro) ?t=DURATION time-to-live after which the file will be deleted (default: 21d, nontext-max: 30d, text-max: 730d) ?f=text|json output format for PUT/POSTs (default: text) ?a=PASS password for the clipboard (if password-protected); alternative to -u :PASS (see below) Common curl options (see 'man curl' for more): -T FILE uploads file FILE to the server -d DATA uploads DATA to the server -u :PASS use password PASS for basic auth against server; alternative to ?a=PASS (see above) WEB UI: https://nopaste.net LIMITS: Total clipboard size limit: 2.0 GB Total number of files: max. 10000 files Per-file size limit: 2.0 MB Per-file expiration limits: 730d if text, 30d otherwise Allowed file modes: ro To find out more about pcopy, check out https://heckel.io/pcopy.