Send multiple values for same name form item via curl


I am using a FAX API in an script of my office. I am actually, automating the faxing process.

Now, the documentation of the API says, that the HTTP POST header should be like this :

Content-Disposition: form-data; name="Recipient"

5556465589|John Doe
Content-Disposition: form-data; name="Recipient"

5555568552|John Smith

You can see that the name is same, but it cant be an array. Because, when I tried that, it shows “ARRAY” to the system where it submits. Now, that system is beyond my control .

Here you can see the API Documentation.

Please guide


Well, you can post the same key multiple times, sure. Most systems will overwrite them, though. apparantly theirs doesnt?


Thanks, I did that, but it took the last occurrence - unfortunately.