{"id":822,"date":"2013-10-13T19:46:35","date_gmt":"2013-10-13T11:46:35","guid":{"rendered":"http:\/\/www.yeetrack.com\/?p=822"},"modified":"2013-10-13T19:46:35","modified_gmt":"2013-10-13T11:46:35","slug":"httpclient4-3%e6%95%99%e7%a8%8b-%e7%ac%ac%e4%b8%89%e7%ab%a0-http%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.yeetrack.com\/?p=822","title":{"rendered":"HttpClient4.3\u6559\u7a0b \u7b2c\u4e09\u7ae0 Http\u72b6\u6001\u7ba1\u7406"},"content":{"rendered":"<p><meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\" \/><br \/>\n<a name=\"HTTP-state-management\"><\/a><br \/>\n\u6700\u521d\uff0cHttp\u88ab\u8bbe\u8ba1\u6210\u4e00\u4e2a\u65e0\u72b6\u6001\u7684\uff0c\u9762\u5411\u8bf7\u6c42\/\u54cd\u5e94\u7684\u534f\u8bae\uff0c\u6240\u4ee5\u5b83\u4e0d\u80fd\u5728\u903b\u8f91\u76f8\u5173\u7684http\u8bf7\u6c42\/\u54cd\u5e94\u4e2d\u4fdd\u6301\u72b6\u6001\u4f1a\u8bdd\u3002\u7531\u4e8e\u8d8a\u6765\u8d8a\u591a\u7684\u7cfb\u7edf\u4f7f\u7528http\u534f\u8bae\uff0c\u5176\u4e2d\u5305\u62echttp\u4ece\u6765\u6ca1\u6709\u60f3\u652f\u6301\u7684\u7cfb\u7edf\uff0c\u6bd4\u5982\u7535\u5b50\u5546\u52a1\u7cfb\u7edf\u3002\u56e0\u6b64\uff0chttp\u652f\u6301\u72b6\u6001\u7ba1\u7406\u5c31\u5f88\u5fc5\u8981\u4e86\u3002<\/p>\n<p>\u5f53\u65f6\u7684web\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u8f6f\u4ef6\u9886\u5148\u8005\uff0c\u7f51\u666f(netscape)\u516c\u53f8\uff0c\u6700\u5148\u5728\u4ed6\u4eec\u7684\u4ea7\u54c1\u4e2d\u652f\u6301http\u72b6\u6001\u7ba1\u7406\uff0c\u5e76\u4e14\u5236\u5b9a\u4e86\u4e00\u4e9b\u4e13\u6709\u89c4\u8303\u3002\u540e\u6765\uff0c\u7f51\u666f\u901a\u8fc7\u53d1\u89c4\u8303\u8349\u6848\uff0c\u89c4\u8303\u4e86\u8fd9\u4e00\u673a\u5236\u3002\u8fd9\u4e9b\u52aa\u529b\u4fc3\u6210 RFC standard track\u5236\u5b9a\u4e86\u6807\u51c6\u7684\u89c4\u8303\u3002\u4f46\u662f\uff0c\u73b0\u5728\u591a\u6570\u7684\u5e94\u7528\u7684\u72b6\u6001\u7ba1\u7406\u673a\u5236\u90fd\u5728\u4f7f\u7528\u7f51\u666f\u516c\u53f8\u7684\u89c4\u8303\uff0c\u800c\u7f51\u666f\u7684\u89c4\u8303\u548c\u5b98\u65b9\u89c4\u5b9a\u662f\u4e0d\u517c\u5bb9\u7684\u3002\u56e0\u6b64\u6240\u6709\u7684\u6d4f\u89c8\u5668\u5f00\u53d1\u8fd9\u90fd\u88ab\u8feb\u517c\u5bb9\u8fd9\u4e24\u79cd\u534f\u8bae\uff0c\u4ece\u800c\u5bfc\u81f4\u534f\u8bae\u7684\u4e0d\u7edf\u4e00\u3002<\/p>\n<p><a name=\"HTTP-cookies\"><\/a><\/p>\n<h2>3.1.Http cookies<\/h2>\n<p>\u6240\u8c13\u7684Http cookie\u5c31\u662f\u4e00\u4e2atoken\u6216\u8005\u5f88\u77ed\u7684\u62a5\u6587\u4fe1\u606f\uff0chttp\u4ee3\u7406\u548c\u670d\u52a1\u5668\u53ef\u4ee5\u901a\u8fc7cookie\u6765\u7ef4\u6301\u4f1a\u8bdd\u72b6\u6001\u3002\u7f51\u666f\u7684\u5de5\u7a0b\u5e08\u628a\u5b83\u4eec\u79f0\u4f5c\u201cmagic cookie\u201d\u3002<!--more--><\/p>\n<p>HttpClient\u4f7f\u7528<code>Cookie<\/code>\u63a5\u53e3\u6765\u4ee3\u8868cookie\u3002\u7b80\u5355\u8bf4\u6765\uff0ccookie\u5c31\u662f\u4e00\u4e2a\u952e\u503c\u5bf9\u3002\u4e00\u822c\uff0ccookie\u4e5f\u4f1a\u5305\u542b\u7248\u672c\u53f7\u3001\u57df\u540d\u3001\u8def\u5f84\u548ccookie\u6709\u6548\u671f\u3002<\/p>\n<p><code>SetCookie<\/code>\u63a5\u53e3\u53ef\u4ee5\u4ee3\u8868\u670d\u52a1\u5668\u53d1\u7ed9http\u4ee3\u7406\u7684\u4e00\u4e2aset-cookie\u54cd\u5e94\u5934\uff0c\u5728\u6d4f\u89c8\u5668\u4e2d\uff0c\u8fd9\u4e2aset-cookie\u54cd\u5e94\u5934\u53ef\u4ee5\u5199\u5165cookie\uff0c\u4ee5\u4fbf\u4fdd\u6301\u4f1a\u8bdd\u72b6\u6001\u3002<code>SetCookie2<\/code>\u63a5\u53e3\u5bf9<code>SetCookie<\/code>\u63a5\u53e3\u8fdb\u884c\u4e86\u62d3\u5c55\uff0c\u6dfb\u52a0\u4e86<code>Set-Cookie2<\/code>\u65b9\u6cd5\u3002<\/p>\n<p><code>ClientCookie<\/code>\u63a5\u53e3\u7ee7\u627f\u4e86<code>Cookie<\/code>\u63a5\u53e3\uff0c\u5e76\u8fdb\u884c\u4e86\u529f\u80fd\u62d3\u5c55\uff0c\u6bd4\u5982\u5b83\u53ef\u4ee5\u53d6\u51fa\u670d\u52a1\u5668\u53d1\u9001\u8fc7\u6765\u7684\u539f\u59cbcookie\u7684\u503c\u3002\u751f\u6210\u5934\u6d88\u606f\u662f\u5f88\u91cd\u8981\u7684\uff0c\u56e0\u4e3a\u53ea\u6709\u5f53cookie\u88ab\u6307\u5b9a\u4e3a<code>Set-Cookie<\/code>\u6216\u8005<code>Set-Cookie2<\/code>\u65f6\uff0c\u5b83\u624d\u9700\u8981\u5305\u62ec\u4e00\u4e9b\u7279\u5b9a\u7684\u5c5e\u6027\u3002<\/p>\n<p><a name=\"HTTP-cookies\"><\/a><\/p>\n<h3>3.1.1Cookies\u7248\u672c<\/h3>\n<p>\u517c\u5bb9\u7f51\u666f\u7684\u89c4\u8303\uff0c\u4f46\u662f\u4e0d\u517c\u5bb9\u5b98\u65b9\u89c4\u8303\u7684cookie\uff0c\u662f\u7248\u672c0. \u517c\u5bb9\u5b98\u65b9\u89c4\u8303\u7684\u7248\u672c\uff0c\u5c06\u4f1a\u662f\u7248\u672c1\u3002\u7248\u672c1\u4e2d\u7684Cookie\u53ef\u80fd\u548c\u7248\u672c0\u5de5\u4f5c\u673a\u5236\u6709\u5dee\u5f02\u3002<\/p>\n<p>\u4e0b\u9762\u7684\u4ee3\u7801\uff0c\u521b\u5efa\u4e86\u7f51\u666f\u7248\u672c\u7684Cookie\uff1a<\/p>\n<pre><code>    BasicClientCookie netscapeCookie = new BasicClientCookie(\"name\", \"value\");\n    netscapeCookie.setVersion(0);\n    netscapeCookie.setDomain(\".yeetrack.com\");\n    netscapeCookie.setPath(\"\/\");\n<\/code><\/pre>\n<p>\u4e0b\u9762\u7684\u4ee3\u7801\uff0c\u521b\u5efa\u6807\u51c6\u7248\u672c\u7684Cookie\u3002\u6ce8\u610f\uff0c\u6807\u51c6\u7248\u672c\u7684Cookie\u5fc5\u987b\u4fdd\u7559\u670d\u52a1\u5668\u53d1\u9001\u8fc7\u6765\u7684Cookie\u6240\u6709\u5c5e\u6027\u3002<\/p>\n<pre><code>    BasicClientCookie stdCookie = new BasicClientCookie(\"name\", \"value\");\n    stdCookie.setVersion(1);\n    stdCookie.setDomain(\".yeetrack.com\");\n    stdCookie.setPath(\"\/\");\n    stdCookie.setSecure(true);\n    \/\/ Set attributes EXACTLY as sent by the server \n    stdCookie.setAttribute(ClientCookie.VERSION_ATTR, \"1\");\n    stdCookie.setAttribute(ClientCookie.DOMAIN_ATTR, \".yeetrack.com\");\n<\/code><\/pre>\n<p>\u4e0b\u9762\u7684\u4ee3\u7801\uff0c\u521b\u5efa\u4e86<code>Set-Cookie2<\/code>\u517c\u5bb9cookie\u3002<\/p>\n<pre><code>    BasicClientCookie2 stdCookie = new BasicClientCookie2(\"name\", \"value\");\n    stdCookie.setVersion(1);\n    stdCookie.setDomain(\".yeetrack.com\");\n    stdCookie.setPorts(new int[] {80,8080});\n    stdCookie.setPath(\"\/\");\n    stdCookie.setSecure(true);\n    \/\/ Set attributes EXACTLY as sent by the server \n    stdCookie.setAttribute(ClientCookie.VERSION_ATTR, \"1\");\n    stdCookie.setAttribute(ClientCookie.DOMAIN_ATTR, \".yeetrack.com\");\n    stdCookie.setAttribute(ClientCookie.PORT_ATTR, \"80,8080\");\n<\/code><\/pre>\n<p><a name=\"Cookie-specifications\"><\/a><\/p>\n<h2>3.2. Cookie\u89c4\u8303<\/h2>\n<p><code>CookieSpec<\/code>\u63a5\u53e3\u4ee3\u8868\u4e86Cookie\u7ba1\u7406\u89c4\u8303\u3002Cookie\u7ba1\u7406\u89c4\u8303\u89c4\u5b9a\u4e86\uff1a<\/p>\n<ul>\n<li>\u89e3\u6790<code>Set-Cookie<\/code>\u548c<code>Set-Cookie2<\/code>(\u53ef\u9009\uff09\u5934\u6d88\u606f\u7684\u89c4\u5219<\/li>\n<li>\u9a8c\u8bc1Cookie\u7684\u89c4\u5219<\/li>\n<li>\u5c06\u6307\u5b9a\u7684\u4e3b\u673a\u540d\u3001\u7aef\u53e3\u548c\u8def\u5f84\u683c\u5f0f\u5316\u6210Cookie\u5934\u6d88\u606f<\/li>\n<\/ul>\n<p>HttpClient\u6709\u4e0b\u9762\u51e0\u79cd<code>CookieSpec<\/code>\u89c4\u8303\uff1a<\/p>\n<ul>\n<li><strong>Netscape draft:<\/strong> \u8fd9\u79cd\u7b26\u5408\u7f51\u666f\u516c\u53f8\u6307\u5b9a\u7684\u89c4\u8303\u3002\u4f46\u662f\u5c3d\u91cf\u4e0d\u8981\u4f7f\u7528\uff0c\u9664\u975e\u4e00\u5b9a\u8981\u4fdd\u8bc1\u517c\u5bb9\u5f88\u65e7\u7684\u4ee3\u7801\u3002<\/li>\n<li><strong>Standard:<\/strong> RFC 2965 HTTP\u72b6\u6001\u7ba1\u7406\u89c4\u8303<\/li>\n<li><strong>Browser compatibility:<\/strong> \u8fd9\u79cd\u65b9\u5f0f\uff0c\u5c3d\u91cf\u6a21\u4eff\u5e38\u7528\u7684\u6d4f\u89c8\u5668\uff0c\u5982IE\u548cfirefox<\/li>\n<li><strong>Best match:<\/strong> 'Meta' cookie specification that picks up a cookie policy based on the format of cookies sent with the HTTP response.\u5b83\u57fa\u672c\u4e0a\u5c06\u4e0a\u9762\u7684\u51e0\u79cd\u89c4\u8303\u79ef\u805a\u5230\u4e00\u4e2a\u7c7b\u4e2d\u3002<br \/>\n++ <strong>Ignore cookies:<\/strong> \u5ffd\u7565\u6240\u6709Cookie<br \/>\n\u5f3a\u70c8\u63a8\u8350\u4f7f\u7528<strong>Best Match<\/strong>\u5339\u914d\u89c4\u5219\uff0c\u8ba9HttpClient\u6839\u636e\u8fd0\u884c\u65f6\u73af\u5883\u81ea\u5df1\u9009\u62e9\u5408\u9002\u7684\u89c4\u8303\u3002<\/li>\n<\/ul>\n<p><a name=\"Choosing-cookie-policy\"><\/a><\/p>\n<h2>3.3.\u9009\u62e9Cookie\u7b56\u7565<\/h2>\n<p>\u6211\u4eec\u53ef\u4ee5\u5728\u521b\u5efaHttp client\u7684\u65f6\u5019\u6307\u5b9aCookie\u6d4b\u8bd5\uff0c\u5982\u679c\u9700\u8981\uff0c\u4e5f\u53ef\u4ee5\u5728\u6267\u884chttp\u8bf7\u6c42\u7684\u65f6\u5019\uff0c\u8fdb\u884c\u8986\u76d6\u6307\u5b9a\u3002<\/p>\n<pre><code>    RequestConfig globalConfig = RequestConfig.custom()\n            .setCookieSpec(CookieSpecs.BEST_MATCH)\n            .build();\n    CloseableHttpClient httpclient = HttpClients.custom()\n            .setDefaultRequestConfig(globalConfig)\n            .build();\n    RequestConfig localConfig = RequestConfig.copy(globalConfig)\n            .setCookieSpec(CookieSpecs.BROWSER_COMPATIBILITY)\n            .build();\n    HttpGet httpGet = new HttpGet(\"https:\/\/www.yeetrack.com\");\n    httpGet.setConfig(localConfig);\n<\/code><\/pre>\n<p><a name=\"Custom-cookie-policy\"><\/a><\/p>\n<h2>3.4.\u81ea\u5b9a\u4e49Cookie\u7b56\u7565<\/h2>\n<p>\u5982\u679c\u6211\u4eec\u8981\u81ea\u5b9a\u4e49Cookie\u6d4b\u8bd5\uff0c\u5c31\u8981\u81ea\u5df1\u5b9e\u73b0<code>CookieSpec<\/code>\u63a5\u53e3\uff0c\u7136\u540e\u521b\u5efa\u4e00\u4e2a<code>CookieSpecProvider<\/code>\u63a5\u53e3\u6765\u65b0\u5efa\u3001\u521d\u59cb\u5316\u81ea\u5b9a\u4e49<code>CookieSpec<\/code>\u63a5\u53e3\uff0c\u6700\u540e\u628a<code>CookieSpecProvider<\/code>\u6ce8\u518c\u5230HttpClient\u4e2d\u3002\u4e00\u65e6\u6211\u4eec\u6ce8\u518c\u4e86\u81ea\u5b9a\u4e49\u7b56\u7565\uff0c\u5c31\u53ef\u4ee5\u50cf\u5176\u4ed6\u6807\u51c6\u7b56\u7565\u4e00\u6837\u4f7f\u7528\u4e86\u3002<\/p>\n<pre><code>    CookieSpecProvider easySpecProvider = new CookieSpecProvider() {\n\n        public CookieSpec create(HttpContext context) {\n\n            return new BrowserCompatSpec() {\n                @Override\n                public void validate(Cookie cookie, CookieOrigin origin)\n                        throws MalformedCookieException {\n                    \/\/ Oh, I am easy\n                }\n            };\n        }\n\n    };\n    Registry&lt;CookieSpecProvider&gt; r = RegistryBuilder.&lt;CookieSpecProvider&gt;create()\n            .register(CookieSpecs.BEST_MATCH,\n                new BestMatchSpecFactory())\n            .register(CookieSpecs.BROWSER_COMPATIBILITY,\n                new BrowserCompatSpecFactory())\n            .register(\"easy\", easySpecProvider)\n            .build();\n\n    RequestConfig requestConfig = RequestConfig.custom()\n            .setCookieSpec(\"easy\")\n            .build();\n\n    CloseableHttpClient httpclient = HttpClients.custom()\n            .setDefaultCookieSpecRegistry(r)\n            .setDefaultRequestConfig(requestConfig)\n            .build();\n<\/code><\/pre>\n<p><a name=\"Cookie-persistence\"><\/a><\/p>\n<h2>3.5.Cookie\u6301\u4e45\u5316<\/h2>\n<p>HttpClient\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u5b58\u50a8\u65b9\u5f0f\u7684cookie store\uff0c\u53ea\u8981\u8fd9\u4e2acookie store\u5b9e\u73b0\u4e86<code>CookieStore<\/code>\u63a5\u53e3\u3002\u9ed8\u8ba4\u7684CookieStore\u901a\u8fc7<code>java.util.ArrayList<\/code>\u7b80\u5355\u5b9e\u73b0\u4e86<code>BasicCookieStore<\/code>\u3002\u5b58\u5728\u5728<code>BasicCookieStore<\/code>\u4e2d\u7684Cookie\uff0c\u5f53\u8f7d\u4f53\u5bf9\u8c61\u88ab\u5f53\u505a\u5783\u573e\u56de\u6536\u6389\u540e\uff0c\u5c31\u4f1a\u4e22\u5931\u3002\u5982\u679c\u5fc5\u8981\uff0c\u7528\u6237\u53ef\u4ee5\u81ea\u5df1\u5b9e\u73b0\u66f4\u4e3a\u590d\u6742\u7684\u65b9\u5f0f\u3002<\/p>\n<pre><code>    \/\/ \u521b\u5efaCookieStore\u5b9e\u4f8b\n    CookieStore cookieStore = new BasicCookieStore();\n    \/\/ \u65b0\u5efa\u4e00\u4e2aCookie\n    BasicClientCookie cookie = new BasicClientCookie(\"name\", \"value\");\n    cookie.setVersion(0);\n    cookie.setDomain(\".mycompany.com\");\n    cookie.setPath(\"\/\");\n    cookieStore.addCoo\n    \/\/\u5c06CookieStore\u8bbe\u7f6e\u5230httpClient\u4e2d\n    CloseableHttpClient httpclient = HttpClients.custom()\n            .setDefaultCookieStore(cookieStore)\n            .build();\n<\/code><\/pre>\n<p><a name=\"HTTP-state-management-and-execution-context\"><\/a><\/p>\n<h2>3.6.HTTP\u72b6\u6001\u7ba1\u7406\u548c\u6267\u884c\u4e0a\u4e0b\u6587<\/h2>\n<p>\u5728Http\u8bf7\u6c42\u6267\u884c\u8fc7\u7a0b\u4e2d\uff0cHttpClient\u4f1a\u81ea\u52a8\u5411\u6267\u884c\u4e0a\u4e0b\u6587\u4e2d\u6dfb\u52a0\u4e0b\u9762\u7684\u72b6\u6001\u7ba1\u7406\u5bf9\u8c61\uff1a<\/p>\n<ul>\n<li><code>Lookup<\/code>\u5bf9\u8c61 \u4ee3\u8868\u5b9e\u9645\u7684cookie\u89c4\u8303registry\u3002\u5728\u5f53\u524d\u4e0a\u4e0b\u6587\u4e2d\u7684\u8fd9\u4e2a\u503c\u4f18\u5148\u4e8e\u9ed8\u8ba4\u503c\u3002<\/li>\n<li><code>CookieSpec<\/code>\u5bf9\u8c61 \u4ee3\u8868\u5b9e\u9645\u7684Cookie\u89c4\u8303\u3002<\/li>\n<li><code>CookieOrigin<\/code>\u5bf9\u8c61 \u4ee3\u8868\u5b9e\u9645\u7684origin server\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/li>\n<li><code>CookieStore<\/code>\u5bf9\u8c61 \u8868\u793aCookie store\u3002\u8fd9\u4e2a\u5c5e\u6027\u96c6\u4e2d\u7684\u503c\u4f1a\u53d6\u4ee3\u9ed8\u8ba4\u503c\u3002<\/li>\n<\/ul>\n<p>\u672c\u5730\u7684<code>HttpContext<\/code>\u5bf9\u8c61\u53ef\u4ee5\u7528\u6765\u5728Http\u8bf7\u6c42\u6267\u884c\u524d\uff0c\u81ea\u5b9a\u4e49Http\u72b6\u6001\u7ba1\u7406\u4e0a\u4e0b\u6587;\u6216\u8005\u6d4b\u8bd5http\u8bf7\u6c42\u6267\u884c\u5b8c\u6bd5\u540e\u4e0a\u4e0b\u6587\u7684\u72b6\u6001\u3002\u6211\u4eec\u4e5f\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u7ebf\u7a0b\u4e2d\u4f7f\u7528\u4e0d\u540c\u7684\u6267\u884c\u4e0a\u4e0b\u6587\u3002\u6211\u4eec\u5728http\u8bf7\u6c42\u5c42\u6307\u5b9a\u7684cookie\u89c4\u8303\u96c6\u548ccookie store\u4f1a\u8986\u76d6\u5728http Client\u5c42\u7ea7\u7684\u9ed8\u8ba4\u503c\u3002<\/p>\n<pre><code>    CloseableHttpClient httpclient = &lt;...&gt;\n\n    Lookup&lt;CookieSpecProvider&gt; cookieSpecReg = &lt;...&gt;\n    CookieStore cookieStore = &lt;...&gt;\n\n    HttpClientContext context = HttpClientContext.create();\n    context.setCookieSpecRegistry(cookieSpecReg);\n    context.setCookieStore(cookieStore);\n    HttpGet httpget = new HttpGet(\"http:\/\/somehost\/\");\n    CloseableHttpResponse response1 = httpclient.execute(httpget, context);\n    &lt;...&gt;\n    \/\/ Cookie origin details\n    CookieOrigin cookieOrigin = context.getCookieOrigin();\n    \/\/ Cookie spec used\n    CookieSpec cookieSpec = context.getCookieSpec();\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u521d\uff0cHttp\u88ab\u8bbe\u8ba1\u6210\u4e00\u4e2a\u65e0\u72b6\u6001\u7684\uff0c\u9762\u5411\u8bf7\u6c42\/\u54cd\u5e94\u7684\u534f\u8bae\uff0c\u6240\u4ee5\u5b83\u4e0d\u80fd\u5728\u903b\u8f91\u76f8\u5173\u7684http\u8bf7\u6c42\/\u54cd\u5e94\u4e2d\u4fdd\u6301\u72b6\u6001\u4f1a\u8bdd\u3002\u7531\u4e8e\u8d8a\u6765\u8d8a\u591a\u7684\u7cfb\u7edf\u4f7f\u7528http\u534f\u8bae\uff0c\u5176\u4e2d\u5305\u62echttp\u4ece\u6765\u6ca1\u6709\u60f3\u652f\u6301\u7684\u7cfb\u7edf\uff0c\u6bd4\u5982\u7535\u5b50\u5546\u52a1&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","footnotes":""},"categories":[33],"tags":[8,15,7,5,42,13],"class_list":["post-822","post","type-post","status-publish","format-standard","hentry","category-coding","tag-java","tag-15","tag-7","tag-5","tag-42","tag-13"],"views":18750,"_links":{"self":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/822","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=822"}],"version-history":[{"count":1,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/822\/revisions"}],"predecessor-version":[{"id":823,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/822\/revisions\/823"}],"wp:attachment":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=822"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=822"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}