Post pobrano z: A Smarter HTTP Library For PHP – Requests
For PHP developers, there are 2 major ways to send HTTP requests: cURL or fsockopen. And, it is hard to know which one will be available in your/customer’s hosting.
Requests is a stable PHP library that uses cURL or fsockopen (depending on the availability) and provides a consistent API.
It simplifies sending requests, accepts HEAD, GET, POST, PUT, DELETE or PATCH and adding headers, form data + multipart files.
The library also works with international domain names, authentication, auto-decompressing gzipped responses and much more.
To sum up, Requests is a must-bookmark for easy-to-use and hosting-friendly HTTP requests.Advertisements:
ioDeck, a self-hosted and awesome PHP form generator.
Professional XHTML Admin Template ($15 Discount With The Code: WRD.)
SSLmatic – Cheap SSL Certificates (from $19.99/year)