You can use a library to run a http request. Similar to using HTTP-Connector.
Many examples on the forum.