Package ca.uqac.lif.cep.http
Class HttpGateway
java.lang.Object
ca.uqac.lif.cep.http.HttpGateway
Utility methods for handling HTTP requests.
- Author:
- Sylvain Hall�
-
Field Summary
Fields -
Method Summary
-
Field Details
-
s_userAgent
- See Also:
-
-
Method Details
-
sendGet
Sends a GET request to a specified URL- Parameters:
url- The URL- Returns:
- The string of the HTTP response
- Throws:
IOException- If something goes wrong with the requestURISyntaxException- If the URL is malformed
-
sendPost
Sends a POST request to a specified URL- Parameters:
url- The URLpayload- The request's payload- Returns:
- The string of the HTTP response
- Throws:
IOException- If something goes wrong with the requestURISyntaxException- If the URL is malformed
-