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)
188
188
}
189
189
190
190
/**
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.
192
193
*
193
194
* Example:
194
195
* ```php
@@ -429,6 +430,12 @@ public function amAWSAuthenticated($additionalAWSConfig = [])
429
430
* 'tmp_name' => codecept_data_dir('sample_file.pdf')
430
431
* ]
431
432
* ]);
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
+ * ]]);
432
439
* ```
433
440
*
434
441
* @param $url
You can’t perform that action at this time.
0 commit comments