note 66221 added to function.curl-setopt

From: Date: Wed, 17 May 2006 02:00:51 +0000
Subject: note 66221 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-111472@lists.php.net to get a copy of this message
Looks like curl_setopt() does not take arrays under CURLOPT_POSTFIELDS. Make sure you call http_build_query() in order to build the query string. $vars = array("abc" => "value"); curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($vars)); cya Dan http://www.sniffy.com.br/ ---- Server IP: 66.163.161.117 Probable Submitter: 200.234.231.82 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php Edit -- http://master.php.net/note/edit/66221 Del: integrated -- http://master.php.net/note/delete/66221/integrated Del: useless -- http://master.php.net/note/delete/66221/useless Del: bad code -- http://master.php.net/note/delete/66221/bad+code Del: spam -- http://master.php.net/note/delete/66221/spam Del: non-english -- http://master.php.net/note/delete/66221/non-english Del: in docs -- http://master.php.net/note/delete/66221/in+docs Del: other reasons-- http://master.php.net/note/delete/66221 Reject -- http://master.php.net/note/reject/66221 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111472) next »