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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:41:49+00:00 2026-06-13T03:41:49+00:00

I have a question regarding HTTP Digest Auth using curl, and sending post data

  • 0

I have a question regarding HTTP Digest Auth using curl, and sending post data at the same time.

I have a REST API, and each resource in it needs authentication. I access my resources from my website using php curl. Each resource needs to authenticate using digest.

I’m using CURLAUTH_DIGEST for this, and it usually works like a charm.

The problem is when I try to send additional data in POST, using CURLOPT_POSTFIELDS, that data will not be sent alongside with digest auth information. Why is this? How can I fix this?

I’m using PHP 5.4.3 with php curl 7.25.0

  • 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-13T03:41:51+00:00Added an answer on June 13, 2026 at 3:41 am

    There is absolutely no problem to combine Digest authentication with POST requests.

    Make sure to double check if you are suppose to do:

    1. a basic POST (the equivalent of -X POST -d 'body-content-here' with curl CLI),
    2. or a multipart POST (e.g. -F image_file=@"foo.jpg" to upload a given file).

    Also what I greatly recommend is to interact with your API via curl command-line tool and use the --libcurl request.c: it will write into this output C file a convenient recap of all the options used to perform the request, and then you will simply have to copy/adapt them on your side.

    At last, feel free to refer to this PHP code sample that illustrates how to perform such calls.

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

Sidebar

Related Questions

I have a question regarding ScriptTag API - http://api.shopify.com/scripttag.html , is there a way
Again I have a question regarding this plugin: http://t.wits.sg/2008/06/20/jquery-progress-bar-11/ What I want to achieve
I have a question regarding a window style hexadecimal. According to http://support.microsoft.com/kb/111011/en-us , 0x16CF0000
i have a very conceptual question regarding jquery. i have this fiddle http://jsfiddle.net/zvCrN/ What
i have a question regarding some complex data-binding. I want to be able to
I have a question regarding parsing data from Wikipedia for my Android app. I
I have a question regarding checkboxes. <form method=post> I speak the following languages: <input
I have a (hopefully easy) question regarding Amazon S3 and Cloudfront. I'm using S3Fox,
I have a question regarding the tesseract training. I am currently using Tess4J in
Hi there Im just learning JSF 2 using Primefaces. I have a question regarding

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.