|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-06 12:46 UTC] jani@php.net
[2009-04-06 13:11 UTC] klas at k-k-k dot biz
[2009-04-06 14:15 UTC] iliaa@php.net
[2009-04-06 14:35 UTC] klas at k-k-k dot biz
[2009-04-06 14:42 UTC] pajoye@php.net
[2009-04-06 14:44 UTC] pajoye@php.net
[2009-04-14 01:00 UTC] php-bugs at lists dot php dot net
[2010-03-07 19:36 UTC] felipe@php.net
-Package: Scripting Engine problem
+Package: cURL related
[2013-01-21 03:51 UTC] ldxing999 at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 08:00:01 2025 UTC |
Description: ------------ Inserting array (key=>value) as CURLOPT_POSTFIELDS doesn't work although documentation states: "This can either be passed as a urlencoded string like 'para1=val1¶2=val2&...' or as an array with the field name as key and field data as value. " Reproduce code: --------------- $url="example.php"; $process = curl_init($url); $data= array ('somefield'=>'somedata') curl_setopt($process, CURLOPT_POSTFIELDS, $data); curl_exec($process); curl_close($process); Expected result: ---------------- input field "somefield" with value "somedata" posted to example.php Actual result: -------------- Empty field/value