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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:54:20+00:00 2026-06-03T15:54:20+00:00

I have been searching for a way, to specify the cookie data for CURL.

  • 0

I have been searching for a way, to specify the cookie data for CURL. I have found some solutions on how to save the cookies from a visited page, but that’s not what I need. What I want is, to write the data for the cookie myself, so CURL uses it.

  • 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-03T15:54:23+00:00Added an answer on June 3, 2026 at 3:54 pm

    You really should read the documentation – it’s listed with exactly the keywords you’d expect and contains a lot of helpful info:

    -b, –cookie

    (HTTP) Pass the data to the HTTP server as a cookie. It is supposedly
    the data previously received from the server in a “Set-Cookie:” line.
    The data should be in the format “NAME1=VALUE1; NAME2=VALUE2”.

    If no ‘=’ symbol is used in the line, it is treated as a filename to
    use to read previously stored cookie lines from, which should be used
    in this session if they match. Using this method also activates the
    “cookie parser” which will make curl record incoming cookies too,
    which may be handy if you’re using this in combination with the -L,
    –location option. The file format of the file to read cookies from should be plain HTTP headers or the Netscape/Mozilla cookie file
    format.

    NOTE that the file specified with -b, –cookie is only used as input.
    No cookies will be stored in the file. To store cookies, use the -c,
    –cookie-jar option or you could even save the HTTP headers to a file using -D, –dump-header!

    If this option is set more than once, the last one will be the one
    that’s used.

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

Sidebar

Related Questions

I have been searching for a way to get the json data from a
I have been searching for days for a way to always display just one
I have been searching for way to perform a linq query to get an
I have been searching for a way to stream audio and video for a
I have been searching for an easy way to get the ServerName of the
I have been searching for a while on a way to select certain columns
I have been searching high and low for a way to paginate an XML
I have been searching for a way to skin C# applications under Windows Forms.
I have been searching online with little success for a way to force php
I have been searching online for awhile, trying to find the best way to

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.