Simple Client is a developer tool for making simple HTTP GET and POST requests using Guzzle.
This is a simple HTTP client module, used primarily for fetching content from the internet.
If you are looking for additional normalisation, validation, URL parsing and construction functionality, you may like to use Link API in conjunction with this module.
Dependencies
Simple Client requires Guzzle to be present and autoloadable, which needs to be done via Composer. Two workable options for this are setting it up via Composer Vendor, or Composer Manager.
Why wrap Guzzle
Guzzle is a perfectly adept HTTP client, so why wrap it in another module? This is reasonably straightforward. Over several projects, I found that I needed to repeat the same wrapping code around Guzzle. Some of it is just request construction, but there is also error handling and other parts. The result is a "simple" client. Its not as powerful as a full Guzzle client implementaiotn, but its not as complicated to use either.
Usage