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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:30:05+00:00 2026-05-30T13:30:05+00:00

Please explain this curl command: curl –digest \ -u{username}:{password} \ -v \ -X PUT

  • 0

Please explain this curl command:

curl --digest \
    -u{username}:{password} \
    -v \
    -X PUT \
    -H 'Expect: ' \
    -H 'Content-type: application/xml' \
    -d @- \
    http://webapi.ebayclassifieds.com/webapi/partners/{username}/ads/{ext-reference-id} \
        < ad.xml 

What does the < sign mean?

What I understand:

[--digest] its a digest authentication
[-u{username}:{password}] obviously username and password
[-X PUT] method="put"
[-H 'Expect: '] header = 'Expect: '
[-H 'Content-type: application/xml'] additional header

This is probably what I don’t get -d @- url < ad.xml
[-d @- http://webapi.ebayclassifieds.com/webapi/partners/{username}/ads/{ext-reference-id} < ad.xml ]

What I found:

-d, –data

(HTTP) Sends the specified data in a POST request to the HTTP server,
in the same way that a browser does when a user has filled in an HTML
form and presses the submit button. This will cause curl to pass the
data to the server using the content-type
application/x-www-form-urlencoded. Compare to -F, –form.

-d, –data is the same as –data-ascii. To post data purely binary, you should instead use the –data-binary option. To URL-encode the
value of a form field you may use –data-urlencode.

If any of these options is used more than once on the same command
line, the data pieces specified will be merged together with a
separating &-symbol. Thus, using ‘-d name=daniel -d skill=lousy’ would
generate a post chunk that looks like ‘name=daniel&skill=lousy’.

If you start the data with the letter @, the rest should be a file
name to read the data from, or – if you want curl to read the data
from stdin. The contents of the file must already be URL-encoded.
Multiple files can also be specified. Posting data from a file named
‘foobar’ would thus be done with –data @foobar.

Leading question:
If somebody knows how to translate this to cfhttp just dont mind the digest authentication and assume request is working with digest authentication.

  • 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-30T13:30:06+00:00Added an answer on May 30, 2026 at 1:30 pm

    The “-d@ -” option means that curl will send a POST request with the data it reads from stdin.

    The ‘<‘ operator tells the shell to feed a file to stdin.

    You could make a simpler command line by instead doing -d @ad.xml and not use stdin at all.

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

Sidebar

Related Questions

I have a feeling this XML is not valid, can someone please explain why?
Please explain this sed command? sed -n s/[^>]*>/ /gp What is gp?
Can any one please explain this: var js_var = 'hello'; $.ajax({ type: POST, url:
Can someone please explain this question to me? Are the type system represented by
Please explain this type signature : void (*signal(int signo, void *(func)(int)))(int)
Why are copy constructors unnecessary for immutable objects? Please explain this for me.
Please explain what this task is about? Create a generic linked list class that
Can someone please explain why this program outputs 0x00000004? class AndAssignment { static void
Can anybody please explain how this could possibly happen? I am completely aware of
Could you please explain why this code is not syntactically correct? private void addEditor(final

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.