Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/Codeception/Module/REST.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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. `<input type="text" name="form[task]">`),
* // 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
Expand Down