http_post_fields()
http_post_fields - Perform POST request with data to be encoded
Syntax
string http_post_fields (
string $url,
array $data,
array $files,
array $options,
array &$info)
Arguments
- url - URL
- data - Associative array of POST values
- files - Array of files to post
- options - request options
- info - Request/response information
Description
Performs an HTTP POST request on the supplied url.
Version
PHP PECL pecl_http >= 0.10.0
Return value
Returns the HTTP response(s) as string on success, or FALSE on failure.