- クライアントはリクエストヘッダで、
Accept: application/jsonとContent-Type: application/jsonを送る- リクエストボディも JSON
- サーバーはレスポンスヘッダで、
Content-Type: application/jsonを送る
- 入れなくて良い
- 必要になったらリクエストヘッダで
X-Api-Version: 1するとか考える
| #!/bin/sh | |
| ifs_backup=$IFS | |
| IFS=' | |
| ' | |
| for s in `networksetup -listallnetworkservices | sed -e '1d'`; do | |
| status=`networksetup -getautoproxyurl "$s" | grep 'Enabled' | sed -e 's/.*: //'` | |
| if test "$status" != "Yes"; then | |
| continue |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"> | |
| <style type="text/css"> | |
| div { | |
| position: absolute; | |
| border: none; | |
| } | |
| div:hover { |
| <div id="div1"></div> | |
| <div id="div2"></div> |
| <div id="div1"> | |
| <div id="div2"></div> | |
| </div> |
| div { | |
| position: absolute; | |
| border: none; | |
| } | |
| div:hover { | |
| background: green !important; | |
| } | |
| #div1 { | |
| top: 0; | |
| left: 0; |
| <?php | |
| $entries = include('https://example.com/mt/mt-data-api.cgi/v2/sites/1/entries.php'); | |
| foreach ($entries as $e) { | |
| // Do stuff | |
| } |
| sub vcl_fetch { | |
| if (req.url.ext == "html") { | |
| esi; | |
| } | |
| } |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"> | |
| <style type="text/css"> | |
| body { | |
| user-select: none; | |
| -moz-user-select: none; | |
| -webkit-user-select: none; | |
| -ms-user-select: none; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"> | |
| <style type="text/css"> | |
| button, | |
| button:focus | |
| button:active, | |
| button:hover { | |
| display: block; |