diff --git a/.github/scripts/codespell-ignore.words b/.github/scripts/codespell-ignore.words
index fa8a432b95..1a5e106400 100644
--- a/.github/scripts/codespell-ignore.words
+++ b/.github/scripts/codespell-ignore.words
@@ -7,7 +7,7 @@ bu
clen
CNA
hel
-htpt
+htpts
inout
PASE
passwor
diff --git a/.github/scripts/typos.toml b/.github/scripts/typos.toml
index ec6b9bb050..2b12004f48 100644
--- a/.github/scripts/typos.toml
+++ b/.github/scripts/typos.toml
@@ -6,7 +6,7 @@
extend-ignore-identifiers-re = [
"^(ba|fo|pn|PN|UE)$",
"^(CNA|ser)$",
- "^(ECT0|ECT1|HELO|htpt|PASE)$",
+ "^(ECT0|ECT1|HELO|htpts|PASE)$",
"^[A-Za-z0-9_-]*(EDE|GOST)[A-Z0-9_-]*$", # ciphers
"^0x[0-9a-fA-F]+FUL$", # unsigned long hex literals ending with 'F'
"^(eyeballers|HELO_smtp|Januar|optin|passin|perfec|SMTP_HELO)$",
diff --git a/docs/FAQ b/docs/FAQ
index b8a3947459..230b850bac 100644
--- a/docs/FAQ
+++ b/docs/FAQ
@@ -533,7 +533,7 @@ FAQ
that informs the client about this is only interpreted if you are using the
-L/--location option. As in:
- curl -L http://example.com
+ curl -L https://example.com
Not all redirects are HTTP ones, see 4.14
@@ -719,13 +719,13 @@ FAQ
Set a custom Host: header that identifies the server name you want to reach
but use the target IP address in the URL:
- curl --header "Host: www.example.com" http://127.0.0.1/
+ curl --header "Host: www.example.com" https://somewhere.example/
You can also opt to add faked hostname entries to curl with the --resolve
option. That has the added benefit that things like redirects will also work
properly. The above operation would instead be done as:
- curl --resolve www.example.com:80:127.0.0.1 http://www.example.com/
+ curl --resolve www.example.com:80:127.0.0.1 https://www.example.com/
3.20 How to SFTP from my user's home directory?
@@ -753,8 +753,8 @@ FAQ
be disabled or not supported.
Note that this error will also occur if you pass a wrongly spelled protocol
- part as in "htpt://example.com" or as in the less evident case if you prefix
- the protocol part with a space as in " http://example.com/".
+ part as in "htpts://example.com" or as in the less evident case if you
+ prefix the protocol part with a space as in " https://example.com/".
3.22 curl -X gives me HTTP problems
@@ -762,7 +762,7 @@ FAQ
By default you use curl without explicitly saying which request method to
use when the URL identifies an HTTP transfer. If you just pass in a URL like
- "curl http://example.com" it will use GET. If you use -d or -F curl will use
+ "curl https://example.com" it will use GET. If you use -d or -F curl will use
POST, -I will cause a HEAD and -T will make it a PUT.
If for whatever reason you are not happy with these default choices that curl
@@ -796,7 +796,7 @@ FAQ
An example that would invoke a remote CGI that uses &-symbols could be:
- curl 'http://www.example.com/cgi-bin/query?text=yes&q=curl'
+ curl 'https://www.example.com/cgi-bin/query?text=yes&q=curl'
In Windows, the standard DOS shell treats the percent sign specially and you
need to use TWO percent signs for each single one you want to use in the
@@ -865,7 +865,7 @@ FAQ
If you get this return code and an HTML output similar to this:
Moved Permanently
The document has moved here.
+ HREF="https://same_url_now_with_a_trailing_slash.example/">here.
it might be because you requested a directory URL but without the trailing
slash. Try the same operation again _with_ the trailing URL, or use the
diff --git a/docs/MANUAL.md b/docs/MANUAL.md
index 9ff5c097c7..1acb4d2244 100644
--- a/docs/MANUAL.md
+++ b/docs/MANUAL.md
@@ -34,7 +34,7 @@ Get the definition of curl from a dictionary:
Fetch two documents at once:
- curl ftp://ftp.example.com/ http://www.example.com:8000/
+ curl ftp://ftp.example.com/ https://www.example.com:8000/
Get a file off an FTPS server:
@@ -71,12 +71,12 @@ Get a file from an SMB server:
Get a webpage and store in a local file with a specific name:
- curl -o thatpage.html http://www.example.com/
+ curl -o thatpage.html https://www.example.com/
Get a webpage and store in a local file, make the local file get the name of
the remote document (if no filename part is specified in the URL, this fails):
- curl -O http://www.example.com/index.html
+ curl -O https://www.example.com/index.html
Fetch two files and store them with their remote names:
@@ -115,14 +115,14 @@ matching public key file must be specified using the `--pubkey` option.
### HTTP
-curl also supports user and password in HTTP URLs, thus you can pick a file
+curl also supports user and password in HTTP(S) URLs. You can download a file
like:
- curl http://name:passwd@http.server.example/full/path/to/file
+ curl https://name:passwd@http.server.example/full/path/to/file
or specify user and password separately like in
- curl -u name:passwd http://http.server.example/full/path/to/file
+ curl -u name:passwd https://http.server.example/full/path/to/file
HTTP offers many different methods of authentication and curl supports
several: Basic, Digest, NTLM and Negotiate (SPNEGO). Without telling which
@@ -151,19 +151,19 @@ Get an ftp file using an HTTP proxy named my-proxy that uses port 888:
curl -x my-proxy:888 ftp://ftp.example.com/README
-Get a file from an HTTP server that requires user and password, using the
+Get a file from an HTTPS server that requires user and password, using the
same proxy as above:
- curl -u user:passwd -x my-proxy:888 http://www.example.com/
+ curl -u user:passwd -x my-proxy:888 https://www.example.com/
Some proxies require special authentication. Specify by using -U as above:
- curl -U user:passwd -x my-proxy:888 http://www.example.com/
+ curl -U user:passwd -x my-proxy:888 https://www.example.com/
A comma-separated list of hosts and domains which do not use the proxy can be
specified as:
- curl --noproxy example.com -x my-proxy:888 http://www.example.com/
+ curl --noproxy example.com -x my-proxy:888 https://www.example.com/
If the proxy is specified with `--proxy1.0` instead of `--proxy` or `-x`, then
curl uses HTTP/1.0 instead of HTTP/1.1 for any `CONNECT` attempts.
@@ -204,11 +204,11 @@ one or more sub-parts of a specified document. curl supports this with the
Get the first 100 bytes of a document:
- curl -r 0-99 http://www.example.com/
+ curl -r 0-99 https://www.example.com/
Get the last 500 bytes of a document:
- curl -r -500 http://www.example.com/
+ curl -r -500 https://www.example.com/
curl also supports simple ranges for FTP files as well. Then you can only
specify start and stop position.
@@ -251,9 +251,9 @@ fashion similar to:
### HTTP
-Upload all data on stdin to a specified HTTP site:
+Upload all data on stdin to a specified HTTPS site:
- curl -T - http://www.example.com/myfile
+ curl -T - https://www.example.com/myfile
Note that the HTTP server must have been configured to accept PUT before this
can be done successfully.
@@ -305,12 +305,12 @@ The post data must be urlencoded.
Post a simple `name` and `phone` guestbook.
- curl -d "name=Rafael%20Sagula&phone=3320780" http://www.example.com/guest.cgi
+ curl -d "name=Rafael%20Sagula&phone=3320780" https://www.example.com/guest.cgi
Or automatically [URL encode the data](https://everything.curl.dev/http/post/url-encode).
curl --data-urlencode "name=Rafael Sagula&phone=3320780"
- http://www.example.com/guest.cgi
+ https://www.example.com/guest.cgi
How to post a form with curl, lesson #1:
@@ -329,7 +329,7 @@ of the letter's ASCII code.
Example:
-(say if `http://example.com` had the following html)
+(say if `https://example.com` had the following html)
```html