send data array (same key values) using php curl

后端 未结 3 1598
失恋的感觉
失恋的感觉 2021-01-23 22:32

I am sending a list of names and emails.

I am trying to create with curl the same functionality as in this form

3条回答
  •  感情败类
    2021-01-23 23:11

    You might be able to use something like this. Do you have a way to make a dump of the data in the Django script?

    CURLOPT_POSTFIELDS     => array(
        array(
                'name' => 'name1',
                'email' => 'name1@email',
             ),
        array(
                'name' => 'name2',
                'email' => 'name2@email',
             )
    )
    

提交回复
热议问题