note 115501 added to function.curl-setopt

From: Date: Tue, 05 Aug 2014 16:38:45 +0000
Subject: note 115501 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-200124@lists.php.net to get a copy of this message
to complement shiplu's comment on the neccessary option sequence of CURLOPT_POST before CURLOPT_POSTFIELDS: The crux is not some error on nginx, but that nothing at all will be send over the line by curl. Parameters set by a "CURLOPT_POSTFIELDS" option setting will be completely ignored, as long as no "CURLOPT_POST" has been encountered beforehand: Neigther the Content-Type header will be set/generated accordingly nor Content-Length nor any data will be send in the body. When using curl_setopt_array, the sequence in the array matters as well. ---- Server IP: 213.172.110.14 Probable Submitter: 213.23.74.36 ---- Manual Page -- http://php.net/manual/en/function.curl-setopt.php Edit -- https://master.php.net/note/edit/115501 Del: integrated -- https://master.php.net/note/delete/115501/integrated Del: useless -- https://master.php.net/note/delete/115501/useless Del: bad code -- https://master.php.net/note/delete/115501/bad+code Del: spam -- https://master.php.net/note/delete/115501/spam Del: non-english -- https://master.php.net/note/delete/115501/non-english Del: in docs -- https://master.php.net/note/delete/115501/in+docs Del: other reasons-- https://master.php.net/note/delete/115501 Reject -- https://master.php.net/note/reject/115501 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200124) next »