This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sysadminery:matrix [2023/12/04 16:56] – adam | sysadminery:matrix [2026/02/06 08:05] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | hold this real quick: https:// | ||
| + | |||
| ====== register new user ====== | ====== register new user ====== | ||
| Line 11: | Line 13: | ||
| you're on port 8448, which is unusual. | you're on port 8448, which is unusual. | ||
| + | faq: how do I get an apostrophe? you can just glue strings, be they double-apostrophe or double-quote, | ||
| < | < | ||
| - | curl -XPOST -d ' | + | #password is asdf' |
| + | pw=' | ||
| + | </ | ||
| + | we're going to do the same to glue the password in. | ||
| + | |||
| + | username doesn' | ||
| + | |||
| + | < | ||
| + | pw=' | ||
| + | echo $pw | ||
| + | curl -XPOST -d ' | ||
| </ | </ | ||
| that' | that' | ||
| + | |||
| + | now for extra fun: get yourself '' | ||
| + | |||
| + | < | ||
| + | pw=' | ||
| + | username=' | ||
| + | echo $pw | ||
| + | token=$(curl -XPOST -d ' | ||
| + | echo $token | ||
| + | </ | ||
| + | |||
| < | < | ||
| curl -XPOST \ | curl -XPOST \ | ||
| Line 20: | Line 44: | ||
| " | " | ||
| </ | </ | ||
| + | |||