Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https: make hsts and alt-svc sub-pages under HTTPS #483

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@
* [HTTP/2](http/versions/http2.md)
* [HTTP/3](http/versions/http3.md)
* [Conditionals](http/conditionals.md)
* [HTTPS](http/https.md)
* [HTTP POST](http/post/README.md)
* [Simple POST](http/post/simple.md)
* [Content-Type](http/post/content-type.md)
Expand All @@ -177,8 +176,9 @@
* [HTTP PUT](http/put.md)
* [Cookies](http/cookies/README.md)
* [Cookie file format](http/cookies/fileformat.md)
* [Alternative Services](http/altsvc.md)
* [HSTS](http/hsts.md)
* [HTTPS](http/https.md)
* [HSTS](http/https/hsts.md)
* [Alternative Services](http/https/altsvc.md)
* [Scripting browser-like tasks](http/browserlike.md)
* [Command line FTP](ftp/README.md)
* [FTP Directory listing](ftp/dirlist.md)
Expand Down
18 changes: 9 additions & 9 deletions bookindex.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ the specific HTTPS section.
* [Ranges](ranges.md)
* [HTTP versions](versions/)
* [Conditionals](conditionals.md)
* [HTTPS](https.md)
* [HTTP POST](post/)
* [Redirects](redirects.md)
* [Modify the HTTP request](modify/)
* [HTTP PUT](put.md)
* [Cookies](cookies/)
* [Alternative Services](altsvc.md)
* [HSTS](hsts.md)
* [HTTPS](https.md)
* [HSTS](https/hsts.md)
* [Alternative Services](https/altsvc.md)
* [Scripting browser-like tasks](browserlike.md)
1 change: 1 addition & 0 deletions http/https.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ integrity by the use of TLS.
See the [Using TLS](../usingcurl/tls.md) section for in-depth details on how
to modify and tweak the TLS details in an HTTPS transfer.

* [HSTS](https/hsts.md)

File renamed without changes.
12 changes: 7 additions & 5 deletions http/hsts.md → http/https/hsts.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# HSTS

*Automatic use of HTTPS*.

HTTP Strict Transport Security, HSTS, is a protocol mechanism that helps to
protect HTTPS servers against man-in-the-middle attacks such as protocol
downgrade attacks and cookie hijacking. It allows an HTTPS server to declare
that clients should automatically interact with this hostname using only
HTTPS connections going forward - and explicitly not use clear text protocols
with it.
that clients should automatically interact with this hostname using only HTTPS
connections going forward - and explicitly not use clear text protocols with
it.

## HSTS cache

The HSTS status for a certain server name is set in a response header and has
an expire time. The status for every HSTS hostname needs to be saved
in a file for curl to pick it up and to update the status and expire time.
an expire time. The status for every HSTS hostname needs to be saved in a file
for curl to pick it up and to update the status and expire time.

Invoke curl and tell it which file to use as a hsts cache:

Expand Down
4 changes: 2 additions & 2 deletions http/versions/http3.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ can take advantage of this feature when

## Alt-svc:

The [alt-svc](../altsvc.md) method of changing to HTTP/3 is the official way to
bootstrap into HTTP/3 for a server.
The [alt-svc](../https/altsvc.md) method of changing to HTTP/3 is the official
way to bootstrap into HTTP/3 for a server.

Note that you need that feature built-in and that it does not switch to HTTP/3
for the *current* request unless the alt-svc cache is already populated, but
Expand Down
Loading