Comment by thaumaturgy

5 years ago

Hmf. I wanted to cobble together a little thing that could update the plan from a shell. Using curl, I can't get anything other than a 500 reply when posting to /login, even after storing and sending the cookie from an initial get request, retrieving the csrf token for the form, and matching all the headers from a normal browser session.

If anybody manages to get a working login with curl, I'd love to see the magic incantation you used.

On plan.cat/stdin it shows just such an incantation:

    T=`mktemp` && curl -so $T https://plan.cat/~YOUR_USERNAME && $EDITOR $T && \
      curl -su YOUR_USERNAME -F "plan=<$T" https://plan.cat/stdin

It worked for me ¯\_(ツ)_/¯