PHP Modules Tutorials - Herong's Tutorial Examples - v5.18, by Herong Yang
cURL Module - Client for URL
This chapter provides tutorial examples and notes on cURL module for making HTTP (and other protocol) requests. Topics include creating a cURL handle; sending network request; setting request options; making HTTP POST requests; getting transaction information and error.
These sections are omitted from this Web preview version. To view the full content, see information on how to obtain the full version this book.
cURL Module and libcurl Library
curl_exec() - Execute cURL Sessions
CURLOPT_RETURNTRANSFER - Return URL Content
CURLOPT_HEADER - Include Response Header
CURLOPT_FOLLOWLOCATION - Follow Redirect Location
CURLOPT_VERBOSE - Print Debugging Messages
CURLOPT_POST - Send HTTP POST Request
curl_getinfo() - Get Transaction Info
curl_error() - Get Transaction Error
Takeaways:
Table of Contents
Introduction and Installation of PHP
Managing PHP Engine and Modules on macOS
Managing PHP Engine and Modules on CentOS
DOM Module - Parsing HTML Documents
GD Module - Manipulating Images and Pictures
MySQLi Module - Accessing MySQL Server
OpenSSL Module - Cryptography and SSL/TLS Toolkit
PCRE Module - Perl Compatible Regular Expressions
SOAP Module - Creating and Calling Web Services
SOAP Module - Server Functions and Examples