Zend_Http_Client::setEncType PHP Method

setEncType() public method

Set the encoding type for POST data
public setEncType ( string $enctype = self::ENC_URLENCODED ) : Zend_Http_Client
$enctype string
return Zend_Http_Client
    public function setEncType($enctype = self::ENC_URLENCODED)
    {
        $this->enctype = $enctype;
        return $this;
    }

Usage Example

 public function setupHttpClient(Zend_Http_Client $httpClient)
 {
     if (is_string($this->_currentContentType)) {
         $httpClient->setEncType($this->_currentContentType);
     } elseif (isset($this->getRestMethod()->contentType) && is_string($this->getRestMethod()->contentType)) {
         $httpClient->setEncType($this->getRestMethod()->contentType);
     } elseif ($this->getDefaultContentType()) {
         $httpClient->setEncType($this->getDefaultContentType());
     }
 }
All Usage Examples Of Zend_Http_Client::setEncType