CURLOPT_POSTFIELDS

curl option for POST body fields.

Target constant

Signature

1CURLOPT_POSTFIELDS()

curl option for POST body fields.

CURLOPT_POSTFIELDS is part of this LaiRu reference group. CURLOPT_POSTFIELDS performs network or protocol work. Make timeouts, encodings, and authentication settings visible in calling code so failures are easier to diagnose.

Examples

Basic call

1curl->set(CURLOPT_POSTFIELDS, 'a=1')
Use this value as an option to the call that accepts the corresponding constant group.