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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:24:26+00:00 2026-06-14T07:24:26+00:00

how I do post multiple values to the same key using cURL? for example

  • 0

how I do post multiple values to the same key using cURL?

for example when I ran the following to my example.com URL, it complained…is the format correct or is this a problem with the backend not being able to handle the request?

curl -k -H 'Accept: application/json' --user admin:admin example.com -d name=peter -d name=paul -d name=mary
  • 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-14T07:24:27+00:00Added an answer on June 14, 2026 at 7:24 am

    Multiple -d looks fine. The docs said -d name=daniel -d skill=lousy will generate name=daniel&skill=lousy

    http://curl.haxx.se/docs/manpage.html#-d

    So if you want send an array, you have to use the [] brackets.

    -d name[]=peter -d name[]=paul -d name[]=mary
    

    It looks like you can also use

    -d "name[]=peter&name[]=paul&name=mary"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the chosen UI library to select multiple values for a post param
I have been following the following post on using multiple ItemTemplates in a ListView
HTTP Post may have multiple params such as: http://example.com/controller/ (while params=({'country':'US'},{'city':'NYC'}) I am developing
How to pass multiple checkboxes using jQuery ajax post this is the ajax function
We are using Scott Hansleman's suggestion for multiple web.configs from his post here .
I want to use the same post Action method for multiple number of input
I'm implementing multiple autocomplete using jQuery UI. Also I'm using webservice to pass values.
How would I submit a POST request in Ruby's Mechanize gem, with multiple values
I want to get possibility to select several Categories for one Post with multiple
I found this post that shows how to pass multiple check box selections 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.