From 744f0e9ae0d45e7ca2ea034067082c38081e2c1c Mon Sep 17 00:00:00 2001 From: Michael Diamond Date: Wed, 26 Nov 2025 10:57:18 -0800 Subject: [PATCH] Include --post302 in create go-link with curl example The example uses `(http://)go` rather than `https://go.[tailnet]` (hence using `-L`), however by default `curl` swaps from `POST` to `GET` on a 302 unless [`--post302`](https://manpages.debian.org/curl#post302) is passed, causing the example command to fail to create a new link. --- tmpl/help.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmpl/help.html b/tmpl/help.html index efdcc7b..619af46 100644 --- a/tmpl/help.html +++ b/tmpl/help.html @@ -137,7 +137,7 @@

Application Programming Interface (API)

Create a new link by sending a POST request with a short and long value: -

$ curl -L -H Sec-Golink:1 -d short=cs -d long=https://cs.github.com/ {{go}}
+
$ curl -L --post302 -H Sec-Golink:1 -d short=cs -d long=https://cs.github.com/ {{go}}
 {{`{"Short":"cs","Long":"https://cs.github.com/","Created":"2022-06-03T22:15:29.993978392Z","LastEdit":"2022-06-03T22:15:29.993978392Z","Owner":"amelie@example.com"}`}}