You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Required credentials are a *Certificate Authority Certificate*, a *Client Certificate* and the password that is used to decrypt the Client Certificate that get provided to the class constructor as arguments.
290
290
291
291
```{php}
292
-
use BasicHttpClient\Request\Authentication\ClientCertificateAuthentication;
293
-
use BasicHttpClient\Request\Request;
292
+
use Markenwerk\BasicHttpClient\Request\Authentication\ClientCertificateAuthentication;
293
+
use Markenwerk\BasicHttpClient\Request\Request;
294
294
295
295
// Configuring the authentication
296
296
$clientCertificateAuthentication = new ClientCertificateAuthentication(
If using the `BasicHttpClient` the response object is returned by the termination methods listed above. If directly using the Request instance, you can get the Response object via a getter.
314
314
315
315
```{php}
316
-
// Getting the response BasicHttpClient\Response\Response object
316
+
// Getting the response Markenwerk\BasicHttpClient\Response\Response object
317
317
$response = $request->getResponse();
318
318
319
319
// Reading the HTTP status code as integer; will return `200`
// Reading the redirection URL if the server responds with an redirect HTTP header and
@@ -403,12 +403,12 @@ You can find more information about [PHP Common Exceptions at Github](https://gi
403
403
404
404
In general you should expect that any setter method could thrown an `\InvalidArgumentException`. The following exceptions could get thrown while using PHP Basic HTTP Client.
405
405
406
-
-`CommonException\IoException\FileNotFoundException` on configuring a `ClientCertificateAuthentication`instance
407
-
-`CommonException\IoException\FileReadableException` on configuring a `ClientCertificateAuthentication`instance
408
-
-`BasicHttpClient\Exception\HttpRequestAuthenticationException` on performing a request
409
-
-`BasicHttpClient\Exception\HttpRequestException` on performing a request
410
-
-`CommonException\NetworkException\ConnectionTimeoutException` on performing a request
411
-
-`CommonException\NetworkException\CurlException` on performing a request
406
+
-`Markenwerk\CommonException\IoException\FileNotFoundException` on configuring a `ClientCertificateAuthentication`instance
407
+
-`Markenwerk\CommonException\IoException\FileReadableException` on configuring a `ClientCertificateAuthentication`instance
408
+
-`Markenwerk\BasicHttpClient\Exception\HttpRequestAuthenticationException` on performing a request
409
+
-`Markenwerk\BasicHttpClient\Exception\HttpRequestException` on performing a request
410
+
-`Markenwerk\CommonException\NetworkException\ConnectionTimeoutException` on performing a request
411
+
-`Markenwerk\CommonException\NetworkException\CurlException` on performing a request
0 commit comments