Testing drupal site as authenticated user

In order to generate authenticated requests using curl we can use the session cookie from a session in our browser. How to find that? Sign in to your site in your browser. Then find the cookie that starts with either SESS, or SSESS followed by a random string. Copy the cookie name, and value, and then use them as arguments to curl using the --cookie flag like so:

curl --cookie "{cookie.name}={cookie.value}"

and for some extra effect add time function to time this request

time /usr/bin/curl -I --cookie "SSESS53f316867ea24f1dsf0f2b137c70150e8=Fo9DC_gqdsMCWkTGLVeg9dfgH1s2cxtTfdwB4BdgTI37jE" https://drupaldump.com