Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 852
malcoauri Avatar asked Dec 27 '13 06:12

malcoauri


3 Answers

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.

like image 129
Abhinav Avatar answered Oct 13 '22 06:10

Abhinav


@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
like image 25
Benjamin Crouzier Avatar answered Oct 13 '22 07:10

Benjamin Crouzier


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

like image 36
Popa Andrei Avatar answered Oct 13 '22 06:10

Popa Andrei