@@ -304,7 +304,7 @@ fetch --timeout 2.5 example.com
304304
305305### ` --redirects NUM `
306306
307- Maximum automatic redirects. Use ` 0 ` to disable.
307+ Maximum automatic redirects. Default: ` 10 ` . Use ` 0 ` to disable.
308308
309309``` sh
310310fetch --redirects 0 example.com # Don't follow redirects
@@ -563,20 +563,21 @@ fetch --from-curl 'https://example.com'
563563
564564** Supported curl flags:**
565565
566- | Category | Curl Flags |
567- | ---| ---|
568- | Request | ` -X ` , ` -H ` , ` -d ` , ` --data-raw ` , ` --data-binary ` , ` --data-urlencode ` , ` --json ` , ` -F ` , ` -T ` , ` -I ` , ` -G ` |
569- | Auth | ` -u ` , ` --aws-sigv4 ` , ` --oauth2-bearer ` |
570- | TLS | ` -k ` , ` --cacert ` , ` -E ` /` --cert ` , ` --key ` , ` --tlsv1.x ` |
571- | Output | ` -o ` , ` -O ` , ` -J ` |
572- | Network | ` -L ` , ` --max-redirs ` , ` -m ` /` --max-time ` , ` --connect-timeout ` , ` -x ` , ` --unix-socket ` , ` --doh-url ` , ` --retry ` , ` --retry-delay ` , ` -r ` |
573- | HTTP version | ` -0 ` , ` --http1.1 ` , ` --http2 ` , ` --http3 ` |
574- | Headers | ` -A ` , ` -e ` , ` -b ` |
575- | Verbosity | ` -v ` , ` -s ` |
576- | Protocol | ` --proto ` (restricts allowed protocols; errors if URL scheme is not allowed) |
577- | No-ops | ` --compressed ` , ` -S ` , ` -N ` , ` --no-keepalive ` , ` -# ` , ` --no-progress-meter ` , ` -n ` , ` -f ` , ` --fail-with-body ` , ` --proto-default ` , ` --proto-redir ` |
566+ | Category | Curl Flags |
567+ | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
568+ | Request | ` -X ` , ` -H ` , ` -d ` , ` --data-raw ` , ` --data-binary ` , ` --data-urlencode ` , ` --json ` , ` -F ` , ` -T ` , ` -I ` , ` -G ` |
569+ | Auth | ` -u ` , ` --aws-sigv4 ` , ` --oauth2-bearer ` |
570+ | TLS | ` -k ` , ` --cacert ` , ` -E ` /` --cert ` , ` --key ` , ` --tlsv1.x ` |
571+ | Output | ` -o ` , ` -O ` , ` -J ` |
572+ | Network | ` -L ` , ` --max-redirs ` , ` -m ` /` --max-time ` , ` --connect-timeout ` , ` -x ` , ` --unix-socket ` , ` --doh-url ` , ` --retry ` , ` --retry-delay ` , ` -r ` |
573+ | HTTP version | ` -0 ` , ` --http1.1 ` , ` --http2 ` , ` --http3 ` |
574+ | Headers | ` -A ` , ` -e ` , ` -b ` |
575+ | Verbosity | ` -v ` , ` -s ` |
576+ | Protocol | ` --proto ` (restricts allowed protocols; errors if URL scheme is not allowed) |
577+ | No-ops | ` --compressed ` , ` -S ` , ` -N ` , ` --no-keepalive ` , ` -# ` , ` --no-progress-meter ` , ` -n ` , ` -f ` , ` --fail-with-body ` , ` --proto-default ` , ` --proto-redir ` |
578578
579579** Notes:**
580+
580581- ` -b ` /` --cookie ` only supports inline cookie strings (e.g., ` -b 'name=value' ` ). Cookie jar files are not supported and will return an error.
581582- ` --data-urlencode ` supports ` @filename ` and ` name@filename ` forms for reading and URL-encoding file contents.
582583
0 commit comments