note 78733 added to function.curl-setopt

From: Date: Thu, 25 Oct 2007 02:38:26 +0000
Subject: note 78733 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-131717@lists.php.net to get a copy of this message
If you pass a string as the argument to CURLOPT_POSTFIELDS, your data will be interpreted as x-www-form-urlencoded; if you pass an array, it will be interpreted as multi-part form-data. So if you want to upload a file: - pass an array to CURLOPT_POSTFIELDS - do not urlencode your data - put a @ in front of your file name. ---- Server IP: 69.147.83.197 Probable Submitter: 216.252.82.85 ---- Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php Edit -- https://master.php.net/note/edit/78733 Del: integrated -- https://master.php.net/note/delete/78733/integrated Del: useless -- https://master.php.net/note/delete/78733/useless Del: bad code -- https://master.php.net/note/delete/78733/bad+code Del: spam -- https://master.php.net/note/delete/78733/spam Del: non-english -- https://master.php.net/note/delete/78733/non-english Del: in docs -- https://master.php.net/note/delete/78733/in+docs Del: other reasons-- https://master.php.net/note/delete/78733 Reject -- https://master.php.net/note/reject/78733 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131717) next »