Testing a page behind a login needs the cookie from the first request in the second one.
curl -c jar.txt https://example.com/login-page
curl -b jar.txt https://example.com/account
-c writes the cookies the server sets into a file, and -b reads them back and sends them. Using both with the same file in one command also updates the jar. -b with a string that contains =, such as -b 'session=abc', sends it literally and does not treat it as a file name. A session cookie lives only in the jar file, so delete the file afterwards.
Further reading: curl manual