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

  • Home
  • SEARCH
  • 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 847927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:51:57+00:00 2026-05-15T06:51:57+00:00

How do I pass authorization header using cURL? ( executable in /usr/bin/curl ).

  • 0

How do I pass authorization header using cURL? ( executable in /usr/bin/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-15T06:51:58+00:00Added an answer on May 15, 2026 at 6:51 am

    http://curl.se/docs/httpscripting.html

    See part 6. HTTP Authentication

    HTTP Authentication

    HTTP Authentication is the ability to tell the server your username and
    password so that it can verify that you’re allowed to do the request you’re
    doing. The Basic authentication used in HTTP (which is the type curl uses by
    default) is plain text based, which means it sends username and password
    only slightly obfuscated, but still fully readable by anyone that sniffs on
    the network between you and the remote server.

    To tell curl to use a user and password for authentication:

    curl --user name:password http://www.example.com
    

    The site might require a different authentication method (check the headers
    returned by the server), and then –ntlm, –digest, –negotiate or even
    –anyauth might be options that suit you.

    Sometimes your HTTP access is only available through the use of a HTTP
    proxy. This seems to be especially common at various companies. A HTTP proxy
    may require its own user and password to allow the client to get through to
    the Internet. To specify those with curl, run something like:

    curl --proxy-user proxyuser:proxypassword curl.haxx.se
    

    If your proxy requires the authentication to be done using the NTLM method,
    use –proxy-ntlm, if it requires Digest use –proxy-digest.

    If you use any one these user+password options but leave out the password
    part, curl will prompt for the password interactively.

    Do note that when a program is run, its parameters might be possible to see
    when listing the running processes of the system. Thus, other users may be
    able to watch your passwords if you pass them as plain command line
    options. There are ways to circumvent this.

    It is worth noting that while this is how HTTP Authentication works, very
    many web sites will not use this concept when they provide logins etc. See
    the Web Login chapter further below for more details on that.

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

Sidebar

Ask A Question

Stats

  • Questions 431k
  • Answers 431k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Best plan: don't do this. In general, it's a bad… May 15, 2026 at 2:23 pm
  • Editorial Team
    Editorial Team added an answer You could always implement your own authorization attribute: [AttributeUsage(AttributeTargets.Method |… May 15, 2026 at 2:23 pm
  • Editorial Team
    Editorial Team added an answer You can't get around the fact that somewhere, somehow, you'll… May 15, 2026 at 2:23 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.