{"id":3932,"date":"2016-06-08T10:49:52","date_gmt":"2016-06-08T02:49:52","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=3932"},"modified":"2016-06-08T10:50:15","modified_gmt":"2016-06-08T02:50:15","slug":"%e6%9d%82%e8%b0%88thttpclient","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=3932","title":{"rendered":"[\u6742\u8c08]THTTPClient \u5f02\u5e38\u4fe1\u606f\u4e2d\u79fb\u9664\u82f1\u6587\u90e8\u5206"},"content":{"rendered":"<p>\u4e00\u6bb5\u4ee3\u7801\uff0c\u5206\u89e3\u4e0b THttpClient \u629b\u51fa\u5f02\u5e38\u65f6\u7684\u9519\u8bef\u5185\u5bb9\uff0c\u4ee5\u4fbf\u53bb\u6389\u524d\u9762\u7684 Error %errorcode% access\u00a0accessing to %url%:\uff0c\u53ea\u53d6\u540e\u9762\u7684\u5b9e\u9645\u9519\u8bef\u6d88\u606f\u5185\u5bb9\u3002<\/p>\n<pre class=\"lang:delphi decode:true \">function RemoveExceptionUrl(S: String): String;\r\n  var\r\n    p: PQCharW;\r\n  begin\r\n    if S = SNetHttpClientUnknownError then\r\n      Result := '\u672a\u77e5\u9519\u8bef\uff1a\u6267\u884c\u8bf7\u6c42\u65f6\u5f02\u5e38\u4e2d\u6b62'\r\n    else if StartWithW(PQCharW(S), 'Error ', false) then\r\n    begin\r\n      p := PQCharW(S);\r\n      p := StrStrW(p, ': ');\r\n      if Assigned(p) then\r\n      begin\r\n        Inc(p, 2);\r\n        Result := p;\r\n      end\r\n      else\r\n        Result := S;\r\n    end\r\n    else\r\n      Result := S;\r\n  end;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u6bb5\u4ee3\u7801\uff0c\u5206\u89e3\u4e0b THttpClient [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[],"class_list":["post-3932","post","type-post","status-publish","format-standard","hentry","category-delphi"],"views":2381,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3932"}],"version-history":[{"count":2,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3932\/revisions"}],"predecessor-version":[{"id":3934,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3932\/revisions\/3934"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}