Making HTTP requests using QCurl
QCurl plugin offers offers a way make HTTP requests to get a remote webpage. It wrapps the Curl library
within the QCubed framework. This is basically a wrapper for a class I have found
at
http://php.net/manual/en/book.curl.php
Using it is really simple:
- Create an instance of the the QCurl class, passing in the target URL as a parameter to the constructor
- Set parameters, for example: proxy server you'd like to use, or whether the HTTP request is to be sent using POST or GET
- Perform the actual the HTTP request by calling makeHttpRequest() on your QCurl object
- Fetch the response; inspect the HTTP response code and errors, if any.
PROXY (leave blank if none is required):