couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Getting_started_with_PHP" by VicMetcalfe
Date Thu, 07 Apr 2011 12:33:21 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Getting_started_with_PHP" page has been changed by VicMetcalfe.
The comment on this change is: Extra $request .= "\r\n"; under authorization caused authenticated
posts to break with an extra CRLF between the authorization and content length headers.  Not
needed due to else under if($post_data)..
http://wiki.apache.org/couchdb/Getting_started_with_PHP?action=diff&rev1=20&rev2=21

--------------------------------------------------

  
        if ($this->user) {
           $request .= "Authorization: Basic ".base64_encode("$this->user:$this->pass")."\r\n";

-          $request .= "\r\n"; 
        }
  
        if($post_data) {

Mime
View raw message