title: Generate login cookie in shell (using curl?)
body: <p>I would like to generate a login cookie in the shell, before launching my browser, such that I am already logged into certain websites. Currently I am trying this with my own nextcloud server using the following command</p>
  <pre><code>curl --cookie test.txt --cookie-jar test.txt \
  -d &quot;user=***name***&quot; \
  -d &quot;password=***password***&quot; \
  &lt;my nextcloud server&gt;/index.php/login 
  </code></pre>
  <p>getting a cookie that looks like the following. However, placing this among my other cookies does not allow me to login.</p>
  <pre><code># Netscape HTTP Cookie File
  # https://curl.haxx.se/docs/http-cookies.html
  # This file was generated by libcurl! Edit at your own risk.
  
  #HttpOnly_&lt;my nextcloud server&gt;  FALSE   /nextcloud      TRUE       nc_sameSiteCookiestrict        true
  #HttpOnly_&lt;my nextcloud server&gt;  FALSE   /nextcloud      TRUE          nc_sameSiteCookielax   true
  #HttpOnly_&lt;my nextcloud server&gt;  FALSE   /nextcloud      TRUE          oc_sessionPassphrase  .....
  #HttpOnly_&lt;my nextcloud server&gt; FALSE   /nextcloud      TRUE         ..... ...................
  </code></pre>
  <p>Recording with chromium the action of a normal login, a different cookie is generated out of the one below, is anyone familiar with this login method?
  Thanks!</p>
  <p>My goal would be an auto login script like <a href="https://surf.suckless.org/files/autologin/" rel="nofollow noreferrer">this one</a> for the surf browser</p>