File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,8 @@ public function haveHttpHeader($name, $value)
188188 }
189189
190190 /**
191- * Deletes a HTTP header, so that subsequent requests will not send it anymore.
191+ * Deletes a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
192+ * so that subsequent requests will not send it anymore.
192193 *
193194 * Example:
194195 * ```php
@@ -429,6 +430,12 @@ public function amAWSAuthenticated($additionalAWSConfig = [])
429430 * 'tmp_name' => codecept_data_dir('sample_file.pdf')
430431 * ]
431432 * ]);
433+ * // If your field names contain square brackets (e.g. `<input type="text" name="form[task]">`),
434+ * // PHP parses them into an array. In this case you need to pass the fields like this:
435+ * $I->sendPOST('/add-task', ['form' => [
436+ * 'task' => 'lorem ipsum',
437+ * 'category' => 'miscellaneous',
438+ * ]]);
432439 * ```
433440 *
434441 * @param $url
You can’t perform that action at this time.
0 commit comments