post

post ( string url , map[string:string] _postData , boolean _activeComplexEncodingDetection , string _referer , proxy _proxy , map[string:string] _httpHeaders ) : string

Send a POST request. data is an associative array with key and values.

Example


post("http://site.com/page.php",
["name":"Doe" , "firstname":"John"]
)


See also

postBody
postFile
postBinary
httpHeader
httpHeaderClear
getPage

Parameters

url

_postData (optional)

map of data to send in the POST request.

_activeComplexEncodingDetection (optional)

default:false. If the destination page have encoding different to UTF-8.

_referer (optional)

Referer header. It is the origin page indicated.

_proxy (optional)

Useful in multi-thread context to directly indicate a proxy. You can have this proxy using "return_proxy" option in changeProxy.

_httpHeaders (optional)

HTTP Headers to force. Use that in multi-thread context. Else use just httpHeader before, it is simpler!