Codeception / Codeception/module-rest
How to send raw data with method sendPost?
Abierto
- Lenguaje dominante
- PHP
- Estrellas
- 60
- Forks
- 30
- Merge medio
- 22 h 37 min
- PR fusionados (30 d)
- 1
Descripción
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?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.