Downloads
Documentation
Get Involved
Help
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
Introduction »
« Other Services
PHP Manual
Function Reference
Other Services
Change language:
English
Chinese (Simplified)
Other
Client URL Library
Introduction
Installing/Configuring
Requirements
Installation
Runtime Configuration
Resource Types
Predefined Constants
Examples
Basic curl example
cURL Functions
curl_close
— Close a cURL session
curl_copy_handle
— Copy a cURL handle along with all of its preferences
curl_errno
— Return the last error number
curl_error
— Return a string containing the last error for the current session
curl_escape
— URL encodes the given string
curl_exec
— Perform a cURL session
curl_getinfo
— Get information regarding a specific transfer
curl_init
— Initialize a cURL session
curl_multi_add_handle
— Add a normal cURL handle to a cURL multi handle
curl_multi_close
— Close a set of cURL handles
curl_multi_errno
— Return the last multi curl error number
curl_multi_exec
— Run the sub-connections of the current cURL handle
curl_multi_getcontent
— Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set
curl_multi_info_read
— Get information about the current transfers
curl_multi_init
— Returns a new cURL multi handle
curl_multi_remove_handle
— Remove a multi handle from a set of cURL handles
curl_multi_select
— Wait for activity on any curl_multi connection
curl_multi_setopt
— Set a cURL multi option
curl_multi_strerror
— Return string describing error code
curl_pause
— Pause and unpause a connection
curl_reset
— Reset all options of a libcurl session handle
curl_setopt_array
— Set multiple options for a cURL transfer
curl_setopt
— Set an option for a cURL transfer
curl_share_close
— Close a cURL share handle
curl_share_errno
— Return the last share curl error number
curl_share_init
— Initialize a cURL share handle
curl_share_setopt
— Set an option for a cURL share handle
curl_share_strerror
— Return string describing the given error code
curl_strerror
— Return string describing the given error code
curl_unescape
— Decodes the given URL encoded string
curl_upkeep
— Performs any connection upkeep checks
curl_version
— Gets cURL version information
CurlHandle
— The CurlHandle class
CurlMultiHandle
— The CurlMultiHandle class
CurlShareHandle
— The CurlShareHandle class
CURLFile
— The CURLFile class
CURLFile::__construct
— Create a CURLFile object
CURLFile::getFilename
— Get file name
CURLFile::getMimeType
— Get MIME type
CURLFile::getPostFilename
— Get file name for POST
CURLFile::setMimeType
— Set MIME type
CURLFile::setPostFilename
— Set file name for POST
CURLStringFile
— The CURLStringFile class
CURLStringFile::__construct
— Create a CURLStringFile object
Improve This Page
Learn How To Improve This Page
•
Submit a Pull Request
•
Report a Bug
+
add a note
User Contributed Notes
There are no user contributed notes for this page.