]> git.cworth.org Git - lmno-todo/commitdiff
nogit-sync commit
authorCarl Worth <cworth@cworth.org>
Tue, 7 Jul 2020 13:14:41 +0000 (06:14 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 7 Jul 2020 13:14:41 +0000 (06:14 -0700)
TODO

diff --git a/TODO b/TODO
index 43948d73300b618f6f85720e4295adfaf6684e28..48fb75a7402b82b47560c366425f780460eae541 100644 (file)
--- a/TODO
+++ b/TODO
@@ -88,7 +88,24 @@ Bring client up to latest Empires API approach
                      https://lmno.games/empires/QRST/register
                 Returns: 1 (Or some other player ID value)
 
-  [ ] Implement registration with /profile and then /register (requires cookie)
+  [ ] Implement registration with /profile and then /register
+
+      Note: This approach requires obtaining a cookie from the
+      /profile request and then providing that cookie on the
+      subsequent /register request. The -c and -b command-line options
+      of curl can be used to demonstrate this:
+
+      Example:
+                curl -c cookie-file \
+                     -X PUT \
+                     -H 'Content-Type: application/json' \
+                     -d '{"nickname": "Cookie"}' \
+                     https://lmno.games/profile
+                curl -b cookie-file \
+                     -X POST \
+                     -H 'Content-Type: application/json' \
+                     -d '{"character": "Cookie Monster"}'
+                     https://lmno.games/empires/QRST/register
 
 Scribe
 ======