CakePHP Cookbook Documentation 5.xReading the HTTP Method Restricting Which HTTP method an Action Accepts Reading HTTP Headers Trusting Proxy Headers Checking Accept Headers Reading Cookies Uploaded Files Manipulating URIs Response Response Using Basic Authentication Using Digest Authentication OAuth 1 Authentication OAuth 2 Authentication Proxy Authentication Creating Scoped Clients Setting and Managing Cookies Response Objects Response Reading request. Cake\Http\ServerRequest::clientIp() Returns the current visitor’s IP address. Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 4.x
Reading the HTTP Method Restricting Which HTTP method an Action Accepts Reading HTTP Headers Trusting Proxy Headers Checking Accept Headers Reading Cookies Uploaded Files Manipulating URIs Response Response Using Basic Authentication Using Digest Authentication OAuth 1 Authentication OAuth 2 Authentication Proxy Authentication Creating Scoped Clients Setting and Managing Cookies Response Objects Response Reading request. Cake\Http\ServerRequest::clientIp() Returns the current visitor’s IP address. Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 3.x
Reading the HTTP Method Restricting Which HTTP method an Action Accepts Reading HTTP Headers Trusting Proxy Headers Checking Accept Headers Cookies Response Dealing with Content Types Sending Files Sending Using Basic Authentication Using Digest Authentication OAuth 1 Authentication OAuth 2 Authentication Proxy Authentication Creating Scoped Clients Setting and Managing Cookies Response Objects Reading Response request. Cake\Http\ServerRequest::clientIp() Returns the current visitor’s IP address. Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook Documentation 5.xcurrent visitor’s IP address. Request 171 CakePHP Cookbook Documentation, Release 5.x Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often IP address in the X-Forwarded-For header providing it is the only value that isn’t from a trusted proxy. Checking Accept Headers Cake\Http\ServerRequest::accepts($type = null) Find out which content also use many other methods to fine-tune HTTP cache headers to take advantage of browser or reverse proxy caching. Response 177 CakePHP Cookbook Documentation, Release 5.x The Cache Control Header Ca0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
request. Cake\Http\ServerRequest::clientIp() Returns the current visitor’s IP address. Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often $scheme = $this->request->scheme(); $clientIp = $this->request->clientIp(); In addition to trusting proxy headers, applications operating behind a loadbalancer should define App.fullBaseUrl configuration IP address in the X-Forwarded-For header providing it is the only value that isn’t from a trusted proxy. Checking Accept Headers Cake\Http\ServerRequest::accepts($type = null) Find out which content0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 3.x
request. Cake\Http\ServerRequest::clientIp() Returns the current visitor’s IP address. Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often IP address in the X-Forwarded-For header providing it is the only value that isn’t from a trusted proxy. New in version 3.7.0: setTrustedProxies() was added. 272 Chapter 9. Request & Response Objects also use many other methods to fine-tune HTTP cache headers to take advantage of browser or reverse proxy caching. 278 Chapter 9. Request & Response Objects CakePHP Cookbook Documentation, Release 3.100 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 2.x
also use many other methods to fine-tune HTTP cache headers to take advantage of browser or reverse proxy caching. The Cache Control header New in version 2.1. Used under the expiration model, this header method. JsHelper::object($data, $options = array()) Serializes $data into JSON. This method is a proxy for json_encode() with a few extra features added via the $options parameter. Options: prefix - request headers. Using a HttpSocket with a proxy As part of auth configuration, you can configure proxy authentication. You can create your customized method to proxy authentication in the same class of authentication0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
also use many other methods to fine-tune HTTP cache headers to take advantage of browser or reverse proxy caching. The Cache Control header New in version 2.1. Used under the expiration model, this header method. JsHelper::object($data, $options = array()) Serializes $data into JSON. This method is a proxy for json_encode() with a few extra features added via the $options parameter. Options: • prefix request headers. Using a HttpSocket with a proxy As part of auth configuration, you can configure proxy authentication. You can create your customized method to proxy authentication in the same class of authentication0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













