How to make POST request to send array through Chrome or Firefox?

13,248

Solution 1

To send an array you need to set the same request key as "my_array[]" and then add your values. Postman let's you do this already.

Solution 2

@Abhinav is right. For the lazy:

send_array_param_with_postman

If that doesn't work, try not putting indexes in brackets:

my_array[]  value1
my_array[]  value2

Solution 3

For me did not work with array[0], array1, .. or array[], array[], ... . It works more simply: enter image description here

Share:
13,248
malcoauri
Author by

malcoauri

Updated on June 22, 2022

Comments

  • malcoauri
    malcoauri almost 2 years

    I used Postman plugin for Chrome to send request and get response, but this plugin didn't allow (or I couldn't do) to send request with array, but I need it. Please, give me advice, which plugin can I use for it? Thanks in advance.