Alex Rivera | Logout

How to send array with CURL? Should I `urlencode` it?

Asked 2009-02-22T03:14:33.207
21

When I assign an array of data to be POSTed as a cURL option (via CURLOPT_POSTFIELDS), do I need to urlencode that data first or will that be taken care of?

Edit
Report

1 Answer

1

One problem with using an array for CURLOPT_POSTFIELDS is that you can't have a name-value pair with an empty value.

answered 2009-02-22T13:56:01.090

Your Answer