Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8559203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:59:11+00:00 2026-06-11T15:59:11+00:00

I have 2 pages: xyz.example/a and xyz.example/b . I can only access xyz.example/b if

  • 0

I have 2 pages: xyz.example/a and xyz.example/b. I can only access xyz.example/b if and only if I login to xyz.example/a first. If accessing xyz.example/b without going through the other, I simply get access denied (no redirect to login) via the browser. Once I login at xyz.example/a, I can access the other.

My problem is doing this using the curl command. I can login successfully to xyz.example/a using curl, but then try xyz.example/b and I get access denied.

I use the following:

curl --user user:pass https://xyz.example/a  #works ok
curl https://xyz.example/b #doesn't work

I’ve tried using the second line with & without the user/password part and still doesn’t work. Both pages uses the same CA, so that’s not a problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:59:12+00:00Added an answer on June 11, 2026 at 3:59 pm

    The web site likely uses cookies to store your session information. When you run

    curl --user user:pass https://xyz.example/a  #works ok
    curl https://xyz.example/b #doesn't work
    

    curl is run twice, in two separate sessions. Thus when the second command runs, the cookies set by the 1st command are not available; it’s just as if you logged in to page a in one browser session, and tried to access page b in a different one.

    What you need to do is save the cookies created by the first command:

    curl --user user:pass --cookie-jar ./somefile https://xyz.example/a
    

    and then read them back in when running the second:

    curl --cookie ./somefile https://xyz.example/b
    

    Alternatively you can try downloading both files in the same command, which I think will use the same cookies.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 pages that I want to show as instructions the first time
i have an array, which includes some pages: var pages = ['test', 'blabla', 'xyz'];
For example, I have an ajax request from the page http://www.abc.com/xyz/1 to the function
I have one link example <a href=xyz.html target=_blank>Click Here</a> When ever i clicks on
I have two pages say abc and xyz in abc i have an anchor
I am working in C#(asp.net). I have two pages 'abc.aspx' and 'xyz.aspx'. I want
I have pages of this type :- xyz.com?q=Apple+Ipod+touch I wish to convert it into
I have website www.xyz.com and it is having 3 pages a, b and c.
I have a page which is being extended to other pages in the UI.
I have a page request with a QueryString, say http://www.xyz.net/Orders.aspx?OrderID=1 . The page is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.