《Slides Dev Web》 06. HTTP & AJAX
se/fr/ 1 Codes de réponse • 1xx : Information • 2xx : Succès • 3xx : Redirection • 4xx : Erreur Client • 5xx : Erreur Serveur Méthodes HTTP (verbes) • GET : Demander une ressource • POST : Création onreadystatechange • responseText, responseXML • open (Verbe, URI, async) : – Verbe HTTP : “GET”, “POST” ou “PUT” – URI : destinataire de la requête – async (bool) : true = asynchrone, false = bloquant • send (null ax_load 13https://code.tutsplus.com/tutorials/jquery-succinctly-jquery-and-ajax--net-33856 6 – Client : Construire des URL uniques14 – Serveur : Envoi d’entêtes15 interdisant le cache MyXhr.open("GET"0 码力 | 11 页 | 91.09 KB | 1 年前3
Laravel 6.0 中文文档features: - blackfire: server_id: "server_id" server_token: "server_value" client_id: "client_id" client_token: "client_value" - cassandra: true - chronograf: true - couchdb: true - crystal: true "server_value" 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 90 client_id: "client_id" client_token: "client_value" Blackfire 服务器凭证和客户端凭证需要用户去 Blackfire 注册账号 获取,Blackfire 提供了多个方案来分析应用,包括一个客户端工具 ]; print_r($output);exit(); } exit('未获取到上传文件或上传过程出错'); }); 我们可以使用 Chrome 浏览器扩展 Advanced REST Client 工具 (或者 Postman)来演示 POST 表单提交: 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 2670 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.6 中文文档request from any HTTP verb'; }); 测试 GET 请求的时候直接在浏览器中输入请求地址即可,测试 POST 请求可以通过客户端工具,比如 Advanced REST Client,该工具可以在 Chrome 应用商店下载到,此外如果上面的路由是定义在 routes/web.php 的话,在测试 POST 请求之前,需要将对应路由取消 CSRF 保护检查, 否则会返回 419 print_r($output);exit(); } exit('未获取到上传文件或上传过程出错'); }); 我们还是使用 Advanced REST Client 工具来演示 POST 表单提交: 本文档由 Laravel 学院提供 Laravel 学院致力于提供优质 Laravel 中文学习资源:http://laravelacademy Redis 配置位于配置文件 config/database.php。在这个文件中,可以看到包含被应用使用的 Redis 服务器的 redis 数组: 'redis' => [ 'client' => 'predis', 'default' => [ 'host' => env('REDIS_HOST', 'localhost'), 'password'0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档权请求通过后重定向到的 URL。 passport:client 命令 创建客户端最简单的方式就是使用 Artisan 命令 passport:client ,该命令可用于创建你自己的 客户端以方便测试 OAuth2 功能。当你运行 client 命令时,Passport 会提示你关于客户端的更多 信息,并且为你提供 client ID 和 secret: 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 272 php artisan passport:client JSON API 由于用户不能使用 client 命令,Passport 提供了一个 JSON API 用于创建客户端,这省去了你手动 编写控制器用于创建、更新以及删除客户端的麻烦。 不过,你需要配对 Passport 当客户端被创建后,会附带一个 client ID 和 secret,这两个值会在请求访问令牌时用到。客户端 创建路由会返回新的客户端实例: 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 273 const data = { name: 'Client Name',0 码力 | 691 页 | 9.37 MB | 1 年前3
《Slides Dev Web》 11. HTTPS
données – Eviter que des tiers ne puissent voir les données • Authentification du client (optionnelle) – Assurer que le client est celui qu’il prétend être • Pour un site web, ces services sont fournis par Authentification serveur + intégrité données – Confidentialité des données – Authentification optionnelle du client • Certificats (clé publique associée au certificat) Rôle d’un certificat • Garantir le lien entre HTTPS 1. Le client demande une page sécurisée 2. Le serveur émet sa clé publique et son certificat 3. Le client vérifie la validité du certificat (et qu’il correspond au site) 4. Le client utilise la clé0 码力 | 6 页 | 109.17 KB | 1 年前3
Laravel 5.0 Documentation
can see, if the given age is less than 200 , the middleware will return an HTTP redirect to the client; otherwise, the request will be passed further into the application. To pass the request deeper an authentication code, meaning they will be considered invalid if they have been changed by the client. $value = Request::cookie('name'); The cookie helper serves as a simple factory for generating Pusher client into a class: Client as PusherClient; class CreateOrderHandler { /** * The Pusher SDK client instance0 码力 | 242 页 | 1.44 MB | 1 年前3
Learning Laravelhost - shared hosting account). You can use: C-panel : which would be the slowest option • FTP Client: like FileZilla to connect to you shared hosting account and transfer your files and folders through Example Client as DropboxClient; use League\Flysystem\Dropbox\DropboxAdapter; use Illuminate\Support\ServiceProvider; $config) { $client = new DropboxClient($config['accessToken'], $config['clientIdentifier']); return new Filesystem(new DropboxAdapter($client)); }); https://riptutorial0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.1 中文文档blackfire: - id: your-server-id token: your-server-token client-id: your-client-id client-token: your-client-token 配置好Blackfire 的凭证之后,在 Homestead 目录下使用 vagrant provision重新指配盒子。 在此之前,确保你已经查看过 linkedin, google, github 或 bitbucket, 这取决于应用需要的提供者。例如: 'github' => [ 'client_id' => 'your-github-app-id', 'client_secret' => 'your-github-app-secret', 'redirect' => 'http://your-callback-url' Client as DropboxClient; use Illuminate\Support\ServiceProvider; use League\Flysystem\Dropbox\DropboxAdapter;0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档blackfire: - id: your-server-id token: your-server-token client-id: your-client-id client-token: your-client-token 配置好 Blackfire 的凭证之后,在 Homestead 目录下使用 vagrant provision 重新启动 linkedin, google, github 或 bitbucket,这取决于应用需要的提供者。例如: 'github' => [ 'client_id' => 'your-github-app-id', 'client_secret' => 'your-github-app-secret', 'redirect' => 'http://your-callback-url' 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 247 use Dropbox\Client as DropboxClient; use Illuminate\Support\ServiceProvider; use League\Flysystem\Dropbox\DropboxAdapter;0 码力 | 377 页 | 4.56 MB | 1 年前3
《Slides Dev Web》 12. Risques applicatifs
modifier les données • Présence possible à tous les niveaux d’un système – Application – Serveur et Client – OS – SGBD, … • Responsabilité des développeurs : – OS, serveurs, langages : patches rapidement (html et script) 10https://fr.wikipedia.org/wiki/Injection_SQL 3 • Exécution par le navigateur du client Cross Site Scripting (XSS) • Enjeux : tout ce qui est possible en JS – Redirection – Lecture de0 码力 | 12 页 | 474.37 KB | 1 年前3
共 14 条
- 1
- 2













