Package org.glassfish.main.itest.tools
Class HttpClient10
java.lang.Object
org.glassfish.main.itest.tools.HttpClient10
HTTP client using the HTTP 1.0 protocol, allowing to break some standards.
Useful for testing of server reactions to malformed or obsoleted requests.
Example: Request with nonstandard method, prohibited in later HTTP versions.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSends the HTTP 1.0 request and reads the response.
-
Constructor Details
-
HttpClient10
- Parameters:
url- target endpoint.user-password-
-
-
Method Details
-
send
Sends the HTTP 1.0 request and reads the response.- Parameters:
method- GET/PUT/... or your custom method.content- the body- Returns:
HttpClient10.HttpResponse- Throws:
Exception
-