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 7027469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:15:06+00:00 2026-05-28T00:15:06+00:00

Related question: Set session to scrape page As a personal project, I’m trying to

  • 0

Related question: Set session to scrape page

As a personal project, I’m trying to scrape my University’s course catalog to provide it as a RESTful API.

URL1: https://duapp3.drexel.edu/webtms_du/

URL2: https://duapp3.drexel.edu/webtms_du/Colleges.asp?Term=201125&univ=DREX

Going to URL1 sets a cookie which is needed for URL2. I’m successfully receiving and sending the cookie like this:


curl -c recd url1
curl -v -b recd url2

However, the response I get differs from the one I see in my browser. Basically, my browser shows me a list of majors, while curl gets a page where instead of the list of majors, it has

<FONT COLOR=red size=5> The lists of subjects are not available online for the selected term at this time.</FONT><FONT COLOR=red size=5> Please check back again later.</FONT>

I figured maybe they were checking user-agent, so I tried this as well:

curl -b recdcookies --user-agent "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" https://duapp3.drexel.edu/webtms_du/Colleges.asp?Term=201125&univ=DREX

But same unexpected response.

What is causing the different outputs between browser and curl? As far as curl -v shows it only sets one cookie. Is it because they are https pages, and I need to be adding another argument to the curl ?

  • 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-05-28T00:15:07+00:00Added an answer on May 28, 2026 at 12:15 am

    When using curl on the command line, you must enclose the url in quotes if it contains an ampersand (&) because it has special meaning on unix systems.

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

Sidebar

Related Questions

Related question [stackoverflow] here . I'm trying to do the above, but I want
I'm just trying to make sense of a basic Android navigation-related question, namely How
(Note: See also the related question Can browsers react to Set-Cookie specified in headers
I have a very simple CSS related question on iPad. I have a set
Related question, about assignment-initialization-declaration. $ javac MatchTest.java MatchTest.java:7: ')' expected for((int i=-1 && String
(See related question: How do I report an error midway through a chunked http
A related question to one I asked earlier ... Just checking on something: Should
I asked a somewhat related question but I want it to make it more
In a related question I asked about creating a generic container. Using polymorphic templates
In a related question , my team is about to (hopefully) start using LINQ,

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.