Lines Matching refs:client

15   protected $client = null;  variable in helper_plugin_webdavclient
28 $this->client = new DokuHTTPClient();
29 $client_headers = $this->client->headers;
83 $resp = $this->client->sendRequest($path, $data, 'PUT');
84 if($this->client->status == 201)
89 $this->lastErr = 'Error adding calendar entry, server reported status '.$this->client->status;
112 $resp = $this->client->sendRequest($path, $data, 'PUT');
113 if($this->client->status == 204)
118 … $this->lastErr = 'Error editing calendar entry, server reported status '.$this->client->status;
141 $resp = $this->client->sendRequest($path, '', 'DELETE');
142 if($this->client->status == 204)
147 … $this->lastErr = 'Error deleting calendar entry, server reported status '.$this->client->status;
288 $resp = $this->client->sendRequest($path, $data, 'PUT');
289 if($this->client->status == 201)
294 … $this->lastErr = 'Error adding addressbook entry, server reported status '.$this->client->status;
318 $resp = $this->client->sendRequest($path, $data, 'PUT');
319 if($this->client->status == 204)
324 … $this->lastErr = 'Error editing addressbook entry, server reported status '.$this->client->status;
347 $resp = $this->client->sendRequest($path, '', 'DELETE');
348 if($this->client->status == 204)
353 …$this->lastErr = 'Error deleting addressbook entry, server reported status '.$this->client->status;
574 $this->client->sendRequest($uri, $data, 'PROPFIND');
575 switch($this->client->status)
586 array_unshift($urilist, $this->client->resp_headers['location']);
622 $this->client->sendRequest($uri, $data, 'PROPFIND');
623 if($this->client->status == 207)
641 $this->client->sendRequest($uri, $data, 'PROPFIND');
642 if($this->client->status == 207)
678 $this->client->sendRequest($uri, $data, 'PROPFIND');
843 $resp = $this->client->sendRequest($conn['uri']);
844 if(($this->client->status >= 400) || ($this->client->status < 200))
846 dbglog('Error: Status reported was ' . $this->client->status);
847 $this->lastErr = "Error: Server reported status ".$this->client->status;
850 $caldata = $this->client->resp_body;
1072 $resp = $this->client->sendRequest($conn['uri'], $data, 'REPORT');
1121 $this->client->user = $conn['username'];
1122 $this->client->pass = $conn['password'];
1123 $this->client->http = '1.1';
1124 $this->client->max_redirect = $redirect;
1126 $this->client->keep_alive = false;
1129 $this->client->headers = $this->client_headers;
1131 $this->client->headers[$header] = $content;
1133 $this->client->headers['Content-Type'] = $ct;
1135 $this->client->headers['Depth'] = $depth;
1137 $this->client->headers['Content-Length'] = $cl;
1201 $resp = $this->client->sendRequest($conn['uri'], $data, 'REPORT');
1214 if(($this->client->status >= 400) || ($this->client->status < 200))
1216 dbglog('Error: Status reported was ' . $this->client->status);
1217 $this->lastErr = "Error: Server reported status ".$this->client->status;
1221 dbglog($this->client->status);
1222 dbglog($this->client->error);
1224 $response = $this->clean_response($this->client->resp_body);