setCookieFile

setCookieFile ( string url , array[string] _data , string _referer , int _frequency_refresh , map _files , array _files_names ) : void

Set a cookie generated by a page with multipart method. Usefull to simulate a login procedure. Returns the source code of the page.

See also

setCookieValue
setCookieBody

Parameters

url

URL of the page, or the page of the form (ex: form for login)

_data (optional)

associative array of string with the content of the form

_referer (optional)

referer header. It is the origin page indicated.

_frequency_refresh (optional)

if you set 1000, this function is bypassed 999 times on 1000

_files (optional)

Paths of files to attach to the POST request. Keys of map are for field name.

_files_names (optional)

Indexes of files_names must correspond with files.