note 15603 added to function.curl-setopt

From: Date: Sat, 22 Sep 2001 07:52:47 +0000
Subject: note 15603 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-18164@lists.php.net to get a copy of this message
To make a POST in multipart/form-data mode (to upload a file for example) you can use curl_setopt($ch,CURLOPT_POSTFIELDS,$post); where $post is an array : $post['key1'] = 'data1' // like a text field in a POST $post['file1'] = '@filename1' // upload filename1 For more informations see the curl_formparse man page. http://www.php.net:8070/manual/en/function.curl-setopt.php

« previous php.notes (#18164) next »