Download
Download Latest
Version Support Policy
Documentation
Documentation Home
Tutorial
Project
Governance
Branding
License
GitHub Repository
Community
Contribute to PHP
Online Communities
Events | Conferences
Mailing Lists
PHP 8.5
All Releases
Search docs
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Exceptions
Generators
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Filesystem Security
Database Security
Error Reporting
Using Register Globals
User Submitted Data
Magic Quotes
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
Safe Mode
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
Credit Card Processing
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
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
cURL 函数
PHP Manual
PHP Manual
»
cURL
»
cURL 函数
cURL 函数
目录
curl_close
— 关闭 cURL 会话
curl_copy_handle
— 复制 cURL 句柄及其所有选项
curl_errno
— 返回最后一次的错误代码
curl_error
— 返回当前会话最后一次错误的字符串
curl_escape
— 使用 URL 编码指定字符串
curl_exec
— 执行 cURL 会话
curl_getinfo
— 获取 cURL 连接资源句柄的信息
curl_init
— 初始化 cURL 会话
curl_multi_add_handle
— 添加普通 cURL 句柄到 cURL 多句柄
curl_multi_close
— 从多句柄中移除所有 cURL 句柄
curl_multi_errno
— 返回上一次 curl 批处理的错误码
curl_multi_exec
— 运行当前 cURL 句柄的子连接
curl_multi_getcontent
— 如果设置了 CURLOPT_RETURNTRANSFER,则返回 cURL 句柄的内容
curl_multi_info_read
— 获取当前传输的有关信息
curl_multi_init
— 返回新 cURL 批处理句柄
curl_multi_remove_handle
— 从一组 cURL 句柄中移除一个句柄
curl_multi_select
— 等待,直到任何 cURL 多句柄连接可以进行读取或写入
curl_multi_setopt
— 设置 cURL 并行选项
curl_multi_strerror
— 返回字符串描述的错误代码
curl_pause
— 暂停和取消暂停连接
curl_reset
— 重置一个 libcurl 会话句柄的所有的选项
curl_setopt
— 设置 cURL 传输选项
curl_setopt_array
— 为 cURL 传输会话批量设置选项
curl_share_close
— 关闭 cURL 共享句柄
curl_share_errno
— 返回共享 curl 句柄的最后一次错误编号
curl_share_init
— 初始化 cURL 共享句柄
curl_share_init_persistent
— 初始化 持久 cURL 共享句柄
curl_share_setopt
— 为 cURL 共享句柄设置选项
curl_share_strerror
— 返回错误编号对应的错误消息
curl_strerror
— 返回错误代码的字符串描述
curl_unescape
— 解码指定 URL 编码的字符串
curl_upkeep
— 执行连接保活检查
curl_version
— 获取 cURL 版本信息
↑
and
↓
to navigate •
Enter
to select •
Esc
to close •
/
to open
Press
Enter
without selection to search using Google