|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-06-16 19:20 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2010-06-16 19:20 UTC] johannes@php.net
[2010-06-16 19:27 UTC] byoung at bigbluehat dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 23:00:02 2025 UTC |
Description: ------------ According to the http_post_data documentation the second parameter is optional: <code> string http_post_data(string $url [, string $data [, array $options [, array &$info ]]]) </code> However, when you try http_post_data('http://...'); this error is returned: "expects at least 2 parameters, 1 given" It would be great if the code were changed to match the documentation, in that there are times when POST-ing an empty body could be valid (requesting a "ticket" to later PUT to, etc). Please consider the making the library match the documentation. Thanks.