{"id":558,"date":"2013-11-01T21:01:46","date_gmt":"2013-11-01T05:01:46","guid":{"rendered":"http:\/\/www.yclimw.com\/?p=558"},"modified":"2021-05-31T14:08:15","modified_gmt":"2021-05-31T06:08:15","slug":"59e77cbd370ba93591590e26c40fb353","status":"publish","type":"post","link":"https:\/\/www.yclimw.com\/?p=558","title":{"rendered":"PHP CURL \u6559\u5b66"},"content":{"rendered":"<div id=\"article_content\">\n<p><b>PHP\u4e2d\u7684CURL\u51fd\u5f0f\u5e93\uff08Client URL Library Function\uff09<\/b><\/p>\n<table border=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>curl_close<\/td>\n<td>\u5173\u95ed\u4e00\u4e2acurl\u4f1a\u8bdd<\/td>\n<\/tr>\n<tr>\n<td>curl_copy_handle<\/td>\n<td>\u62f7\u8d1d\u4e00\u4e2acurl\u8fde\u63a5\u8d44\u6e90\u7684\u6240\u6709\u5185\u5bb9\u548c\u53c2\u6570<\/td>\n<\/tr>\n<tr>\n<td>curl_errno<\/td>\n<td>\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5f53\u524d\u4f1a\u8bdd\u9519\u8bef\u8baf\u606f\u7684\u6570\u5b57\u7f16\u53f7<\/td>\n<\/tr>\n<tr>\n<td>curl_error<\/td>\n<td>\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5f53\u524d\u4f1a\u8bdd\u9519\u8bef\u8baf\u606f\u7684\u5b57\u7b26\u4e32<\/td>\n<\/tr>\n<tr>\n<td>curl_exec<\/td>\n<td>\u6267\u884c\u4e00\u4e2acurl\u4f1a\u8bdd<\/td>\n<\/tr>\n<tr>\n<td>curl_getinfo<\/td>\n<td>\u83b7\u53d6\u4e00\u4e2acurl\u8fde\u63a5\u8d44\u6e90\u53e5\u67c4\u7684\u8baf\u606f<\/td>\n<\/tr>\n<tr>\n<td>curl_init<\/td>\n<td>\u521d\u59cb\u5316\u4e00\u4e2acurl\u4f1a\u8bdd<\/td>\n<\/tr>\n<tr>\n<td>curl_multi_add_handle<\/td>\n<td>\u5411curl\u6279\u5904\u7406\u4f1a\u8bdd\u4e2d\u6dfb\u52a0\u5355\u72ec\u7684curl\u53e5\u67c4\u8d44\u6e90<\/td>\n<\/tr>\n<tr>\n<td>curl_multi_close<\/td>\n<td>\u5173\u95ed\u4e00\u4e2a\u6279\u5904\u7406\u53e5\u67c4\u8d44\u6e90<\/td>\n<\/tr>\n<tr>\n<td>curl_multi_exec<\/td>\n<td>\u89e3\u6790\u4e00\u4e2acurl\u6279\u5904\u7406\u53e5\u67c4<\/td>\n<\/tr>\n<tr>\n<td>curl_multi_getcontent<\/td>\n<td>\u8fd4\u56de\u83b7\u53d6\u7684\u8f93\u51fa\u7684\u6587\u672c\u6d41<\/td>\n<\/tr>\n<tr>\n<td>curl_multi_info_read<\/td>\n<td>\u83b7\u53d6\u5f53\u524d\u89e3\u6790\u7684curl\u7684\u76f8\u5173\u4f20\u8f93\u8baf\u606f<\/td>\n<\/tr>\n<tr>\n<td>curl_multi_init<\/td>\n<td>\u521d\u59cb\u5316\u4e00\u4e2acurl\u6279\u5904\u7406\u53e5\u67c4\u8d44\u6e90<\/td>\n<\/tr>\n<tr>\n<td>curl_multi_remove_handle<\/td>\n<td>\u79fb\u9664curl\u6279\u5904\u7406\u53e5\u67c4\u8d44\u6e90\u4e2d\u7684\u67d0\u4e2a\u53e5\u67c4\u8d44\u6e90<\/td>\n<\/tr>\n<tr>\n<td>curl_multi_select<\/td>\n<td>Get all the sockets associated with the cURL extension, which can then be &#8220;selected&#8221;<\/td>\n<\/tr>\n<tr>\n<td>curl_setopt_array<\/td>\n<td>\u4ee5\u6570\u7ec4\u7684\u5f62\u5f0f\u4e3a\u4e00\u4e2acurl\u8bbe\u7f6e\u4f1a\u8bdd\u53c2\u6570<\/td>\n<\/tr>\n<tr>\n<td>curl_setopt<\/td>\n<td>\u4e3a\u4e00\u4e2acurl\u8bbe\u7f6e\u4f1a\u8bdd\u53c2\u6570<\/td>\n<\/tr>\n<tr>\n<td>curl_version<\/td>\n<td>\u83b7\u53d6curl\u76f8\u5173\u7684\u7248\u672c\u8baf\u606f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>curl_init() \u51fd\u5f0f\u7684\u4f5c\u7528\u521d\u59cb\u5316\u4e00\u4e2acurl\u4f1a\u8bdd\uff0ccurl_init()\u51fd\u5f0f\u552f\u4e00\u7684\u4e00\u4e2a\u53c2\u6570\u662f\u53ef\u9009\u7684\uff0c\u8868\u793a\u4e00\u4e2aurl\u5730\u5740\u3002<\/p>\n<p>curl_exec() \u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u6267\u884c\u4e00\u4e2acurl\u4f1a\u8bdd\uff0c\u552f\u4e00\u7684\u53c2\u6570\u662fcurl_init()\u51fd\u5f0f\u8fd4\u56de\u7684\u53e5\u67c4\u3002<\/p>\n<p>curl_close() \u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u5173\u95ed\u4e00\u4e2acurl\u4f1a\u8bdd\uff0c\u552f\u4e00\u7684\u53c2\u6570\u662fcurl_init()\u51fd\u5f0f\u8fd4\u56de\u7684\u53e5\u67c4\u3002<\/p>\n<p><\/p>\n<div><code><\/p>\n<div style=\"border: 1px solid black; margin-left: auto; margin-right: auto; padding: 3px; font-family: 'Courier New'; font-size: 12px;\">\n<div><font color=\"#333399\">&lt;<\/font><font color=\"#333399\">?<\/font>php &nbsp;<br \/>$ch<font color=\"#333399\">=<\/font>&nbsp;curl_init(<font color=\"#FF00BF\">\"http:\/\/www.baidu.com\/\"<\/font>); &nbsp;<br \/>curl_exec($ch); &nbsp;<br \/>curl_close($ch); &nbsp;<br \/><font color=\"#333399\">?<\/font><font color=\"#333399\">&gt;<\/font>&nbsp;&nbsp;<\/div>\n<\/div>\n<p><\/code><\/div>\n<\/p>\n<p>curl_version()\u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u83b7\u53d6curl\u76f8\u5173\u7684\u7248\u672c\u8baf\u606f\uff0ccurl_version()\u51fd\u5f0f\u6709\u4e00\u4e2a\u53c2\u6570\uff0c\u4e0d\u6e05\u695a\u662f\u505a\u4ec0\u4e48\u7684<\/p>\n<p>curl_getinfo()\u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u83b7\u53d6\u4e00\u4e2acurl\u8fde\u63a5\u8d44\u6e90\u53e5\u67c4\u7684\u8baf\u606f\uff0ccurl_getinfo()\u51fd\u5f0f\u6709\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u53c2\u6570\u662fcurl\u7684\u8d44\u6e90\u53e5\u67c4\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u4e0b\u9762\u4e00\u4e9b\u5e38\u91cf\uff1a<\/p>\n<div>\n<div><\/div>\n<div><code><\/p>\n<div style=\"border: 1px solid black; margin-left: auto; margin-right: auto; padding: 3px; font-family: 'Courier New'; font-size: 12px;\">\n<div><font color=\"#333399\">&lt;<\/font><font color=\"#333399\">?<\/font>php &nbsp;<br \/>$ch<font color=\"#333399\">=<\/font>&nbsp;curl_init(<font color=\"#FF00BF\">\"http:\/\/www.baidu.com\/\"<\/font>); &nbsp;<br \/>print_r(curl_getinfo($ch)); &nbsp;<br \/><font color=\"#333399\">?<\/font><font color=\"#333399\">&gt;<\/font>&nbsp;&nbsp;<\/div>\n<\/div>\n<p><\/code><\/div>\n<\/div>\n<p>\u53ef\u9009\u7684\u5e38\u91cf\u5305\u62ec\uff1a <\/p>\n<table border=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>CURLINFO_EFFECTIVE_URL<\/td>\n<td>\u6700\u540e\u4e00\u4e2a\u6709\u6548\u7684url\u5730\u5740<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_HTTP_CODE<\/td>\n<td>\u6700\u540e\u4e00\u4e2a\u6536\u5230\u7684HTTP\u4ee3\u7801<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_FILETIME<\/td>\n<td>\u8fdc\u7a0b\u83b7\u53d6\u6587\u6863\u7684\u65f6\u95f4\uff0c\u5982\u679c\u65e0\u6cd5\u83b7\u53d6\uff0c\u5219\u8fd4\u56de\u503c\u4e3a\u300c-1\u300d<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_TOTAL_TIME<\/td>\n<td>\u6700\u540e\u4e00\u6b21\u4f20\u8f93\u6240\u6d88\u8017\u7684\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_NAMELOOKUP_TIME<\/td>\n<td>\u540d\u79f0\u89e3\u6790\u6240\u6d88\u8017\u7684\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_CONNECT_TIME<\/td>\n<td>\u5efa\u7acb\u8fde\u63a5\u6240\u6d88\u8017\u7684\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_PRETRANSFER_TIME<\/td>\n<td>\u4ece\u5efa\u7acb\u8fde\u63a5\u5230\u51c6\u5907\u4f20\u8f93\u6240\u4f7f\u7528\u7684\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_STARTTRANSFER_TIME<\/td>\n<td>\u4ece\u5efa\u7acb\u8fde\u63a5\u5230\u4f20\u8f93\u5f00\u59cb\u6240\u4f7f\u7528\u7684\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_REDIRECT_TIME<\/td>\n<td>\u5728\u4e8b\u52a1\u4f20\u8f93\u5f00\u59cb\u524d\u590d\u4f4d\u5411\u6240\u4f7f\u7528\u7684\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_SIZE_UPLOAD<\/td>\n<td>\u4e0a\u4f20\u6570\u636e\u91cf\u7684\u603b\u503c<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_SIZE_DOWNLOAD<\/td>\n<td>\u4e0b\u8f7d\u6570\u636e\u91cf\u7684\u603b\u503c<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_SPEED_DOWNLOAD<\/td>\n<td>\u5e73\u5747\u4e0b\u8f7d\u901f\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_SPEED_UPLOAD<\/td>\n<td>\u5e73\u5747\u4e0a\u4f20\u901f\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_HEADER_SIZE<\/td>\n<td>header\u90e8\u5206\u7684\u5927\u5c0f<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_HEADER_OUT<\/td>\n<td>\u53d1\u9001\u8bf7\u6c42\u7684\u5b57\u7b26\u4e32<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_REQUEST_SIZE<\/td>\n<td>\u5728HTTP\u8bf7\u6c42\u4e2d\u6709\u95ee\u9898\u7684\u8bf7\u6c42\u7684\u5927\u5c0f<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_SSL_VERIFYRESULT<\/td>\n<td>Result of SSL certification verification requested by setting CURLOPT_SSL_VERIFYPEER<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_CONTENT_LENGTH_DOWNLOAD<\/td>\n<td>\u4eceContent-Length: field\u4e2d\u8bfb\u53d6\u7684\u4e0b\u8f7d\u5185\u5bb9\u957f\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_CONTENT_LENGTH_UPLOAD<\/td>\n<td>\u4e0a\u4f20\u5185\u5bb9\u5927\u5c0f\u7684\u8bf4\u660e<\/td>\n<\/tr>\n<tr>\n<td>CURLINFO_CONTENT_TYPE<\/td>\n<td>\u4e0b\u8f7d\u5185\u5bb9\u7684\u300cContent-type\u300d\u503c\uff0cNULL\u8868\u793a\u670d\u52a1\u5668\u6ca1\u6709\u53d1\u9001\u6709\u6548\u7684\u300cContent-Type: header\u300d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>curl_setopt()\u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u4e3a\u4e00\u4e2acurl\u8bbe\u7f6e\u4f1a\u8bdd\u53c2\u6570\u3002curl_setopt_array()\u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u4ee5\u6570\u7ec4\u7684\u5f62\u5f0f\u4e3a\u4e00\u4e2acurl\u8bbe\u7f6e\u4f1a\u8bdd\u53c2\u6570\u3002<\/p>\n<\/p>\n<div>\n<div><\/p>\n<div><\/div>\n<\/div>\n<p><code><\/p>\n<div style=\"border: 1px solid black; margin-left: auto; margin-right: auto; padding: 3px; font-family: 'Courier New'; font-size: 12px;\">\n<div><font color=\"#333399\">&lt;<\/font><font color=\"#333399\">?<\/font>php &nbsp;<br \/>$ch<font color=\"#333399\">=<\/font>&nbsp;curl_init(); &nbsp;<br \/>$fp<font color=\"#333399\">=<\/font>&nbsp;fopen(<font color=\"#FF00BF\">\"example_homepage.txt\"<\/font>,&nbsp;<font color=\"#FF00BF\">\"w\"<\/font>); &nbsp;<br \/>curl_setopt($ch,&nbsp;CURLOPT_FILE,&nbsp;$fp); &nbsp;<br \/>$options<font color=\"#333399\">=<\/font>&nbsp;<font color=\"#0000FF\"><b>array<\/b><\/font>( &nbsp;<br \/>CURLOPT_URL&nbsp;<font color=\"#333399\">=<\/font><font color=\"#333399\">&gt;<\/font>&nbsp;<font color=\"#FF00BF\">'http:\/\/www.baidu.com\/'<\/font>, &nbsp;<br \/>CURLOPT_HEADER&nbsp;<font color=\"#333399\">=<\/font><font color=\"#333399\">&gt;<\/font>&nbsp;false &nbsp;<br \/>); &nbsp;<br \/>curl_setopt_array($ch,&nbsp;$options); &nbsp;<br \/>curl_exec($ch); &nbsp;<br \/>curl_close($ch); &nbsp;<br \/>fclose($fp); &nbsp;<br \/><font color=\"#333399\">?<\/font><font color=\"#333399\">&gt;<\/font>&nbsp;&nbsp;<\/div>\n<\/div>\n<p><\/code><\/div>\n<div><\/div>\n<\/p>\n<p>\u53ef\u8bbe\u7f6e\u7684\u53c2\u6570\u6709\uff1a <\/p>\n<table border=\"0\" cellpadding=\"0\" width=\"916\">\n<tbody>\n<tr>\n<td>CURLOPT_AUTOREFERER<\/td>\n<td>\u81ea\u52a8\u8bbe\u7f6eheader\u4e2d\u7684referer\u8baf\u606f<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_BINARYTRANSFER<\/td>\n<td>\u5728\u542f\u7528CURLOPT_RETURNTRANSFER\u65f6\u5019\u5c06\u83b7\u53d6\u6570\u636e\u8fd4\u56de<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_COOKIESESSION<\/td>\n<td>\u542f\u7528\u65f6curl\u4f1a\u4ec5\u4ec5\u4f20\u9012\u4e00\u4e2asession cookie\uff0c\u5ffd\u7565\u5176\u4ed6\u7684cookie\uff0c<br \/>\u9ed8\u8ba4\u72b6\u51b5\u4e0bcurl\u4f1a\u5c06\u6240\u6709\u7684cookie\u8fd4\u56de\u7ed9\u670d\u52a1\u7aef\u3002session cookie<br \/>\u662f\u6307\u90a3\u4e9b\u7528\u6765\u5224\u65ad\u670d\u52a1\u5668\u7aef\u7684session\u662f\u5426\u6709\u6548\u800c\u5b58\u5728\u7684cookie\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_CRLF<\/td>\n<td>\u542f\u7528\u65f6\u5c06Unix\u7684\u6362\u884c\u7b26\u8f6c\u6362\u6210\u56de\u8f66\u6362\u884c\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_DNS_USE_GLOBAL_CACHE<\/td>\n<td>\u542f\u7528\u65f6\u4f1a\u542f\u7528\u4e00\u4e2a\u5168\u5c40\u7684DNS\u7f13\u5b58\uff0c\u6b64\u9879\u4e3a\u7ebf\u7a0b\u5b89\u5168\u7684\uff0c\u5e76\u4e14\u9ed8\u8ba4\u4e3atrue\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_FAILONERROR<\/td>\n<td>\u663e\u793aHTTP\u72b6\u6001\u4ee3\u7801\uff0c\u9ed8\u8ba4\u884c\u4e3a\u662f\u5ffd\u7565\u7f16\u53f7\u5c0f\u4e8e\u7b49\u4e8e400\u7684HTTP\u8baf\u606f<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_FILETIME<\/td>\n<td>\u542f\u7528\u65f6\u4f1a\u5c1d\u8bd5\u4fee\u6539\u8fdc\u7a0b\u6587\u6587\u4ef6\u4e2d\u7684\u8baf\u606f\u3002\u7ed3\u679c\u8baf\u606f\u4f1a\u901a\u8fc7<br \/>curl_getinfo()\u51fd\u5f0f\u7684CURLINFO_FILETIME\u9009\u9879\u8fd4\u56de\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_FOLLOWLOCATION<\/td>\n<td>\u542f\u7528\u65f6\u4f1a\u5c06\u670d\u52a1\u5668\u670d\u52a1\u5668\u8fd4\u56de\u7684\u300cLocation:\u300d\u653e\u5728header\u4e2d\u9012\u5f52\u7684\u8fd4\u56de\u7ed9\u670d\u52a1\u5668\uff0c<br \/>\u4f7f\u7528CURLOPT_MAXREDIRS\u53ef\u4ee5\u9650\u5b9a\u9012\u5f52\u8fd4\u56de\u7684\u6570\u91cf\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_FORBID_REUSE<\/td>\n<td>\u5728\u5b8c\u6210\u4ea4\u4e92\u4ee5\u540e\u5f3a\u8feb\u65ad\u5f00\u8fde\u63a5\uff0c\u4e0d\u80fd\u91cd\u7528\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_FRESH_CONNECT<\/td>\n<td>\u5f3a\u5236\u83b7\u53d6\u4e00\u4e2a\u65b0\u7684\u8fde\u63a5\uff0c\u66ff\u4ee3\u7f13\u5b58\u4e2d\u7684\u8fde\u63a5\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_FTP_USE_EPRT<\/td>\n<td>TRUE to use EPRT (and LPRT) when doing active FTP downloads.<br \/>Use FALSE to disable EPRT and LPRT and use PORT only. Added in PHP 5.0.0.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_FTP_USE_EPSV<\/td>\n<td>TRUE to first try an EPSV command for FTP transfers before<br \/>reverting back to PASV. Set to FALSE to disable EPSV.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_FTPAPPEND<\/td>\n<td>TRUE to append to the remote file instead of overwriting it.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_FTPASCII<\/td>\n<td>An alias of CURLOPT_TRANSFERTEXT. Use that instead.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_FTPLISTONLY<\/td>\n<td>TRUE to only list the names of an FTP directory.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_HEADER<\/td>\n<td>\u542f\u7528\u65f6\u4f1a\u5c06\u5934\u6587\u4ef6\u7684\u8baf\u606f\u4f5c\u4e3a\u6570\u636e\u6d41\u8f93\u51fa\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_HTTPGET<\/td>\n<td>\u542f\u7528\u65f6\u4f1a\u8bbe\u7f6eHTTP\u7684method\u4e3aGET\uff0c\u56e0\u4e3aGET\u662f\u9ed8\u8ba4\u662f\uff0c\u6240\u4ee5\u53ea\u5728\u88ab\u4fee\u6539\u7684\u60c5\u51b5\u4e0b\u4f7f\u7528\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_HTTPPROXYTUNNEL<\/td>\n<td>\u542f\u7528\u65f6\u4f1a\u901a\u8fc7HTTP\u4ee3\u7406\u6765\u4f20\u8f93\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_MUTE<\/td>\n<td>\u8bb2curl\u51fd\u5f0f\u4e2d\u6240\u6709\u4fee\u6539\u8fc7\u7684\u53c2\u6570\u6062\u590d\u9ed8\u8ba4\u503c\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_NETRC<\/td>\n<td>\u5728\u8fde\u63a5\u5efa\u7acb\u4ee5\u540e\uff0c\u8bbf\u95ee~\/.netrc\u6587\u4ef6\u83b7\u53d6\u7528\u6237\u540d\u548c\u5bc6\u7801\u8baf\u606f\u8fde\u63a5\u8fdc\u7a0b\u7ad9\u70b9\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_NOBODY<\/td>\n<td>\u542f\u7528\u65f6\u5c06\u4e0d\u5bf9HTML\u4e2d\u7684body\u90e8\u5206\u8fdb\u884c\u8f93\u51fa\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_NOPROGRESS<\/td>\n<td>\u542f\u7528\u65f6\u5173\u95edcurl\u4f20\u8f93\u7684\u8fdb\u5ea6\u6761\uff0c\u6b64\u9879\u7684\u9ed8\u8ba4\u8bbe\u7f6e\u4e3atrue<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_NOSIGNAL<\/td>\n<td>\u542f\u7528\u65f6\u5ffd\u7565\u6240\u6709\u7684curl\u4f20\u9012\u7ed9php\u8fdb\u884c\u7684\u4fe1\u53f7\u3002\u5728SAPI\u591a\u7ebf\u7a0b\u4f20\u8f93\u65f6\u6b64\u9879\u88ab\u9ed8\u8ba4\u6253\u5f00\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_POST<\/td>\n<td>\u542f\u7528\u65f6\u4f1a\u53d1\u9001\u4e00\u4e2a\u5e38\u89c4\u7684POST\u8bf7\u6c42\uff0c\u7c7b\u578b\u4e3a\uff1aapplication\/x-www-form-urlencoded\uff0c\u5c31\u50cf\u7a97\u4f53\u63d0\u4ea4\u7684\u4e00\u6837\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_PUT<\/td>\n<td>\u542f\u7528\u65f6\u5141\u8bb8HTTP\u53d1\u9001\u6587\u4ef6\uff0c\u5fc5\u987b\u540c\u65f6\u8bbe\u7f6eCURLOPT_INFILE\u548cCURLOPT_INFILESIZE<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_RETURNTRANSFER<\/td>\n<td>\u8bb2curl_exec()\u83b7\u53d6\u7684\u8baf\u606f\u4ee5\u6587\u4ef6\u6d41\u7684\u5f62\u5f0f\u8fd4\u56de\uff0c\u800c\u4e0d\u662f\u76f4\u63a5\u8f93\u51fa\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_SSL_VERIFYPEER<\/td>\n<td>FALSE to stop cURL from verifying the peer&#8217;s certificate.<br \/>Alternate certificates to verify against can be specified with<br \/>the CURLOPT_CAINFO option or a certificate directory can be<br \/>specified with the CURLOPT_CAPATH option.<br \/>CURLOPT_SSL_VERIFYHOST may also need to be TRUE or<br \/>FALSE if CURLOPT_SSL_VERIFYPEER is disabled (it defaults to 2).<br \/>TRUE by default as of cURL 7.10. Default bundle installed as of cURL 7.10.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_TRANSFERTEXT<\/td>\n<td>TRUE to use ASCII mode for FTP transfers. For LDAP,<br \/>it retrieves data in plain text instead of HTML. On Windows systems,<br \/>it will not set STDOUT to binary mode.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_UNRESTRICTED_AUTH<\/td>\n<td>\u5728\u4f7f\u7528CURLOPT_FOLLOWLOCATION\u4ea7\u751f\u7684header\u4e2d\u7684\u591a\u4e2alocations\u4e2d\u6301\u7eed\u8ffd\u52a0\u7528\u6237\u540d\u548c\u5bc6\u7801\u8baf\u606f\uff0c\u5373\u4f7f\u57df\u540d\u5df2\u53d1\u751f\u6539\u53d8\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_UPLOAD<\/td>\n<td>\u542f\u7528\u65f6\u5141\u8bb8\u6587\u4ef6\u4f20\u8f93<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_VERBOSE<\/td>\n<td>\u542f\u7528\u65f6\u4f1a\u6c47\u62a5\u6240\u6709\u7684\u8baf\u606f\uff0c\u5b58\u653e\u5728STDERR\u6216\u6307\u5b9a\u7684CURLOPT_STDERR\u4e2d<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_BUFFERSIZE<\/td>\n<td>\u6bcf\u6b21\u83b7\u53d6\u7684\u6570\u636e\u4e2d\u8bfb\u5165\u7f13\u5b58\u7684\u5927\u5c0f\uff0c\u8fd9\u4e2a\u503c\u6bcf\u6b21\u90fd\u4f1a\u88ab\u586b\u6ee1\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_CLOSEPOLICY<\/td>\n<td>\u4e0d\u662fCURLCLOSEPOLICY_LEAST_RECENTLY_USED\u5c31\u662f<br \/>CURLCLOSEPOLICY_OLDEST\uff0c\u8fd8\u5b58\u5728\u53e6\u5916\u4e09\u4e2a\uff0c\u4f46\u662fcurl\u6682\u65f6\u8fd8\u4e0d\u652f\u6301\u3002.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_CONNECTTIMEOUT<\/td>\n<td>\u5728\u53d1\u8d77\u8fde\u63a5\u524d\u7b49\u5f85\u7684\u65f6\u95f4\uff0c\u5982\u679c\u8bbe\u7f6e\u4e3a0\uff0c\u5219\u4e0d\u7b49\u5f85\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_DNS_CACHE_TIMEOUT<\/td>\n<td>\u8bbe\u7f6e\u5728\u5185\u5b58\u4e2d\u4fdd\u5b58DNS\u8baf\u606f\u7684\u65f6\u95f4\uff0c\u9ed8\u8ba4\u4e3a120\u79d2\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_FTPSSLAUTH<\/td>\n<td>The FTP authentication method (when is activated):<br \/>CURLFTPAUTH_SSL (try SSL first), CURLFTPAUTH_TLS (try TLS first), or CURLFTPAUTH_DEFAULT (let cURL decide).<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_HTTP_VERSION<\/td>\n<td>\u8bbe\u7f6ecurl\u4f7f\u7528\u7684HTTP\u534f\u8bae\uff0cCURL_HTTP_VERSION_NONE\uff08\u8ba9curl\u81ea\u5df1\u5224\u65ad\uff09\uff0cCURL_HTTP_VERSION_1_0\uff08HTTP\/1.0\uff09\uff0cCURL_HTTP_VERSION_1_1\uff08HTTP\/1.1\uff09<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_HTTPAUTH<\/td>\n<td>\u4f7f\u7528\u7684HTTP\u9a8c\u8bc1\u65b9\u6cd5\uff0c\u53ef\u9009\u7684\u503c \u6709\uff1aCURLAUTH_BASIC\uff0cCURLAUTH_DIGEST\uff0cCURLAUTH_GSSNEGOTIATE\uff0c<br \/>CURLAUTH_NTLM\uff0cCURLAUTH_ANY\uff0cCURLAUTH_ANYSAFE\uff0c \u53ef\u4ee5\u4f7f\u7528\u300c|\u300d\u64cd\u4f5c\u7b26\u5206\u9694\u591a\u4e2a\u503c\uff0c<br \/>curl\u8ba9\u670d\u52a1\u5668\u9009\u62e9\u4e00\u4e2a\u652f\u6301\u6700\u597d\u7684\u503c\uff0cCURLAUTH_ANY\u7b49\u4ef7\u4e8eCURLAUTH_BASIC | CURLAUTH_DIGEST | CURLAUTH_GSSNEGOTIATE | CURLAUTH_NTLM\uff0cCURLAUTH_ANYSAFE\u7b49\u4ef7\u4e8eCURLAUTH_DIGEST | CURLAUTH_GSSNEGOTIATE | CURLAUTH_NTLM<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_INFILESIZE<\/td>\n<td>\u8bbe\u5b9a\u4e0a\u4f20\u6587\u4ef6\u7684\u5927\u5c0f<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_LOW_SPEED_LIMIT<\/td>\n<td>\u5f53\u4f20\u8f93\u901f\u5ea6\u5c0f\u4e8eCURLOPT_LOW_SPEED_LIMIT\u65f6\uff0cPHP\u4f1a\u6839\u636e<br \/>CURLOPT_LOW_SPEED_TIME\u6765\u5224\u65ad\u662f\u5426\u56e0\u592a\u6162\u800c\u53d6\u6d88\u4f20\u8f93\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_LOW_SPEED_TIME<\/td>\n<td>The number of seconds the transfer should be below CURLOPT_LOW_SPEED_LIMIT<br \/>for PHP to consider the transfer too slow and abort. \u5f53\u4f20\u8f93\u901f\u5ea6\u5c0f\u4e8e<br \/>CURLOPT_LOW_SPEED_LIMIT\u65f6\uff0cPHP\u4f1a\u6839\u636eCURLOPT_LOW_SPEED_TIME\u6765\u5224\u65ad\u662f\u5426\u56e0\u592a\u6162\u800c\u53d6\u6d88\u4f20 \u8f93\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_MAXCONNECTS<\/td>\n<td>\u5141\u8bb8\u7684\u6700\u5927\u8fde\u63a5\u6570\u91cf\uff0c\u8d85\u8fc7\u662f\u4f1a\u901a\u8fc7CURLOPT_CLOSEPOLICY\u51b3\u5b9a\u5e94\u8be5\u505c\u6b62\u54ea\u4e9b\u8fde\u63a5<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_MAXREDIRS<\/td>\n<td>\u6307\u5b9a\u6700\u591a\u7684HTTP\u590d\u4f4d\u5411\u7684\u6570\u91cf\uff0c\u8fd9\u4e2a\u9009\u9879\u662f\u548cCURLOPT_FOLLOWLOCATION\u4e00\u8d77\u4f7f\u7528\u7684\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_PORT<\/td>\n<td>\u4e00\u4e2a\u53ef\u9009\u7684\u7528\u6765\u6307\u5b9a\u8fde\u63a5\u7aef\u53e3\u7684\u91cf<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_PROXYAUTH<\/td>\n<td>The HTTP authentication method(s) to use for the proxy connection.<br \/>Use the same bitmasks as described in CURLOPT_HTTPAUTH.<br \/>For proxy authentication, only CURLAUTH_BASIC and CURLAUTH_NTLM are currently supported.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_PROXYPORT<\/td>\n<td>The port number of the proxy to connect to. This port number can also be set in CURLOPT_PROXY.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_PROXYTYPE<\/td>\n<td>Either CURLPROXY_HTTP (default) or CURLPROXY_SOCKS5.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_RESUME_FROM<\/td>\n<td>\u5728\u6062\u590d\u4f20\u8f93\u65f6\u4f20\u9012\u4e00\u4e2a\u5b57\u8282\u504f\u79fb\u91cf\uff08\u7528\u6765\u65ad\u70b9\u7eed\u4f20\uff09<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_SSL_VERIFYHOST<\/td>\n<td>1 to check the existence of a common name in the SSL peer certificate.<br \/>2 to check the existence of a common name and also verify that it matches the hostname provided.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_SSLVERSION<\/td>\n<td>The SSL version (2 or 3) to use. By default PHP will try to determine this itself, although in some cases this must be set manually.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_TIMECONDITION<\/td>\n<td>\u5982\u679c\u5728CURLOPT_TIMEVALUE\u6307\u5b9a\u7684\u67d0\u4e2a\u65f6\u95f4\u4ee5\u540e\u88ab\u7f16\u8f91\u8fc7\uff0c\u5219\u4f7f\u7528CURL_TIMECOND_IFMODSINCE\u8fd4\u56de\u9875\u9762\uff0c<br \/>\u5982\u679c\u6ca1\u6709\u88ab\u4fee \u6539\u8fc7\uff0c\u5e76\u4e14CURLOPT_HEADER\u4e3atrue\uff0c\u5219\u8fd4\u56de\u4e00\u4e2a&#8221;304 Not Modified&#8221;\u7684header\uff0c<br \/>CURLOPT_HEADER\u4e3afalse\uff0c\u5219\u4f7f\u7528CURL_TIMECOND_ISUNMODSINCE\uff0c<br \/>\u9ed8\u8ba4\u503c\u4e3aCURL_TIMECOND_IFMODSINCE<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_TIMEOUT<\/td>\n<td>\u8bbe\u7f6ecurl\u5141\u8bb8\u6267\u884c\u7684\u6700\u957f\u79d2\u6570<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_TIMEVALUE<\/td>\n<td>\u8bbe\u7f6e\u4e00\u4e2aCURLOPT_TIMECONDITION\u4f7f\u7528\u7684\u65f6\u95f4\u6233\uff0c\u5728\u9ed8\u8ba4\u72b6\u6001\u4e0b\u4f7f\u7528\u7684\u662fCURL_TIMECOND_IFMODSINCE<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_CAINFO<\/td>\n<td>The name of a file holding one or more certificates to verify the peer with. This only makes sense when used in combination with CURLOPT_SSL_VERIFYPEER.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_CAPATH<\/td>\n<td>A directory that holds multiple CA certificates. Use this option alongside CURLOPT_SSL_VERIFYPEER.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_COOKIE<\/td>\n<td>\u8bbe\u5b9aHTTP\u8bf7\u6c42\u4e2d\u300cSet-Cookie:\u300d\u90e8\u5206\u7684\u5185\u5bb9\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_COOKIEFILE<\/td>\n<td>\u5305\u542bcookie\u8baf\u606f\u7684\u6587\u4ef6\u540d\u79f0\uff0c\u8fd9\u4e2acookie\u6587\u4ef6\u53ef\u4ee5\u662fNetscape\u683c\u5f0f\u6216\u8005HTTP\u98ce\u683c\u7684header\u8baf\u606f\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_COOKIEJAR<\/td>\n<td>\u8fde\u63a5\u5173\u95ed\u4ee5\u540e\uff0c\u5b58\u653ecookie\u8baf\u606f\u7684\u6587\u4ef6\u540d\u79f0<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_CUSTOMREQUEST<\/td>\n<td>A custom request method to use instead of &#8220;GET&#8221; or &#8220;HEAD&#8221; when doing a HTTP request.<br \/>This is useful for doing &#8220;DELETE&#8221; or other, more obscure HTTP requests.<br \/>Valid values are things like &#8220;GET&#8221;, &#8220;POST&#8221;, &#8220;CONNECT&#8221; and so on; i.e.<br \/>Do not enter a whole HTTP request line here. For instance, entering &#8220;GET \/index.html HTTP\/1.0\\r\\n\\r\\n&#8221;<br \/>would be incorrect. Note: Don&#8217;t do this without making sure the server supports the<br \/>custom request method first.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_EGBSOCKET<\/td>\n<td>Like CURLOPT_RANDOM_FILE, except a filename to an Entropy Gathering Daemon socket.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_ENCODING<\/td>\n<td>header\u4e2d\u300cAccept-Encoding: \u300d\u90e8\u5206\u7684\u5185\u5bb9\uff0c\u652f\u6301\u7684\u7f16\u7801\u683c\u5f0f\u4e3a\uff1a&#8221;identity&#8221;\uff0c&#8221;deflate&#8221;\uff0c&#8221;gzip&#8221;\u3002<br \/>\u5982\u679c\u8bbe\u7f6e\u4e3a\u7a7a\u5b57\u7b26\u4e32\uff0c\u5219\u8868\u793a\u652f\u6301\u6240\u6709\u7684\u7f16\u7801\u683c\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_FTPPORT<\/td>\n<td>The value which will be used to get the IP address to use for the FTP &#8220;POST&#8221; instruction.<br \/>The &#8220;POST&#8221; instruction tells the remote server to connect to our specified IP address.<br \/>The string may be a plain IP address, a hostname, a network interface name (under Unix),<br \/>or just a plain &#8216;-&#8216; to use the systems default IP address.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_INTERFACE<\/td>\n<td>\u5728\u5916\u90e8\u7f51\u7edc\u63a5\u53e3\u4e2d\u4f7f\u7528\u7684\u540d\u79f0\uff0c\u53ef\u4ee5\u662f\u4e00\u4e2a\u63a5\u53e3\u540d\uff0cIP\u6216\u8005\u4e3b\u673a\u540d\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_KRB4LEVEL<\/td>\n<td>KRB4(Kerberos 4)\u5b89\u5168\u7ea7\u522b\u7684\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u662f\u4e00\u4e0b\u51e0\u4e2a\u503c\u4e4b\u4e00\uff1a&#8221;clear&#8221;\uff0c&#8221;safe&#8221;\uff0c&#8221;confidential&#8221;\uff0c&#8221;private&#8221;\u3002\u9ed8\u8ba4\u7684\u503c \u4e3a&#8221;private&#8221;\uff0c\u8bbe\u7f6e\u4e3anull\u7684\u65f6\u5019\u8868\u793a\u7981\u7528KRB4\uff0c\u73b0\u5728KRB4\u5b89\u5168\u4ec5\u80fd\u5728FTP\u4f20\u8f93\u4e2d\u4f7f\u7528\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_POSTFIELDS<\/td>\n<td>\u5728HTTP\u4e2d\u7684\u300cPOST\u300d\u64cd\u4f5c\u3002\u5982\u679c\u8981\u4f20\u9001\u4e00\u4e2a\u6587\u4ef6\uff0c\u9700\u8981\u4e00\u4e2a@\u5f00\u5934\u7684\u6587\u4ef6\u540d<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_PROXY<\/td>\n<td>\u8bbe\u7f6e\u901a\u8fc7\u7684HTTP\u4ee3\u7406\u670d\u52a1\u5668<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_PROXYUSERPWD<\/td>\n<td>\u8fde\u63a5\u5230\u4ee3\u7406\u670d\u52a1\u5668\u7684\uff0c\u683c\u5f0f\u4e3a\u300c[username]:[password]\u300d\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_RANDOM_FILE<\/td>\n<td>\u8bbe\u5b9a\u5b58\u653eSSL\u7528\u5230\u7684\u968f\u673a\u6570\u79cd\u5b50\u7684\u6587\u4ef6\u540d\u79f0<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_RANGE<\/td>\n<td>\u8bbe\u7f6eHTTP\u4f20\u8f93\u8303\u56f4\uff0c\u53ef\u4ee5\u7528\u300cX-Y\u300d\u7684\u5f62\u5f0f\u8bbe\u7f6e\u4e00\u4e2a\u4f20\u8f93\u533a\u95f4\uff0c\u5982\u679c\u6709\u591a\u4e2aHTTP\u4f20\u8f93\uff0c\u5219\u4f7f\u7528\u9017\u53f7\u5206\u9694\u591a\u4e2a\u503c\uff0c\u5f62\u5982\uff1a&#8221;X-Y,N-M&#8221;\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_REFERER<\/td>\n<td>\u8bbe\u7f6eheader\u4e2d&#8221;Referer: &#8221; \u90e8\u5206\u7684\u503c\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_SSL_CIPHER_LIST<\/td>\n<td>A list of ciphers to use for SSL. For example, RC4-SHA and TLSv1 are valid cipher lists.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_SSLCERT<\/td>\n<td>\u4f20\u9012\u4e00\u4e2a\u5305\u542bPEM\u683c\u5f0f\u8bc1\u4e66\u7684\u5b57\u7b26\u4e32\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_SSLCERTPASSWD<\/td>\n<td>\u4f20\u9012\u4e00\u4e2a\u5305\u542b\u4f7f\u7528CURLOPT_SSLCERT\u8bc1\u4e66\u5fc5\u9700\u7684\u5bc6\u7801\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_SSLCERTTYPE<\/td>\n<td>The format of the certificate. Supported formats are &#8220;PEM&#8221; (default), &#8220;DER&#8221;, and &#8220;ENG&#8221;.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_SSLENGINE<\/td>\n<td>The identifier for the crypto engine of the private SSL key specified in CURLOPT_SSLKEY.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_SSLENGINE_DEFAULT<\/td>\n<td>The identifier for the crypto engine used for asymmetric crypto operations.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_SSLKEY<\/td>\n<td>The name of a file containing a private SSL key.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_SSLKEYPASSWD<\/td>\n<td>The secret password needed to use the private SSL key specified in CURLOPT_SSLKEY.<br \/>Note: Since this option contains a sensitive password, remember to keep the<br \/>PHP script it is contained within safe.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_SSLKEYTYPE<\/td>\n<td>The key type of the private SSL key specified in CURLOPT_SSLKEY. Supported key types are &#8220;PEM&#8221; (default), &#8220;DER&#8221;, and &#8220;ENG&#8221;.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_URL<\/td>\n<td>\u9700\u8981\u83b7\u53d6\u7684URL\u5730\u5740\uff0c\u4e5f\u53ef\u4ee5\u5728PHP\u7684curl_init()\u51fd\u5f0f\u4e2d\u8bbe\u7f6e\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_USERAGENT<\/td>\n<td>\u5728HTTP\u8bf7\u6c42\u4e2d\u5305\u542b\u4e00\u4e2a\u300duser-agent\u300d\u5934\u7684\u5b57\u7b26\u4e32\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_USERPWD<\/td>\n<td>\u4f20\u9012\u4e00\u4e2a\u8fde\u63a5\u4e2d\u9700\u8981\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u683c\u5f0f\u4e3a\uff1a\u300c[username]:[password]\u300d\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_HTTP200ALIASES<\/td>\n<td>\u8bbe\u7f6e\u4e0d\u518d\u4ee5error\u7684\u5f62\u5f0f\u6765\u5904\u7406HTTP 200\u7684\u54cd\u5e94\uff0c\u683c\u5f0f\u4e3a\u4e00\u4e2a\u6570\u7ec4\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_HTTPHEADER<\/td>\n<td>\u8bbe\u7f6e\u4e00\u4e2aheader\u4e2d\u4f20\u8f93\u5185\u5bb9\u7684\u6570\u7ec4\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_POSTQUOTE<\/td>\n<td>An array of FTP commands to execute on the server after the FTP request has been performed.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_QUOTE<\/td>\n<td>An array of FTP commands to execute on the server prior to the FTP request.<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_FILE<\/td>\n<td>\u8bbe\u7f6e\u8f93\u51fa\u6587\u4ef6\u7684\u4f4d\u7f6e\uff0c\u503c\u662f\u4e00\u4e2a\u8d44\u6e90\u7c7b\u578b\uff0c\u9ed8\u8ba4\u4e3aSTDOUT (\u6d4f\u89c8\u5668)\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_INFILE<\/td>\n<td>\u5728\u4e0a\u4f20\u6587\u4ef6\u7684\u65f6\u5019\u9700\u8981\u8bfb\u53d6\u7684\u6587\u4ef6\u5730\u5740\uff0c\u503c\u662f\u4e00\u4e2a\u8d44\u6e90\u7c7b\u578b\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_STDERR<\/td>\n<td>\u8bbe\u7f6e\u4e00\u4e2a\u9519\u8bef\u8f93\u51fa\u5730\u5740\uff0c\u503c\u662f\u4e00\u4e2a\u8d44\u6e90\u7c7b\u578b\uff0c\u53d6\u4ee3\u9ed8\u8ba4\u7684STDERR\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_WRITEHEADER<\/td>\n<td>\u8bbe\u7f6eheader\u90e8\u5206\u5185\u5bb9\u7684\u5199\u5165\u7684\u6587\u4ef6\u5730\u5740\uff0c\u503c\u662f\u4e00\u4e2a\u8d44\u6e90\u7c7b\u578b\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_HEADERFUNCTION<\/td>\n<td>\u8bbe\u7f6e\u4e00\u4e2a\u56de\u8c03\u51fd\u5f0f\uff0c\u8fd9\u4e2a\u51fd\u5f0f\u6709\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662fcurl\u7684\u8d44\u6e90\u53e5\u67c4\uff0c<br \/>\u7b2c\u4e8c\u4e2a\u662f\u8f93\u51fa\u7684header\u6570\u636e\u3002header\u6570\u636e\u7684\u8f93\u51fa\u5fc5\u987b\u4f9d\u8d56\u8fd9\u4e2a\u51fd\u5f0f\uff0c\u8fd4\u56de\u5df2\u5199\u5165\u7684\u6570\u636e\u5927\u5c0f\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_PASSWDFUNCTION<\/td>\n<td>\u8bbe\u7f6e\u4e00\u4e2a\u56de\u8c03\u51fd\u5f0f\uff0c\u6709\u4e09\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662fcurl\u7684\u8d44\u6e90\u53e5\u67c4\uff0c\u7b2c\u4e8c\u4e2a\u662f\u4e00\u4e2a\u5bc6\u7801\u63d0\u793a\u7b26\uff0c<br \/>\u7b2c\u4e09\u4e2a\u53c2\u6570\u662f\u5bc6\u7801\u957f\u5ea6\u5141\u8bb8\u7684\u6700\u5927\u503c\u3002\u8fd4\u56de\u5bc6\u7801\u7684\u503c\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_READFUNCTION<\/td>\n<td>\u8bbe\u7f6e\u4e00\u4e2a\u56de\u8c03\u51fd\u5f0f\uff0c\u6709\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662fcurl\u7684\u8d44\u6e90\u53e5\u67c4\uff0c\u7b2c\u4e8c\u4e2a\u662f\u8bfb\u53d6\u5230\u7684\u6570\u636e\u3002<br \/>\u6570\u636e\u8bfb\u53d6\u5fc5\u987b\u4f9d\u8d56\u8fd9\u4e2a\u51fd\u5f0f\u3002\u8fd4\u56de\u8bfb\u53d6\u6570\u636e\u7684\u5927\u5c0f\uff0c\u6bd4\u59820\u6216\u8005EOF\u3002<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_WRITEFUNCTION<\/td>\n<td>\u8bbe\u7f6e\u4e00\u4e2a\u56de\u8c03\u51fd\u5f0f\uff0c\u6709\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662fcurl\u7684\u8d44\u6e90\u53e5\u67c4\uff0c\u7b2c\u4e8c\u4e2a\u662f\u5199\u5165\u7684\u6570\u636e\u3002<br \/>\u6570\u636e\u5199\u5165\u5fc5\u987b\u4f9d\u8d56\u8fd9\u4e2a\u51fd\u5f0f\u3002\u8fd4\u56de\u7cbe\u786e\u7684\u5df2\u5199\u5165\u6570\u636e\u7684\u5927\u5c0f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>curl_copy_handle()\u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u62f7\u8d1d\u4e00\u4e2acurl\u8fde\u63a5\u8d44\u6e90\u7684\u6240\u6709\u5185\u5bb9\u548c\u53c2\u6570<\/p>\n<\/p>\n<div>\n<div><\/div>\n<p><code><\/p>\n<div style=\"border: 1px solid black; margin-left: auto; margin-right: auto; padding: 3px; font-family: 'Courier New'; font-size: 12px;\">\n<div><font color=\"#333399\">&lt;<\/font><font color=\"#333399\">?<\/font>php &nbsp;<br \/>$ch<font color=\"#333399\">=<\/font>&nbsp;curl_init(<font color=\"#FF00BF\">\"http:\/\/www.baidu.com\/\"<\/font>); &nbsp;<br \/>$another<font color=\"#333399\">=<\/font>&nbsp;curl_copy_handle($ch); &nbsp;<br \/>curl_exec($another); &nbsp;<br \/>curl_close($another); &nbsp;<br \/><font color=\"#333399\">?<\/font><font color=\"#333399\">&gt;<\/font>&nbsp;&nbsp;<\/div>\n<\/div>\n<p><\/code><\/div>\n<\/p>\n<p>curl_error()\u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5f53\u524d\u4f1a\u8bdd\u9519\u8bef\u8baf\u606f\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<p>curl_errno() \u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5f53\u524d\u4f1a\u8bdd\u9519\u8bef\u8baf\u606f\u7684\u6570\u5b57\u7f16\u53f7\u3002<\/p>\n<p>curl_multi_init()\u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u521d\u59cb\u5316\u4e00\u4e2acurl\u6279\u5904\u7406\u53e5\u67c4\u8d44\u6e90\u3002<\/p>\n<p>curl_multi_add_handle() \u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u5411curl\u6279\u5904\u7406\u4f1a\u8bdd\u4e2d\u6dfb\u52a0\u5355\u72ec\u7684curl\u53e5\u67c4\u8d44\u6e90\u3002<\/p>\n<p>url_multi_add_handle() \u51fd\u5f0f\u6709\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u53c2\u6570\u8868\u793a\u4e00\u4e2acurl\u6279\u5904\u7406\u53e5\u67c4\u8d44\u6e90\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u8868\u793a\u4e00\u4e2a\u5355\u72ec\u7684curl\u53e5\u67c4\u8d44\u6e90\u3002<\/p>\n<p>curl_multi_exec() \u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u89e3\u6790\u4e00\u4e2acurl\u6279\u5904\u7406\u53e5\u67c4\uff0ccurl_multi_exec()\u51fd\u5f0f\u6709\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u53c2\u6570\u8868\u793a\u4e00\u4e2a\u6279\u5904\u7406\u53e5\u67c4\u8d44\u6e90\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u4e00\u4e2a\u5f15\u7528\u503c\u7684\u53c2\u6570\uff0c\u8868\u793a\u5269\u4f59\u9700\u8981\u5904\u7406\u7684\u5355\u4e2a\u7684curl\u53e5\u67c4\u8d44\u6e90\u6570\u91cf\u3002<\/p>\n<p>curl_multi_remove_handle() \u51fd\u5f0f\u8868\u793a\u79fb\u9664curl\u6279\u5904\u7406\u53e5\u67c4\u8d44\u6e90\u4e2d\u7684\u67d0\u4e2a\u53e5\u67c4\u8d44 \u6e90\uff0ccurl_multi_remove_handle()\u51fd\u5f0f\u6709\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u53c2\u6570\u8868\u793a\u4e00\u4e2acurl\u6279\u5904\u7406\u53e5\u67c4\u8d44\u6e90\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u8868\u793a\u4e00\u4e2a\u5355\u72ec\u7684curl\u53e5\u67c4\u8d44\u6e90\u3002<\/p>\n<p>curl_multi_close() \u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u5173\u95ed\u4e00\u4e2a\u6279\u5904\u7406\u53e5\u67c4\u8d44\u6e90\u3002<\/p>\n<div><code><\/p>\n<div style=\"border: 1px solid black; margin-left: auto; margin-right: auto; padding: 3px; font-family: 'Courier New'; font-size: 12px;\">\n<div><font color=\"#333399\">&lt;<\/font><font color=\"#333399\">?<\/font>php &nbsp;<br \/>$ch1<font color=\"#333399\">=<\/font>&nbsp;curl_init(); &nbsp;<br \/>$ch2<font color=\"#333399\">=<\/font>&nbsp;curl_init(); &nbsp;<br \/>curl_setopt($ch1,&nbsp;CURLOPT_URL,&nbsp;<font color=\"#FF00BF\">\"http:\/\/www.baidu.com\/\"<\/font>); &nbsp;<br \/>curl_setopt($ch1,&nbsp;CURLOPT_HEADER,&nbsp;<font color=\"#6E00AA\">0<\/font>); &nbsp;<br \/>curl_setopt($ch2,&nbsp;CURLOPT_URL,&nbsp;<font color=\"#FF00BF\">\"http:\/\/www.google.com\/\"<\/font>); &nbsp;<br \/>curl_setopt($ch2,&nbsp;CURLOPT_HEADER,&nbsp;<font color=\"#6E00AA\">0<\/font>); &nbsp;<br \/>$mh<font color=\"#333399\">=<\/font>&nbsp;curl_multi_init(); &nbsp;<br \/>curl_multi_add_handle($mh,$ch1); &nbsp;<br \/>curl_multi_add_handle($mh,$ch2); &nbsp;<br \/><font color=\"#0000FF\"><b>do<\/b><\/font>{ &nbsp;<br \/>curl_multi_exec($mh,$flag); &nbsp;<br \/>}<font color=\"#0000FF\"><b>while<\/b><\/font>&nbsp;($flag&nbsp;<font color=\"#333399\">&gt;<\/font>&nbsp;<font color=\"#6E00AA\">0<\/font>); &nbsp;<br \/>curl_multi_remove_handle($mh,$ch1); &nbsp;<br \/>curl_multi_remove_handle($mh,$ch2); &nbsp;<br \/>curl_multi_close($mh); &nbsp;<br \/><font color=\"#333399\">?<\/font><font color=\"#333399\">&gt;<\/font>&nbsp;&nbsp;<\/div>\n<\/div>\n<p><\/code><\/div>\n<\/p>\n<p>curl_multi_getcontent()\u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u5728\u8bbe\u7f6e\u4e86CURLOPT_RETURNTRANSFER\u7684\u60c5\u51b5\u4e0b\uff0c\u8fd4\u56de\u83b7\u53d6\u7684\u8f93\u51fa\u7684\u6587\u672c\u6d41\u3002<\/p>\n<p>curl_multi_info_read()\u51fd\u5f0f\u7684\u4f5c\u7528\u662f\u83b7\u53d6\u5f53\u524d\u89e3\u6790\u7684curl\u7684\u76f8\u5173\u4f20\u8f93\u8baf\u606f\u3002<\/p>\n<p>curl_multi_select()<\/p>\n<p>Get all the sockets associated with the cURL extension, which can then be &#8220;selected&#8221;<\/p>\n<\/p>\n<p>\u8303\u4f8b\u89e3\u8bf4: <\/p>\n<p>\u5982\u679c\u8981\u7528php\u6765\u6293\u53d6\u7f51\u9875\uff0c\u4e00\u822c\u4eba\u6700\u5e38\u60f3\u5230\u7684\u5c31\u662f\u300cfopen\u300d\u8fd9\u4e2a\u51fd\u5f0f\u4e86\u3002\u4f46\u73b0\u5728\u6709\u4e86\u66f4\u5f3a\u5927\u7684\u51fd\u5f0f\uff0c\u300ccurl\u300d\uff0c\u81f3\u4e8e\u8fd9\u4e2a\u51fd\u5f0f\u600e\u4e48\u7528\u5462\uff1f\u5c31\u5f80\u4e0b\u770b\u5427\uff01<br \/>\u5982\u4f7f\u7528mysql\u4e00\u6837\uff0c\u9996\u5148\uff0c\u6211\u4eec\u5fc5\u987b\u5148\u5efa\u7acb\u4e00\u4e2a\u300ccurl\u300d\u7684\u8054\u673a\uff0c\u4e5f\u56e0\u6b64\uff0c\u5fc5\u987b\u4f7f\u7528\u5230\u300c$ch = curl_init()\u300d\u8fd9\u4e2a\u51fd\u5f0f\u3002\u800c\u4e3a\u4e86\u6015\u5efa\u7acb\u8054\u673a\u5fd8\u4e86\u5173\u95ed\u3002\u56e0\u6b64\uff0c\u5fc5\u987b\u5148\u5199\u597d\u5173\u95ed\u7684\u51fd\u5f0f\uff0c\u300ccurl_close($ch)\u300d\u3002<br \/>\u63a5\u4e0b\u6765\uff0c\u4f60\u53ef\u4ee5\u8bbe\u5b9a\u4ed6\u622a\u53d6\u7f51\u9875\u7684<a href=\"http:\/\/tw2.php.net\/manual\/en\/function.curl-setopt.php\" target=\"_blank\" rel=\"noopener\">\u9009\u9879<\/a>\uff0c \u4e00\u822c\u6765\u8bf4\u5e38\u7528\u7684\u6709\uff1a<\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>CURLOPT_RETURNTRANSFER<\/td>\n<td>\u5c06\u7ed3\u679c\u56de\u4f20\u6210\u5b57\u7b26\u4e32<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_URL<\/td>\n<td>\u8bbe\u5b9a\u622a\u53d6\u7f51\u5740<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_HEADER<\/td>\n<td>\u662f\u5426\u622a\u53d6header\u7684\u4fe1\u606f<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_FOLLOWLOCATION<\/td>\n<td>\u662f\u5426\u6293\u53d6\u8f6c\u5740<\/td>\n<\/tr>\n<tr>\n<td>CURLOPT_USERAGENT<\/td>\n<td>\u6d4f\u89c8\u5668\u7684user agent<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6700\u540e\uff0c\u518d\u6267\u884c\u300ccurl_exec($ch)\u300d\u4ee5\u53d6\u51fa\u7ed3\u679c\u5c31\u53ef\u4ee5\u4e86\u3002<br \/>\u800c\u4ee5\u6293\u53d6yahoo\u4e3a\u4f8b\uff0c\u82e5\u6211\u4eec\u8981\u4f2a\u88c5\u6210google bot\u53bb\u6293\u53d6\uff0c\u90a3\u4e48\u6211\u4eec\u53ef\u4ee5\u5199\u6210\u4e0b\u5217\u7684\u6837\u5b50\u3002<\/p>\n<\/p>\n<div>\n<div>\n<div><\/div>\n<\/div>\n<div><code><\/p>\n<div style=\"border: 1px solid black; margin-left: auto; margin-right: auto; padding: 3px; font-family: 'Courier New'; font-size: 12px;\">\n<div><font color=\"#333399\">&lt;<\/font><font color=\"#333399\">?<\/font>php &nbsp;<br \/>$ch<font color=\"#333399\">=<\/font>&nbsp;curl_init(); &nbsp;<br \/>curl_setopt($ch,&nbsp;CURLOPT_RETURNTRANSFER,&nbsp;true); &nbsp;<br \/>curl_setopt($ch,&nbsp;CURLOPT_URL,&nbsp;<font color=\"#FF00BF\">\"www.yahoo.com\"<\/font>); &nbsp;<br \/>curl_setopt($ch,&nbsp;CURLOPT_HEADER,&nbsp;false); &nbsp;<br \/>curl_setopt($ch,&nbsp;CURLOPT_USERAGENT,&nbsp;<font color=\"#FF00BF\">\"Google&nbsp;Bot\"<\/font>); &nbsp;<br \/>curl_setopt($ch,&nbsp;CURLOPT_FOLLOWLOCATION,&nbsp;true); &nbsp;<br \/>$output<font color=\"#333399\">=<\/font>&nbsp;curl_exec($ch); &nbsp;<br \/>curl_close($ch); &nbsp;<br \/><font color=\"#0000FF\"><b>echo<\/b><\/font>&nbsp;$output; &nbsp;<br \/><font color=\"#333399\">?<\/font><font color=\"#333399\">&gt;<\/font>&nbsp;&nbsp;<\/div>\n<\/div>\n<p><\/code><\/div>\n<\/div>\n<p>\u5f53\u7136\uff0c\u4f60\u4e5f\u53ef\u4ee5\u5c06\u9009\u9879\u4eec\u8bbe\u5b9a\u4e00\u4e2a\u6570\u7ec4\uff0c\u4ee5\u589e\u52a0\u8bbe\u5b9a\u65f6\u7684\u9605\u8bfb\u5ea6\u3002\u8fd9\u65f6\u5c31\u5f97\u52a8\u7528\u300ccurl_setopt_array()\u300d\u8fd9\u4e2a\u51fd\u5f0f\u4e86\u3002<br \/>\u800c\u6539\u5199\u4e0a\u5217\u7a0b\u5e8f\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<div>\n<div>\n<div><\/div>\n<\/div>\n<div><code><\/p>\n<div style=\"border: 1px solid black; margin-left: auto; margin-right: auto; padding: 3px; font-family: 'Courier New'; font-size: 12px;\">\n<div><font color=\"#333399\">&lt;<\/font><font color=\"#333399\">?<\/font>php&nbsp;&nbsp;<br \/>$ch<font color=\"#333399\">=<\/font>&nbsp;curl_init();&nbsp;&nbsp;<br \/>$options<font color=\"#333399\">=<\/font>&nbsp;<font color=\"#0000FF\"><b>array<\/b><\/font>(CURLOPT_URL&nbsp;<font color=\"#333399\">=<\/font><font color=\"#333399\">&gt;<\/font>&nbsp;<font color=\"#FF00BF\">'www.yahoo.com'<\/font>,&nbsp;&nbsp;<br \/>CURLOPT_HEADER&nbsp;<font color=\"#333399\">=<\/font><font color=\"#333399\">&gt;<\/font>&nbsp;false,&nbsp;&nbsp;<br \/>CURLOPT_RETURNTRANSFER&nbsp;<font color=\"#333399\">=<\/font><font color=\"#333399\">&gt;<\/font>&nbsp;true,&nbsp;&nbsp;<br \/>CURLOPT_USERAGENT&nbsp;<font color=\"#333399\">=<\/font><font color=\"#333399\">&gt;<\/font>&nbsp;<font color=\"#FF00BF\">\"Google&nbsp;Bot\"<\/font>,&nbsp;&nbsp;<br \/>CURLOPT_FOLLOWLOCATION&nbsp;<font color=\"#333399\">=<\/font><font color=\"#333399\">&gt;<\/font>&nbsp;true&nbsp;&nbsp;<br \/>);&nbsp;&nbsp;<br \/>curl_setopt_array($ch,&nbsp;$options);&nbsp;&nbsp;<br \/>$output<font color=\"#333399\">=<\/font>&nbsp;curl_exec($ch);&nbsp;&nbsp;<br \/>curl_close($ch);&nbsp;&nbsp;<br \/><font color=\"#0000FF\"><b>echo<\/b><\/font>&nbsp;$output;&nbsp;&nbsp;<br \/><font color=\"#333399\">?<\/font><font color=\"#333399\">&gt;<\/font>&nbsp;<\/div>\n<\/div>\n<p><\/code><\/div>\n<div><\/div>\n<p>\u672c\u6587\u8f6c\u8f7d\u81ea\uff1a<a href=\"http:\/\/inspire.twgg.org\/c\/programming\/php-curl-teaching.html\">http:\/\/inspire.twgg.org\/c\/programming\/php-curl-teaching.html<\/a>&nbsp;<\/div>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u4e2d\u7684CURL\u51fd\u5f0f\u5e93\uff08Client URL Library Function\uff09 curl_close \u5173\u95ed &hellip; <a href=\"https:\/\/www.yclimw.com\/?p=558\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">PHP CURL \u6559\u5b66<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-558","post","type-post","status-publish","format-standard","hentry","category-17"],"_links":{"self":[{"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/posts\/558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=558"}],"version-history":[{"count":2,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/posts\/558\/revisions"}],"predecessor-version":[{"id":3084,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/posts\/558\/revisions\/3084"}],"wp:attachment":[{"href":"https:\/\/www.yclimw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}