CURL to access a page that requires a login from a different page
问题 I have 2 pages: xyz.com/a and xyz.com/b . I can only access xyz.com/b if and only if I login to xyz.com/a first. If accessing xyz.com/b without going through the other, I simply get access denied (no redirect to login) via the browser. Once I login at xyz.com/a , I can access the other. My problem is doing this using the curl command. I can login successfully to xyz.com/a using curl, but then try xyx.com/b and I get access denied. I use the following: curl --user user:pass https://xyz.com/a