diff --git a/src/Codeception/Module/REST.php b/src/Codeception/Module/REST.php index 22efd6e..42f87fc 100644 --- a/src/Codeception/Module/REST.php +++ b/src/Codeception/Module/REST.php @@ -188,7 +188,8 @@ public function haveHttpHeader($name, $value) } /** - * Deletes a HTTP header, so that subsequent requests will not send it anymore. + * Deletes a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)), + * so that subsequent requests will not send it anymore. * * Example: * ```php @@ -429,6 +430,12 @@ public function amAWSAuthenticated($additionalAWSConfig = []) * 'tmp_name' => codecept_data_dir('sample_file.pdf') * ] * ]); + * // If your field names contain square brackets (e.g. ``), + * // PHP parses them into an array. In this case you need to pass the fields like this: + * $I->sendPOST('/add-task', ['form' => [ + * 'task' => 'lorem ipsum', + * 'category' => 'miscellaneous', + * ]]); * ``` * * @param $url