How to send arrays with GET or POST request in POSTMAN Rest Client

3 Responses

  1. Vince says:

    Thank you, good one.

    Have a question..how will you get these array values into a variable? these ones name” => “Rabbit”
    “age” => “2 years”
    “color” => “White”
    “height” => “2 inch”
    “weight” => “.5Kg”
    into a variable or how to split and store in a variable.

    Thank you

    • Shojib Flamon says:

      Thanks for your query.
      I don’t know that did you get any solution or not.
      By the way
      you can json_encode this array and pass it using a regular key value in postman.
      like
      key : value
      pet : {“name”:”Rabbit”,”age”:”2 years”,”color”:”White”,”height”:”2 inch”,”weight”:”.5Kg”}

      again you catch this value simple using $_REQUEST[‘pet’] & json_decode($_REQUEST[‘pet’]);

      Simple Solution. Hope you understand
      Thanks

  2. Eduardo Cooper says:

    Thank you! Help me a lot!

Leave a Reply

Your email address will not be published. Required fields are marked *