Zend Gdata PUT request

Reference at Zend_Gdata.
Currently, GData only allow POST as request method and not PUT, issue link

PUT is needed! We can just use the existing post method. :D Here is what I modify (for the time being)

public function post($xml, $uri = null) { return $this->request($xml, $uri, 'POST'); } public function put($xml, $uri = null) { return $this->request($xml, $uri, 'PUT'); } public function request($xml, $uri = null, $method = 'POST') { .. $response = $this->_httpClient->request($method);

The original post method is renamed to request with an additional argument $method and also replacing those ‘POST’ with $method.


One Comment

  1. sky
    Posted March 29, 2007 at 9:39 pm | Permalink

    For windows, need to enable openssl in php.ini (need to use https)
    extension=php_openssl.dll

Post a Comment

Your email is never shared. Required fields are marked *

*
*