Web студия "GrandView"
  Главная   Написать Контакты
   
   
О проекте
Руководство php
 

http_post_fields

(PECL)

http_post_fields -- Perform POST request with data to be encoded

Описание

string http_post_fields ( string url [, array data [, array files [, array options [, array &info]]]] )

Performs an HTTP POST request on the supplied url.

See http_get() for a full list of available parameters and options.

Список параметров

url

URL

data

Associative array of POST values

files

Array of files to post

options

Request options

info

Request/response information

Возвращаемые значения

Returns the HTTP response(s) as string on success, or FALSE on failure.



add a note add a note User Contributed Notes
http_post_fields
thomasxholder at compuserve dot de
07-Jan-2007 03:21
It was hard to figure out how to actually post files with this function. The "Array of files to post" is an array of associative arrays, each need the keys "name", "type" and "file". Consider this example code:

<?php
$files
= array(
    array(
       
'name' => 'somename',
       
'type' => 'text/plain',
       
'file' => $filename
   
)
);
$http_response = http_post_fields($url, $data, $files);
?>

http_put_data> <http_post_data
Last updated: Fri, 26 Jan 2007
 
 
Новости
11 июля 2007
Сайт запущен
© 2007 info@grandviewstudio.com

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330
Z058440144362 Z348613067571