This function is here for two reasons:
1. For advanced user who would like to set their own data, already encoded
2. For backwards compatibilty: If someone uses the old post($data) method.
this method will be used to set the encoded data.
$data can also be stream (such as file) from which the data will be read.
public setRawData ( string | resource $data, string $enctype = null ) : Zend_Http_Client | ||
$data | string | resource | |
$enctype | string | |
return | Zend_Http_Client |