Query: http_post_fields
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
HTTP_POST_FIELDS(3) 1 HTTP_POST_FIELDS(3) http_post_fields - Perform POST request with data to be encodedSYNOPSISstring http_post_fields (string $url, array $data, [array $files], [array $options], [array &$info])DESCRIPTIONPerforms an HTTP POST request on the supplied url. See the full list of request options.PARAMETERSo $url - URL o $data - Associative array of POST values o $files - Array of files to post o $options -request options o $info -Request/response informationRETURN VALUESReturns the HTTP response(s) as string on success, or FALSE on failure.EXAMPLESExample #1 A http_post_fields(3) example <?php $fields = array( 'name' => 'mike', 'pass' => 'se_ret' ); $files = array( array( 'name' => 'uimg', 'type' => 'image/jpeg', 'file' => './profile.jpg', ) ); $response = http_post_fields("http://www.example.com/", $fields, $files); ?> PHP Documentation Group HTTP_POST_FIELDS(3)
Related Man Pages |
---|
http::request::common5.18(3) - mojave |
http::request::common(3) - osx |
http-context-options(3) - php |
http_get(3) - php |
http::request::common(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Rules for Homework & Coursework Questions Forum |
UNIX.COM 2017 Year End Summary |
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1) |
Denial Of Service Attack Update |