Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP curl_getinfo Function

PHP curl_getinfo Function

PHP Calendar Reference Manual PHP cURL Reference Manual

(PHP 4 >= 4.0.4, PHP 5)

curl_getinfo — Get information about a cURL connection resource handle


Description


mixed curl_getinfo ( resource $ch [, int $opt = 0 ] )

Gets information about the last transfer.


Parameters

ch

A cURL handle returned by curl_init().

opt

This parameter may be one of the following constants:


Return Value

If opt is set, its value is returned as a string. Otherwise, an associative array containing the following elements (each corresponding to opt) is returned:


Changelog

Version Description
5.1.3 Introduced in**CURLINFO_HEADER_OUT**.

Example




PHP Calendar Reference Manual PHP cURL Reference Manual