{"id":208845,"date":"2020-11-24T06:36:30","date_gmt":"2020-11-23T22:36:30","guid":{"rendered":"http:\/\/4563.org\/?p=208845"},"modified":"2020-11-24T06:36:30","modified_gmt":"2020-11-23T22:36:30","slug":"%e6%b1%82%e5%8a%a9-%e5%85%b3%e4%ba%8e-php-%e4%b8%ad-curl-%e6%a8%a1%e6%8b%9f%e6%b5%8f%e8%a7%88%e5%99%a8%e6%8f%90%e4%ba%a4-post-%e8%af%b7%e6%b1%82-%e5%b8%ae%e5%bf%99%e8%a7%a3%e7%ad%94%e9%80%81-cloudfla","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=208845","title":{"rendered":"\u6c42\u52a9 \u5173\u4e8e PHP \u4e2d curl \u6a21\u62df\u6d4f\u89c8\u5668\u63d0\u4ea4 POST \u8bf7\u6c42 [\u5e2e\u5fd9\u89e3\u7b54\u9001 CloudFlarePro \u8ba2\u9605]"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6c42\u52a9 \u5173\u4e8e PHP \u4e2d curl \u6a21\u62df\u6d4f\u89c8\u5668\u63d0\u4ea4 POST \u8bf7\u6c42 [\u5e2e\u5fd9\u89e3\u7b54\u9001 CloudFlarePro \u8ba2\u9605]               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CloudRaft <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h3>\u524d\u60c5<\/h3>\n<p>\u4f5c\u4e3a\u4e00\u4e2a\u534a\u8def\u51fa\u5bb6\u7684\u4f2a\u7a0b\u5e8f\u5458\uff0c\u770b\u7740 API \u624b\u518c\u5199\u4e00\u4e9b\u7b80\u5355\u7684\u6a21\u5757\u8fd8\u662f\u53ef\u4ee5\u7684\uff0c\u4f46\u662f\u78b0\u5230\u8fd9\u79cd\u6ca1\u6709 API \u7684\u60c5\u51b5\u5c31\u4e00\u8138\u61f5\u903c\u4e86&#8230;\u6ca1\u4ec0\u4e48\u62ff\u5f97\u51fa\u624b\u7684\uff0c\u613f\u610f\u5e2e\u5fd9\u770b\u770b\u7684\u5c31<strong>\u9001 10 \u57df\u540d\u7248 CloudFlarePro(Plesk)\u957f\u671f\u8ba2\u9605<\/strong>\uff0c\u4ea7\u54c1\u7684\u5177\u4f53\u4ecb\u7ecd\uff1ahttps:\/\/docs.cloudraft.cn\/webhosting\/cdn\/cloudflare\/<\/p>\n<p>\u76ee\u524d\u6211\u5728\u5199\u8fd9\u4e2a CloudFlare-Plesk \u5bf9\u63a5 Zkeys(ThinkPHP)\u7684\u63d2\u4ef6,\u539f\u672c\u903b\u8f91\u548c WHMCS \u7684\u4e00\u6837\u5c31\u662f\u5f00\u901a pelsk \u8d26\u6237+\u5f00\u901a\u5957\u9910\uff0c\u7136\u540e\u7528\u6237\u9700\u8981\u767b\u5f55\u5230 plesk \u8bbe\u7f6e cf \u7684\u90ae\u7bb1\u548c\u57df\u540d\u3002\u73b0\u5728\u8fd9\u4e9b\u529f\u80fd\u5df2\u7ecf\u90fd\u5b9e\u73b0\u4e86\uff0c\u5728 Zkeys \u4e2d\u7528\u6237\u53ef\u4ee5\uff1a [\u5f00\u901a Plesk \u8d26\u6237] -&gt; [\u5f00\u901a\u8ba2\u9605] -&gt; [\u6dfb\u52a0 Plesk \u57df\u540d] -&gt; [\u751f\u6210\u5355\u70b9\u767b\u5f55\u94fe\u63a5]<\/p>\n<p>\u4f46\u662f\u60f3\u66f4\u8fdb\u4e00\u6b65\uff1a<strong>\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u5728 Zkey \u7cfb\u7edf\u4e2d\u76f4\u63a5\u7ed1\u5b9a CloudFlare \u7684\u8d26\u6237\u4ee5\u53ca\u6fc0\u6d3b CloudFlare \u7684\u57df\u540d\u670d\u52a1<\/strong>\u3002\u4f46\u662f plesk \u7684\u6269\u5c55\u63d2\u4ef6\u662f\u6ca1\u6709 API \u7684\uff0c\u9700\u8981 curl \u53bb\u6a21\u62df\u7528\u6237\u7684\u6d4f\u89c8\u5668\u64cd\u4f5c\u3002\u5149\u662f\u6dfb\u52a0 cookies \u597d\u50cf\u8fd8\u4e0d\u884c\uff0c\u5df2\u7ecf\u628a\u6d4f\u89c8\u5668\u8bf7\u6c42\u7684 header \u5168\u90e8\u52a0\u8fdb\u53bb\u4e86\u8fd8\u662f\u4e0d\u884c&#8230;<\/p>\n<p>\u6709\u5174\u8da3\u5c1d\u8bd5\u7684\u53ef\u4ee5\u7ed9 10 \u57df\u540d\u7248\u6478\u7d22\u6478\u7d22\uff0c\u5982\u679c\u80fd\u901a\u8fc7 curl (bash)\u5b8c\u6210\u7ed1\u5b9a\u57df\u540d\u548c\u6dfb\u52a0\u57df\u540d\u7684\u6b65\u9aa4\u5219<strong>\u957f\u671f\u514d\u8d39\u63d0\u4f9b\u65e0\u9650\u57df\u540d\u7248<\/strong>\u4ee5\u793a\u611f\u8c22\u3002<\/p>\n<h3>\u9700\u6c42<\/h3>\n<p>\u5df2\u6709\u5ba2\u6237 cookies\/\u767b\u9646\u94fe\u63a5\uff0c\u9700\u8981\u5b9e\u73b0<\/p>\n<ol>\n<li>\n<p>\u7ed1\u5b9a\u90ae\u7bb1 <img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201129_5fc3fbb013387.png\" alt=\"\u6c42\u52a9 \u5173\u4e8e PHP \u4e2d curl \u6a21\u62df\u6d4f\u89c8\u5668\u63d0\u4ea4 POST \u8bf7\u6c42 [\u5e2e\u5fd9\u89e3\u7b54\u9001 CloudFlarePro \u8ba2\u9605]\" \/><\/p>\n<\/li>\n<li>\n<p>\u6fc0\u6d3b Pro \u8ba2\u9605 <img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201129_5fc3fbb53bfe0.png\" alt=\"\u6c42\u52a9 \u5173\u4e8e PHP \u4e2d curl \u6a21\u62df\u6d4f\u89c8\u5668\u63d0\u4ea4 POST \u8bf7\u6c42 [\u5e2e\u5fd9\u89e3\u7b54\u9001 CloudFlarePro \u8ba2\u9605]\" \/><\/p>\n<\/li>\n<\/ol>\n<h3>\u9886\u53d6\u3001\u767b\u5f55\u53ca\u914d\u7f6e<\/h3>\n<ol>\n<li>https:\/\/my.cloudraft.cn \u6ce8\u518c\u540e(\u65e0\u9700\u5b9e\u540d)\u7ed1\u5b9a\u90ae\u7bb1\uff0c\u6ce8\u518c\u65f6\u53ef\u4ee5\u770b\u5230\u81ea\u5df1\u7684\u4f1a\u5458 ID<\/li>\n<li>\u8bbf\u95eehttps:\/\/my.cloudraft.cn\/user\/cfpro\/registerPlesk \u51fa\u73b0 result=true \u8868\u660e\u5f00\u901a plesk \u6210\u529f<\/li>\n<li>\u672c\u8d34\u4e2d<strong>\u56de\u590d\u4f1a\u5458 ID<\/strong>\uff0c\u6211\u4f1a\u5c3d\u5feb\u7ed9\u5f00\u901a 10 \u57df\u540d\u5957\u9910(\u5957\u9910\u4e0d\u8bbe\u6709\u6548\u671f)\uff0c\u5e0c\u671b\u5927\u4f6c\u4eec\u5e2e\u5e2e\u5fd9\uff0c\u53e6\u5916\u5982\u679c\u4e0d\u662f\u8981\u5e2e\u5fd9\u89e3\u51b3\u95ee\u9898\u7684\u8bdd\u5c31\u4e0d\u8981\u9886\u53d6\u4e86\uff0c\u4e0d\u8bbe\u9650\u5236\u662f\u76f8\u4fe1\u5404\u4f4d\u3002<\/li>\n<li>\u8bbf\u95eehttps:\/\/my.cloudraft.cn\/user\/cfpro\/getUserLogin \u83b7\u53d6\u5355\u70b9\u767b\u5f55\u94fe\u63a5<\/li>\n<li>cloudflare \u63d2\u4ef6\u7ba1\u7406\u9875\uff1ahttps:\/\/plesk-eu-6.cloudraft.cn:8443\/modules\/servershield\/index.php \u8fd9\u91cc\u9700\u8981\u8fdb\u884c(1)\u7ed1\u5b9a cloudflare \u8d26\u6237(2)\u5c06\u57df\u540d\u7684 Pro \u8ba2\u9605\u6fc0\u6d3b<\/li>\n<\/ol><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>30<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4345763\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wjhjd163 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f1a\u5458 ID 1100503<br \/>\u611f\u8c22!                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345764\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ooh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6253\u5f00 Chrome \u8c03\u8bd5\u5de5\u5177 \u590d\u5236 curl \u8bf7\u6c42 \u518d\u627e\u4e00\u4e2a PHP curl \u4f8b\u5b50\u7167\u7740\u6284                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345765\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zst <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6d4f\u89c8\u5668\u4e0a\u9762\u5f00\u53d1\u8005\u5de5\u5177\u91cc\u9762 network \u627e\u5230\u8bf7\u6c42\u53f3\u952e\u590d\u5236\u4e3a curl \u7136\u540e\u7528 https:\/\/curl.trillworks.com\/ \u8fd9\u4e2a\u7f51\u7ad9\u8f6c\u4e3a php \u4ee3\u7801\u518d\u6539\u4e00\u4e0b cookies \u5e94\u8be5\u53ef\u4ee5\u4e86\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345766\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CloudRaft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ooh \u8bd5\u8fc7\u4e86\uff0c\u628a\u6d4f\u89c8\u5668\u4e2d\u8bf7\u6c42\u590d\u5236\u6210 curl \u7136\u540e\u6539\u6210 php\uff0c\u4f46\u662f\u8fd8\u662f\u4e0d\u884c&#8230;\u53e6\u5916\u770b\u5230\u9664\u4e86\u4e3b\u9875\u9762\u7684\u8bf7\u6c42\u5916\u8fd8\u6709 xhr \u548c ws\uff0c\u5b8c\u5168\u8fdb\u5165\u77e5\u8bc6\u76f2\u533a&#8230;<\/p>\n<p>&#8220;`<br \/>public function getUserLogin()<br \/> {<br \/> $userInfo = $this-&gt;checkZkeysStatus();<br \/> $plesk_user = md5($userInfo[&#8216;id&#8217;].$this-&gt;md5key);<br \/> $params = &#8220;{ &#8220;params&#8221;: [ &#8220;&#8211;get-login-link&#8221;, &#8220;-user&#8221;, &#8220;&#8221;.$plesk_user.&#8221;&#8221; ]}&#8221;;<br \/> $result = $this-&gt;_getRest(&#8216;cli\/admin\/call&#8217;,$params);<br \/> return $result[&#8216;stdout&#8217;];<br \/> }<\/p>\n<p>protected function getUserCookies()<br \/> {<br \/> $login_url = $this-&gt;getUserLogin();<br \/> $ch = curl_init();<br \/> $plesk_cookie_jar = &#8216;\/tmp\/cfpro_cookie_&#8217;.$plesk_user.&#8217;.txt&#8217;;<br \/> header(&#8220;Content-Type:text\/html;charset=utf-8&#8221;);<br \/> curl_setopt($ch, CURLOPT_URL, $login_url);<br \/> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br \/> curl_setopt($ch, CURLOPT_POST, 1);<br \/> curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);<br \/> curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);<br \/> curl_setopt($ch, CURLOPT_COOKIEJAR, $plesk_cookie_jar);<br \/> curl_setopt($ch, CURLOPT_COOKIEFILE, $plesk_cookie_jar);<br \/> $result = curl_exec($ch);<br \/> curl_close($ch);<br \/> return $plesk_cookie_jar;<br \/> }<\/p>\n<p>\/\/\u5c31\u662f\u8fd9\u4e00\u6b65\u51fa\u95ee\u9898\u4e86<br \/>public function bindCF($cfemail,$cfpass)<br \/> {<br \/> $userInfo = $this-&gt;checkZkeysStatus();<br \/> $zoneInfo = M(&#8216;cloudflare&#8217;)-&gt;find([&#8216;user_id&#8217; =&gt; $userInfo[&#8216;id&#8217;]]);<br \/> $activate_url = &#8216;\/modules\/servershield\/index.php\/index\/&#8217;;<br \/> $post = array(&#8216;simple&#8217;=&gt;1,&#8217;cfemail&#8217;=&gt;$cfemail, &#8216;cfpass&#8217;=&gt;$cfpass);<br \/> $plesk_cookie_jar = $this-&gt;getUserCookies();<br \/> header(&#8220;Content-Type: application\/x-www-form-urlencoded&#8221;);<br \/> curl_setopt($ch, CURLOPT_URL, $activate_url);<br \/> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br \/> curl_setopt($ch, CURLOPT_POST, 1);<br \/> curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);<br \/> curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);<br \/> curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));<br \/> curl_setopt($ch, CURLOPT_COOKIEFILE, $plesk_cookie_jar);<br \/> $result = curl_exec($ch);<br \/> curl_close($ch);<br \/> return json_decode($result, true);<br \/> }<br \/>&#8220;`                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345767\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CloudRaft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zst \u8c22\u8c22\u56de\u590d\uff0c\u8fd9\u4e2a\u5df2\u7ecf\u8bd5\u8fc7\u4e86\uff0c\u60a8\u53ef\u4ee5\u770b\u770b\u4e0a\u9762\u6211\u7684\u4ee3\u7801\u3002\u540c\u65f6\u5de5\u5177\u91cc\u9762\u8fd8\u6709 WS \u548c XHR\uff0c\u53ef\u80fd\u4e5f\u548c\u8bf7\u6c42\u6709\u5173<br \/>![4W8u.png]( https:\/\/iuimg.com\/images\/2020\/11\/25\/4W8u.png)<br \/>![4Qrf.png]( https:\/\/iuimg.com\/images\/2020\/11\/25\/4Qrf.png)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345768\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : boboliu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8def\u8fc7\u63d0\u4fe9\u601d\u8def\uff1a<br \/>1. \u76f4\u63a5\u65e0\u5934\u5927\u6cd5\u597d<br \/>2. \u53ef\u4ee5\u8003\u8651\u7ed9 plesk \u670d\u52a1\u7aef\u6293\u5305\u770b\u770b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345769\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : isukkaw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5728 V2EX \u95ee\u5982\u4f55\u5012\u5356 Cloudflare WAF Plus Plan \u8fd8\u884c\uff0c\u771f\u5f53 Cloudflare \u9500\u552e\u4e0d\u4e0a V2EX \uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345770\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CloudRaft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @boboliu \u6211\u4e5f\u60f3\u7740\u5b9e\u5728\u641e\u4e0d\u5b9a\u7684\u8bdd\u5c31 headless chrome\uff0c\u4f46\u662f\u60f3\u7740\u53c8\u8981\u591a\u4e2a\u5bb9\u5668\uff0c\u540e\u7eed\u7ef4\u62a4\u4e5f\u633a\u9ebb\u70e6\u7684\u3002<br \/>\u8bdd\u8bf4\u6ca1\u600e\u4e48\u63a5\u89e6\u8fc7\u8fd9\u65b9\u9762\uff0c\u6c42\u95ee\u4ece plesk \u90a3\u8fb9\u6293\u5305\u548c\u6d4f\u89c8\u5668\u91cc\u770b\u8bf7\u6c42\u4f1a\u6709\u5dee\u522b\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345771\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CloudRaft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @isukkaw plesk \u672c\u6765\u5c31\u662f\u5206\u9500\u7cfb\u7edf\u554a\uff0cservershield \u4e5f\u662f\u6211\u4eec\u6b63\u89c4\u91c7\u8d2d\u7684\u6388\u6743\uff0c\u8fd9\u4e9b\u8fdb\u884c\u9500\u552e\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\u5427\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345772\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : boboliu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @CloudRaft \u4e3b\u8981\u662f\u770b\u4f60\u8fd9\u8bf7\u6c42\u90fd\u53d1\u5230\u4f60 self host \u7684 plesk \u670d\u52a1\u5668\u4e86\uff0c\u770b\u8d77\u6765\u8fd8\u633a\u590d\u6742\u7684\uff0c\u8fd9\u9aa8\u5934\u660e\u663e\u8981\u66f4\u786c<\/p>\n<p>\u4ece\u670d\u52a1\u7aef\u4e0a\u6293\u5305\u7684\u8bdd\u591a\u534a\u662f\u53d1\u5230 plesk \u548c \/\u6216 cf \u7684 api \u8bf7\u6c42\uff0c\u5c31\u6709\u5f88\u5927\u7684\u51e0\u7387\u66f4\u597d\u5543                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345773\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : donwa <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u662f xhr \u7684\u8bdd\u8fd8\u597d\uff0c\u5982\u679c\u4f60\u6000\u7591\u8fd8\u548c ws \u6709\u5173\uff0cphp \u4e0d\u597d\u5904\u7406\uff0c\u5176\u5b9e\u53ef\u4ee5\u6362\u4e2a\u601d\u8def\u3002<\/p>\n<p>\u770b\u4f60\u622a\u56fe\u57df\u540d\u90fd\u662f\u81ea\u5df1\u7684\uff0c\u6ca1\u6709\u8de8\u7ad9\u95ee\u9898\u3002<\/p>\n<p>\u7528 iframe \u5305\u542b\u63d0\u4ea4\u9875\u9762\uff0c\u63d2\u5165 js \u811a\u672c\uff0c\u6a21\u62df\u70b9\u51fb\u3002(\u5f53\u7136\u8981\u786e\u4fdd\u6ca1\u5237\u5355\u95ee\u9898)                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345774\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ChaiXingXing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u7528\u8fd9\u4e2a\u4e1c\u897f\u8bd5\u8bd5\uff1a https:\/\/incarnate.github.io\/curl-to-php\/                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345775\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sxbxjhwm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u63a8\u8350\u6211\u81ea\u5df1\u5c01\u88c5\u7684 Curl \u6a21\u5757 https:\/\/github.com\/jshensh\/phpCurlClass\uff0c\u91cc\u8fb9\u6709\u4e00\u4e2a curl2php.html \u53ef\u4ee5\u76f4\u63a5\u5c06 curl \u547d\u4ee4\u8f6c\u6210\u4f60\u9700\u8981\u7684\u8bed\u53e5\u3002Curl \u547d\u4ee4\u7684\u83b7\u53d6\u53ef\u4ee5\u4ece Chrome \u6d4f\u89c8\u5668\u5f00\u53d1\u8005\u5de5\u5177 &#8211;&gt; Network \u91cc\u6293\u53d6\u5230\uff0c\u76f4\u63a5\u5728\u9700\u8981\u6a21\u62df\u7684\u8fde\u63a5\u4e0a\u53f3\u952e\uff0c\u9009\u62e9 Copy &#8211;&gt; Copy ad cURL (bash) \u5373\u53ef                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345776\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CloudRaft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @donwa 666 \uff01\u8fd9\u4e2a\u597d\u50cf\u53ef\u884c\uff01\u6211\u8fd9\u5c31\u53bb\u8bd5\u8bd5\u770b\uff0c\u5982\u679c\u9700\u8981 CF \u7684\u8ba2\u9605\u968f\u65f6 @\u6211~                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345777\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tms <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e94\u6708\u4efd\u5728\u4f60\u5bb6\u4e70\u7684 CloudFlarePlesk\uff0c\u8fd8\u662f\u65e7\u7684\u7528\u6237\u4e2d\u5fc3\u624d\u80fd\u767b\u9646\uff0c\u9700\u8981\u91cd\u65b0\u6ce8\u518c\u65b0\u7248\u7528\u6237\u4e2d\u5fc3\u4e48\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345778\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tms <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u5df2\u7ecf\u7ed1\u5b9a\u8fc7\u8d26\u53f7\u4e86\uff0c\u6240\u4ee5\u53ea\u80fd\u53bb servershield \u5173\u4e86\u4e00\u4e0b\u53c8\u5f00\u4e86\u4e00\u4e0b\uff0c\u53d1\u73b0 firehose.us-west-2.amazonaws.com \u7684\u8bf7\u6c42\u5185\u5bb9\u9664\u4e86\u65f6\u95f4\u6233\u4ee5\u5916\u90fd\u662f\u4e00\u6837\u7684\u3002<br \/>\u4e5f\u6ca1\u53d1\u73b0 ws\uff0c\u53ea\u6709\u5230 modules\/servershield\/servershield.php?simple=1 \u8fd9\u4e2a POST \u6709\u7528\u3002<br \/>\u5f00\u901a\u57df\u540d\u53ea\u8981 POST \u8fd9\u4e2a plesk_zone_name=\u57df\u540d&amp;plesk_rec_name=\u8bb0\u5f55\u540d&amp;act=zone_rec_set \u8fc7\u53bb\u5c31\u53ef\u4ee5\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345779\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tms <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5b9e\u6d4b ws \u5728\u6fc0\u6d3b\u64cd\u4f5c\u7684\u65f6\u5019\u6ca1\u6709\u4efb\u4f55\u4f5c\u7528\u3002\u7ed1\u5b9a\u56e0\u4e3a\u6ca1\u6709\u8d26\u53f7\u6d4b\u4e0d\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345780\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tms <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5b9e\u6d4b\u6fc0\u6d3b\u6709\u6548                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345781\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tms <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ![image.png]( https:\/\/i.loli.net\/2020\/11\/26\/hVzxwA5jP46uvRX.png)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345782\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CloudRaft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @tms \u611f\u8c22\u5927\u4f6c\uff01\u80fd\u63d0\u4f9b\u4e0b my cloudraft cn \u7684\u4f1a\u5458 ID \u5417\uff1f\u8fd9\u8fb9\u5e2e\u60a8\u5f00\u4e00\u4e2a\u8d26\u6237\u8bd5\u8bd5\uff08\u5e76\u5949\u4e0a\u65e0\u9650\u57df\u540d\u7248\u8ba2\u9605\uff09\uff0c\u8fd9\u4e2a post \u6211\u5c1d\u8bd5\u7528 postman \u7ed1\u5b9a CF \u7684\u90ae\u7bb1\u4e00\u76f4\u662f\u5931\u8d25\u7684\uff0c\u5927\u4f6c\u5e2e\u5fd9\u770b\u770b\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345783\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tms <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u597d\u50cf\u53ea\u6709\u8001\u7248\u672c\u7684 cloudraft \u8d26\u6237\uff0c\u4ece\u65e7\u7684\u7528\u6237\u4e2d\u5fc3\u624d\u80fd\u767b\u9646\uff0c\u9700\u8981\u91cd\u65b0\u6ce8\u518c\u4e00\u4e2a\u65b0\u7248\u8d26\u6237\u4e48\u3002<br \/>\u6211\u8bd5\u4e86\u4e00\u4e0b\u6fc0\u6d3b\u548c\u53d6\u6d88\u6fc0\u6d3b\uff0c\u90fd\u4e0d\u9700\u8981 ws\uff0c<br \/>\u4e5f\u4e0d\u9700\u8981\u7ba1 firehose \u7684\u8bf7\u6c42 \uff0c\u8fd9\u4e2a\u662f\u884c\u4e3a\u7edf\u8ba1\u5206\u6790\u7528\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345784\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CloudRaft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @tms \u662f\u9700\u8981\u65b0\u6ce8\u518c\u4e00\u4e2a\u7684\uff0c\u8f9b\u82e6\u5566\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345785\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tms <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f1a\u5458 ID\uff1a1101588                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345786\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CloudRaft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @tms \u5df2\u5f00\u901a\u65e0\u9650\u57df\u540d\u7248\uff0c\u9ebb\u70e6\u770b\u770b curl \u7ed1\u5b9a CF \u548c\u6fc0\u6d3b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345787\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tms <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @CloudRaft \u597d\u7684\u6211\u770b\u4e00\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345788\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tms <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u8fd9\u91cc\u4e00\u4e0b\u5c31\u6210\u529f\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345789\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tms <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/i.loli.net\/2020\/11\/26\/PRblTDhwSZz4kLA.png                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345790\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CloudRaft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @tms \u4e0d\u77e5\u9053\u5927\u4f6c postman \u91cc\u9762 header \u9664\u4e86 cookies \u8fd8\u6709\u6ca1\u6709\u5176\u4ed6\u7684\uff1f\u8fd9\u4e2a token \u6211\u4e4b\u524d\u6ca1\u52a0\uff0c\u6211\u770b\u770b\u6709\u6ca1\u6709\u529e\u6cd5\u83b7\u53d6\uff0c\u60a8\u6709\u8bd5\u8fc7\u5728 Linux \u91cc\u76f4\u63a5 curl \u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345791\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tms <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u8bd5\u4e86\u4e00\u4e0b linux \u7684 curl \u548c php \u90fd\u6ca1\u95ee\u9898\u3002token \u5728\u9875\u5934\u4e0a\u53d6\u3002<br \/>https:\/\/i.loli.net\/2020\/11\/26\/BzbNlDR5MEpkjgA.png                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4345792\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CloudRaft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @tms \u641e\u5b9a\u4e86\uff0c\u4e3b\u8981\u95ee\u9898\u662f\u8981\u52a0 token\uff0c\u518d\u6b21\u611f\u8c22!                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6c42\u52a9 \u5173\u4e8e PHP \u4e2d curl &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/208845"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=208845"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/208845\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208845"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}