Codeception / Codeception/module-rest
How to send raw data with method sendPost?
Đang mở
- Ngôn ngữ chính
- PHP
- Star
- 60
- Fork
- 30
- Merge trung bình
- 22 giờ 37 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
I want to send POST request with headers and raw data (**string** not **array**)
Test:
```php
$I->haveHttpHeader('HeaderName', 'HeaderValue');
$I->sendPost(url: '/localhost', params: 'my raw content'); // @param array|string|JsonSerializable $params
```
Result:
```php
var_dump(file_get_contents('php://input')); // string(0) ""
var_dump($_POST); // array(0) {}
```
How can this be done?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.