diff --git a/docs/daemon.md b/docs/daemon.md index e3f7996..d49af40 100644 --- a/docs/daemon.md +++ b/docs/daemon.md @@ -86,6 +86,22 @@ fetch("http://localhost:8080", requestOptions) .then(result => console.log(result)) .catch(error => console.log('error', error)); ``` + +* `PHP` (Symfony HttpClient) +```php +$httpClient = HttpClient::create(); + +$response = $httpClient->request('POST', 'http://localhost:8080', [ + 'headers' => [ + 'Content-Type' => 'application/xml', + ], + 'body' => fopen('/path/to/some.xml', 'r'), +]); + +echo $response->getContent(); + +``` + ## Status codes | code | description | |-|-|