I'm trying to execute a CURL request via command line which uses
drush uli to log into my site as an administrative user. Then it's redirected to another destination url.
It works if the redirected url is a non-admin path available to anonymous users, but admin paths return a 403 Forbidden, which is something my site does for anonymous users trying to access admin pages.
curl -vk -L $(drush uli admin_username /node/1)
This returns HTTP 403 forbidden:
curl -vk -L $(drush uli admin_username /admin/structure)
path parameter is being redirected to after logging in, but it's like when CURL gets there... it's not logged in anymore and is seeing the response as if it were an anonymous user.
Anyone experience this?