wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_remote_request › WordPress Function
Since2.7.0
已弃用n/a
› wp_remote_request ( $url, $args = array() )
| 参数: (2) |
|
| 查看: |
|
| 返回: |
|
| 定义在: |
|
| 文档: |
Performs an HTTP request and returns its response.
There are other API functions available which abstract away the HTTP method: - Default 'GET' for wp_remote_get() - Default 'POST' for wp_remote_post() - Default 'HEAD' for wp_remote_head() Important: If the URL is user-controlled, usewp_safe_remote_request() instead.Related Functions: wp_safe_remote_request, wp_remote_get, wp_get_user_request, wp_create_user_request, wp_remote_post