{"id":1887,"date":"2017-08-29T14:44:07","date_gmt":"2017-08-29T06:44:07","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1887"},"modified":"2017-08-29T14:44:07","modified_gmt":"2017-08-29T06:44:07","slug":"linux-curl%e5%bc%80%e6%ba%90%e6%96%87%e4%bb%b6%e4%bc%a0%e8%be%93%e5%b7%a5%e5%85%b7%e5%b8%b8%e7%94%a8%e9%94%99%e8%af%af%e7%a0%81%e6%80%bb%e7%bb%93","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1887","title":{"rendered":"Linux curl(\u5f00\u6e90\u6587\u4ef6\u4f20\u8f93\u5de5\u5177)\u5e38\u7528\u9519\u8bef\u7801\u603b\u7ed3"},"content":{"rendered":"<p>\n\t<a href=\"https:\/\/curl.haxx.se\/\" name=\"curl\" target=\"_blank\" title=\"curl\">curl<\/a> \u662f\u5229\u7528URL\u8bed\u6cd5\u5728\u547d\u4ee4\u884c\u65b9\u5f0f\u4e0b\u5de5\u4f5c\u7684\u5f00\u6e90\u6587\u4ef6\u4f20\u8f93\u5de5\u5177\u3002\u5b83\u88ab\u5e7f\u6cdb\u5e94\u7528\u5728Unix\u3001\u591a\u79cdLinux\u53d1\u884c\u7248\u4e2d\uff0c\u5e76\u4e14\u6709DOS\u548cWin32\u3001Win64\u4e0b\u7684\u79fb\u690d\u7248\u672c\u3002\n<\/p>\n<p>\n\t\u672c\u6587\u603b\u7ed3\u4e86\u5e38\u89c1\u768490\u4e2a curl \u9519\u8bef\u7801\uff0c\u65b9\u4fbf\u4ee5\u540e\u67e5\u770b\u3002\n<\/p>\n<ul>\n<li>\n\t\tCURLE_OK\uff080\uff09\u6240\u6709\u7f5a\u6b3e\u3002\u7ee7\u7eed\u50cf\u5f80\u5e38\u4e00\u6837\u3002\n\t<\/li>\n<li>\n\t\tCURLE_UNSUPPORTED_PROTOCOL\uff081\uff09\u4f60\u7684URL\u4f20\u9012\u7ed9libcurl\u7684\u4f7f\u7528\u534f\u8bae\uff0c\u8fd9libcurl\u7684\u4e0d\u652f\u6301\u3002\u652f\u6301\u53ef\u80fd\u662f\u4f60\u6ca1\u6709\u4f7f\u7528\u4e00\u4e2a\u7f16\u8bd1\u65f6\u7684\u9009\u9879\uff0c\u5b83\u53ef\u4ee5\u662f\u4e00\u4e2a\u62fc\u5199\u9519\u7684\u534f\u8bae\u5b57\u7b26\u4e32\uff0c\u6216\u8005\u53ea\u662f\u4e00\u4e2a\u534f\u8bae\u7684libcurl\u6ca1\u6709\u4ee3\u7801\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FAILED_INIT\uff082\uff09\u975e\u5e38\u65e9\u671f\u7684\u521d\u59cb\u5316\u4ee3\u7801\u5931\u8d25\u3002\u8fd9\u53ef\u80fd\u662f\u5185\u90e8\u9519\u8bef\u6216\u95ee\u9898\uff0c\u8d44\u6e90\u95ee\u9898\uff0c\u4e00\u4e9b\u57fa\u672c\u7684\u4e1c\u897f\u53ef\u80fd\u65e0\u6cd5\u5b8c\u6210\u521d\u59cb\u5316\u65f6\u95f4\u3002\n\t<\/li>\n<li>\n\t\tCURLE_URL_MALFORMAT\uff083\uff09\u8be5\u7f51\u5740\u7684\u683c\u5f0f\u4e0d\u6b63\u786e\u3002\n\t<\/li>\n<li>\n\t\tCURLE_NOT_BUILT_IN\uff084\uff09libcurl\u7684\u5185\u7f6e\u5728\u200b\u200b\u4e00\u4e2a\u7f16\u8bd1\u65f6\u51b3\u5b9a\u6240\u8981\u6c42\u7684\u529f\u80fd\uff0c\u534f\u8bae\u6216\u8d2d\u80a1\u6743\u6ca1\u6709\u88ab\u53d1\u73b0\u3002\u8fd9\u610f\u5473\u7740\uff0c\u4e00\u4e2a\u529f\u80fd\u6216\u9009\u9879\u662f\u4e0d\u542f\u7528\u6216\u660e\u786e\u7981\u7528\u7684libcurl\u5efa\u65f6\uff0c\u4e3a\u4e86\u5f97\u5230\u5b83\u7684\u529f\u80fd\uff0c\u4f60\u5fc5\u987b\u5f97\u5230\u4e00\u4e2a\u91cd\u5efa\u7684libcurl\u7684\u3002\n\t<\/li>\n<li>\n\t\tCURLE_COULDNT_RESOLVE_PROXY\uff085\uff09\u65e0\u6cd5\u89e3\u6790\u4ee3\u7406\u670d\u52a1\u5668\u3002\u4ee3\u7406\u4e3b\u673a\u65e0\u6cd5\u5f97\u5230\u89e3\u51b3\u3002\n\t<\/li>\n<li>\n\t\tCURLE_COULDNT_RESOLVE_HOST\uff086\uff09\u65e0\u6cd5\u89e3\u6790\u4e3b\u673a\u3002\u7ed9\u5b9a\u7684\u8fdc\u7a0b\u4e3b\u673a\u6ca1\u6709\u5f97\u5230\u89e3\u51b3\u3002\n\t<\/li>\n<li>\n\t\tCURLE_COULDNT_CONNECT\uff087\uff09connect\uff08\uff09\u7684\u4e3b\u673a\u6216\u4ee3\u7406\u5931\u8d25\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FTP_WEIRD_SERVER_REPLY\uff088\uff09\u8fde\u63a5\u5230\u4e00\u4e2aFTP\u670d\u52a1\u5668\u540e\uff0clibcurl\u7684\u9884\u671f\u5f97\u5230\u4e00\u5b9a\u7684\u56de\u590d\u8fd4\u56de\u3002\u8fd9\u4e2a\u9519\u8bef\u4ee3\u7801\u8868\u793a\uff0c\u5b83\u6709\u4e00\u4e2a\u5947\u602a\u7684\u6216\u574f\u7684\u7b54\u590d\u3002\u6307\u5b9a\u7684\u8fdc\u7a0b\u670d\u52a1\u5668\u53ef\u80fd\u4e0d\u662f\u4e00\u4e2a\u786e\u5b9a\u7684FTP\u670d\u52a1\u5668\u3002\n\t<\/li>\n<li>\n\t\tCURLE_REMOTE_ACCESS_DENIED\uff089\uff09\u6211\u4eec\u88ab\u62d2\u7edd\u8bbf\u95ee\u7684\u8d44\u6e90\u7684URL\u3002\u5bf9\u4e8eFTP\uff0c\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\u800c\u529b\u56fe\u6539\u53d8\u7684\u8fdc\u7a0b\u76ee\u5f55\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FTP_ACCEPT_FAILED\uff0810\uff09\u5728\u7b49\u5f85\u670d\u52a1\u5668\u7684\u8fde\u63a5\u65f6\uff0c\u4e00\u4e2a\u4e3b\u52a8FTP\u4f1a\u8bdd\u4f7f\u7528\uff0c\u88ab\u9001\u5230\u63a7\u5236\u8fde\u63a5\u6216\u7c7b\u4f3c\u7684\u9519\u8bef\u4ee3\u7801\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FTP_WEIRD_PASS_REPLY\uff0811\uff09\u53d1\u9001\u5230\u670d\u52a1\u5668\u7684FTP\u5bc6\u7801\u540e\uff0clibcurl\u7684\u9884\u8ba1\u6b63\u786e\u7684\u7b54\u590d\u3002\u6b64\u9519\u8bef\u4ee3\u7801\u6307\u793a\u8fd4\u56de\u4e86\u610f\u5916\u7684\u4ee3\u7801\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FTP_ACCEPT_TIMEOUT\uff0812\uff09\u5728\u5f53\u524d\u7684FTP\u4f1a\u8bdd\u5728\u7b49\u5f85\u670d\u52a1\u5668\u8fde\u63a5\uff0cCURLOPT_ACCEPTTIMOUT_MS\uff08\u6216\u5185\u90e8\u9ed8\u8ba4\uff09\uff0c\u8d85\u65f6\u8fc7\u671f\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FTP_WEIRD_PASV_REPLY\uff0813\uff09libcurl\u7684\u5931\u8d25\u4f5c\u4e3a\u4e00\u4e2aPASV\u6216EPSV\u547d\u4ee4\u4ece\u670d\u52a1\u5668\u5f97\u5230\u4e00\u4e2a\u5408\u7406\u7684\u7ed3\u679c\u3002\u670d\u52a1\u5668\u662f\u6709\u7f3a\u9677\u7684\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FTP_WEIRD_227_FORMAT\uff0814\uff09FTP\u670d\u52a1\u5668\u8fd4\u56de\u4e00\u4e2a227\u884c\u4f5c\u4e3a\u4e00\u4e2aPASV\u547d\u4ee4\u7684\u54cd\u5e94\u3002\u5982\u679clibcurl\u7684\u65e0\u6cd5\u89e3\u6790\u8be5\u884c\uff0c\u6b64\u8fd4\u56de\u4ee3\u7801\u88ab\u4f20\u9012\u56de\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FTP_CANT_GET_HOST\uff0815\uff09\u5185\u90e8\u6545\u969c\u67e5\u627e\u4e3b\u673a\u4f7f\u7528\u65b0\u7684\u8fde\u63a5\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FTP_COULDNT_SET_TYPE\uff0817\uff09\u6536\u5230\u4e00\u4e2a\u9519\u8bef\uff0c\u5f53\u8bd5\u56fe\u4f20\u9001\u6a21\u5f0f\u8bbe\u7f6e\u4e3a\u4e8c\u8fdb\u5236\u6216ASCII\u3002\n\t<\/li>\n<li>\n\t\tCURLE_PARTIAL_FILE\uff0818\uff09\u6587\u4ef6\u4f20\u8f93\uff0c\u77ed\u4e8e\u6216\u5927\u4e8e\u9884\u671f\u3002\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\u65f6\uff0c\u670d\u52a1\u5668\u9996\u5148\u62a5\u544a\u9884\u671f\u7684\u4f20\u8f93\u5927\u5c0f\uff0c\u7136\u540e\u63d0\u4f9b\u6570\u636e\u4e0d\u5339\u914d\u524d\u9762\u7ed9\u51fa\u7684\u5927\u5c0f\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FTP_COULDNT_RETR_FILE\uff0819\uff09\u8fd9\u662f\u4e00\u4e2a\u5947\u602a\u7684\u56de\u7b54&ldquo;RETR&rdquo;\u547d\u4ee4\u6216\u4e00\u4e2a\u96f6\u5b57\u8282\u4f20\u8f93\u5b8c\u6210\u3002\n\t<\/li>\n<li>\n\t\tCURLE_QUOTE_ERROR\uff0821\uff09\u5f53\u53d1\u9001\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\uff0c\u81ea\u5b9a\u4e49\u7684&ldquo;QUOTE&rdquo;\u547d\u4ee4\u7684\u4e00\u4e2a\u547d\u4ee4\u8fd4\u56de\u7684\u9519\u8bef\u4ee3\u7801\u4e3a400\u6216\u66f4\u9ad8\uff08\u5bf9\u4e8eFTP\uff09\u6216\u8868\u793a\u4e0d\u6210\u529f\u7684\u5b8c\u6210\u547d\u4ee4\u3002\n\t<\/li>\n<li>\n\t\tCURLE_HTTP_RETURNED_ERROR\uff0822\uff09\u8fd9\u662f\u8fd4\u56deCURLOPT_FAILONERROR\u8bbe\u7f6e\u4e3aTRUE\u548cHTTP\u670d\u52a1\u5668\u8fd4\u56de\u7684\u9519\u8bef\u4ee3\u7801\u662f&gt; = 400\u3002\n\t<\/li>\n<li>\n\t\tCURLE_WRITE_ERROR\uff0823\uff09\u53d1\u751f\u9519\u8bef\uff0c\u5199\u4f5c\u65f6\u63a5\u6536\u5230\u7684\u6570\u636e\u5230\u672c\u5730\u6587\u4ef6\uff0c\u6216\u8005\u8fd4\u56de\u9519\u8beflibcurl\u7684\u4e00\u4e2a\u5199\u56de\u8c03\u3002\n\t<\/li>\n<li>\n\t\tCURLE_UPLOAD_FAILED\uff0825\uff09\u5f00\u59cb\u4e0a\u8f7d\u5931\u8d25\u3002\u5bf9\u4e8eFTP\uff0c\u670d\u52a1\u5668\u901a\u5e38\u5426\u8ba4\u7684STOR\u547d\u4ee4\u3002\u901a\u5e38\u7684\u9519\u8bef\u7f13\u51b2\u533a\u5305\u542b\u4e86\u670d\u52a1\u5668\u7684\u89e3\u91ca\u3002\n\t<\/li>\n<li>\n\t\tCURLE_READ_ERROR\uff0826\uff09\u6709\u4e00\u4e2a\u95ee\u9898\u8bfb\u53d6\u672c\u5730\u6587\u4ef6\u6216\u8fd4\u56de\u4e00\u4e2a\u9519\u8bef\u7684\u8bfb\u56de\u8c03\u3002\n\t<\/li>\n<li>\n\t\tCURLE_OUT_OF_MEMORY\uff0827\uff09\u5185\u5b58\u5206\u914d\u8bf7\u6c42\u5931\u8d25\u3002\u8fd9\u662f\u4e25\u91cd\u7684\u4e0d\u826f\u548c\u6d3b\u52a8\uff0c\u5982\u679c\u53d1\u751f\u8fc7\u4e25\u91cd\u641e\u7838\u4e86\u3002\n\t<\/li>\n<li>\n\t\tCURLE_OPERATION_TIMEDOUT\uff0828\uff09\u64cd\u4f5c\u8d85\u65f6\u3002\u6839\u636e\u6761\u4ef6\u8fbe\u5230\u6307\u5b9a\u7684\u8d85\u65f6\u671f\u95f4\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FTP_PORT_FAILED\uff0830\uff09FTP PORT\u547d\u4ee4\u8fd4\u56de\u9519\u8bef\u3002\u8fd9\u4e3b\u8981\u662f\u5f53\u4f60\u8fd8\u6ca1\u6709\u8db3\u591f\u7684\u5730\u5740\u6307\u5b9a\u4e86\u4e00\u4e2a\u826f\u597d\u7684libcurl\u7684\u4f7f\u7528\u3002SeeCURLOPT_FTPPORT\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FTP_COULDNT_USE_REST\uff0831\uff09FTP REST\u547d\u4ee4\u8fd4\u56de\u9519\u8bef\u3002\u5982\u679c\u670d\u52a1\u5668\u662f\u660e\u667a\u7684\uff0c\u8fd9\u4e0d\u5e94\u8be5\u53d1\u751f\u3002\n\t<\/li>\n<li>\n\t\tCURLE_RANGE_ERROR\uff0833\uff09\u670d\u52a1\u5668\u4e0d\u652f\u6301\u6216\u63a5\u53d7\u8303\u56f4\u8bf7\u6c42\u3002\n\t<\/li>\n<li>\n\t\tCURLE_HTTP_POST_ERROR\uff0834\uff09\u8fd9\u662f\u4e00\u4e2a\u5947\u602a\u7684\u9519\u8bef\uff0c\u4e3b\u8981\u53d1\u751f\u662f\u7531\u4e8e\u5185\u90e8\u7684\u6df7\u4e71\u3002\n\t<\/li>\n<li>\n\t\tCURLE_SSL_CONNECT_ERROR\uff0835\uff09\u51fa\u73b0\u95ee\u9898\u7684\u5730\u65b9\uff0c\u5728SSL \/ TLS\u63e1\u624b\u3002\u4f60\u771f\u6b63\u60f3\u8981\u7684\u7684\u9519\u8bef\u7f13\u51b2\u533a\u548c\u9605\u8bfb\u90ae\u4ef6\uff0c\u56e0\u4e3a\u5b83\u9488\u5bf9\u95ee\u9898\u7a0d\u5fae\u3002\u53ef\u80fd\u662f\u8bc1\u4e66\uff08\u6587\u4ef6\u683c\u5f0f\uff0c\u8def\u5f84\uff0c\u6743\u9650\uff09\uff0c\u5bc6\u7801\uff0c\u548c\u5176\u4ed6\u4eba\u3002\n\t<\/li>\n<li>\n\t\tCURLE_BAD_DOWNLOAD_RESUME\uff0836\uff09\u4e0b\u8f7d\u65e0\u6cd5\u6062\u590d\uff0c\u56e0\u4e3a\u6307\u5b9a\u7684\u504f\u79fb\u91cf\u4e3a\u6587\u4ef6\u7684\u8fb9\u754c\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FILE_COULDNT_READ_FILE\uff0837\uff09\u65e0\u6cd5\u6253\u5f00\u7684\u6587\u4ef6FILE :\/ \/\u3002\u6700\u6709\u53ef\u80fd\u7684\uff0c\u56e0\u4e3a\u8be5\u6587\u4ef6\u7684\u8def\u5f84\u4e0d\u80fd\u8bc6\u522b\u73b0\u6709\u6587\u4ef6\u3002\u4f60\u662f\u5426\u68c0\u67e5\u6587\u4ef6\u7684\u6743\u9650\uff1f\n\t<\/li>\n<li>\n\t\tCURLE_LDAP_CANNOT_BIND\uff0838\uff09LDAP\u65e0\u6cd5\u7ed1\u5b9a\u3002LDAP\u7ed1\u5b9a\u64cd\u4f5c\u5931\u8d25\u3002\n\t<\/li>\n<li>\n\t\tCURLE_LDAP_SEARCH_FAILED\uff0839\uff09LDAP\u641c\u7d22\u5931\u8d25\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FUNCTION_NOT_FOUND\uff0841\uff09\u51fd\u6570\u6ca1\u6709\u627e\u5230\u3002\u4e00\u4e2a\u5fc5\u9700\u7684zlib\u7684\u529f\u80fd\u6ca1\u6709\u88ab\u53d1\u73b0\u3002\n\t<\/li>\n<li>\n\t\tCURLE_ABORTED_BY_CALLBACK\uff0842\uff09\u901a\u8fc7\u56de\u8c03\u4e2d\u6b62\u3002\u8fd4\u56de\u7684\u56de\u8c03&ldquo;\u4e2d\u6b62&rdquo;libcurl\u7684\u3002\n\t<\/li>\n<li>\n\t\tCURLE_BAD_FUNCTION_ARGUMENT\uff0843\uff09\u5185\u90e8\u9519\u8bef\u3002\u51fd\u6570\u8c03\u7528\u4e86\u4e00\u4e2a\u9519\u8bef\u7684\u53c2\u6570\u3002\n\t<\/li>\n<li>\n\t\tCURLE_INTERFACE_FAILED\uff0845\uff09\u63a5\u53e3\u9519\u8bef\u3002\u6307\u5b9a\u7684\u51fa\u63a5\u53e3\u4e0d\u80fd\u4f7f\u7528\u3002\u8bbe\u7f6e\u63a5\u53e3\u4f7f\u7528\u4f20\u51fa\u8fde\u63a5\u7684\u6e90IP\u5730\u5740\u4e0eCURLOPT_INTERFACE\u3002\n\t<\/li>\n<li>\n\t\tCURLE_TOO_MANY_REDIRECTS\uff0847\uff09\u8fc7\u591a\u7684\u91cd\u5b9a\u5411\u3002\u4ee5\u4e0b\u91cd\u5b9a\u5411\u65f6\uff0clibcurl\u7684\u521b\u4e0b\u7684\u6700\u9ad8\u91d1\u989d\u3002\u8bbe\u7f6e\u60a8\u7684\u4e0eCURLOPT_MAXREDIRS\u9650\u5236\u3002\n\t<\/li>\n<li>\n\t\tCURLE_UNKNOWN_OPTION\uff0848\uff09\u65e0\u6cd5\u8bc6\u522b\u7684\u9009\u9879\u4f20\u9012\u7ed9libcurl\u7684\/\u3002\u8bf7\u53c2\u9605\u76f8\u5e94\u7684\u6587\u6863\u3002\u8fd9\u662f\u6700\u6709\u53ef\u80fd\u5728\u7a0b\u5e8f\u4e2d\u4f7f\u7528libcurl\u7684\u95ee\u9898\u3002\u7684\u7684\u9519\u8bef\u7f13\u51b2\u533a\u53ef\u80fd\u5305\u542b\u51c6\u786e\u7684\u9009\u9879\uff0c\u5b83\u6d89\u53ca\u66f4\u5177\u4f53\u7684\u4fe1\u606f\u3002\n\t<\/li>\n<li>\n\t\tCURLE_TELNET_OPTION_SYNTAX\uff0849\uff09telnet\u9009\u9879\u5b57\u7b26\u4e32\u88ab\u975e\u6cd5\u683c\u5f0f\u5316\u3002\n\t<\/li>\n<li>\n\t\tCURLE_PEER_FAILED_VERIFICATION\uff0851\uff09\u8fdc\u7a0b\u670d\u52a1\u5668\u7684SSL\u8bc1\u4e66\u6216SSH\u7684MD5\u6307\u7eb9\u88ab\u8ba4\u4e3a\u662f\u4e0d\u6b63\u5e38\u7684\u3002\n\t<\/li>\n<li>\n\t\tCURLE_GOT_NOTHING\uff0852\uff09\u6ca1\u6709\u4ece\u670d\u52a1\u5668\u8fd4\u56de\u7684\uff0c\u548c\u5f97\u5230\u4ec0\u4e48\u7684\u60c5\u51b5\u4e0b\uff0c\u88ab\u8ba4\u4e3a\u662f\u4e00\u4e2a\u9519\u8bef\u3002\n\t<\/li>\n<li>\n\t\tCURLE_SSL_ENGINE_NOTFOUND\uff0853\uff09\u672a\u627e\u5230\u6307\u5b9a\u7684\u52a0\u5bc6\u5f15\u64ce\u3002\n\t<\/li>\n<li>\n\t\tCURLE_SSL_ENGINE_SETFAILED\uff0854\uff09\u8bbe\u7f6e\u6240\u9009\u7684SSL\u52a0\u5bc6\u5f15\u64ce\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5931\u8d25\uff01\n\t<\/li>\n<li>\n\t\tCURLE_SEND_ERROR\uff0855\uff09\u53d1\u9001\u7f51\u7edc\u6570\u636e\u5931\u8d25\u3002\n\t<\/li>\n<li>\n\t\tCURLE_RECV_ERROR\uff0856\uff09\u5982\u679c\u63a5\u6536\u7f51\u7edc\u6570\u636e\u3002\n\t<\/li>\n<li>\n\t\tCURLE_SSL_CERTPROBLEM\uff0858\uff09\u4e0e\u5f53\u5730\u7684\u5ba2\u6237\u7aef\u8bc1\u4e66\u7684\u95ee\u9898\u3002\n\t<\/li>\n<li>\n\t\tCURLE_SSL_CIPHER\uff0859\uff09\u65e0\u6cd5\u4f7f\u7528\u6307\u5b9a\u7684\u5bc6\u7801\u3002\n\t<\/li>\n<li>\n\t\tCURLE_SSL_CACERT\uff0860\uff09\u540c\u4faa\u51ed\u8bc1\u4e0d\u80fd\u4e0e\u5df2\u77e5\u7684CA\u8bc1\u4e66\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\u3002\n\t<\/li>\n<li>\n\t\tCURLE_BAD_CONTENT_ENCODING\uff0861\uff09\u65e0\u6cd5\u8bc6\u522b\u7684\u4f20\u8f93\u7f16\u7801\u3002\n\t<\/li>\n<li>\n\t\tCURLE_LDAP_INVALID_URL\uff0862\uff09\u65e0\u6548\u7684LDAP URL\u3002\n\t<\/li>\n<li>\n\t\tCURLE_FILESIZE_EXCEEDED\uff0863\uff09\u6700\u5927\u6587\u4ef6\u5927\u5c0f\u8d85\u8fc7\u3002\n\t<\/li>\n<li>\n\t\tCURLE_USE_SSL_FAILED\uff0864\uff09\u8981\u6c42FTP SSL\u6c34\u5e73\u5931\u8d25\u3002\n\t<\/li>\n<li>\n\t\tCURLE_SEND_FAIL_REWIND\uff0865\uff09\u5728\u505a\u4e86\u4e00\u4e2a\u53d1\u9001\u64cd\u4f5c\u5377\u66f2\uff0c\u5012\u5e26\u91cd\u4f20\u7684\u6570\u636e\uff0c\u4f46\u7684\u5012\u5e26\u64cd\u4f5c\u5931\u8d25\u3002\n\t<\/li>\n<li>\n\t\tCURLE_SSL_ENGINE_INITFAILED\uff0866\uff09SSL\u53d1\u52a8\u673a\u542f\u52a8\u5931\u8d25\u3002\n\t<\/li>\n<li>\n\t\tCURLE_LOGIN_DENIED\uff0867\uff09\u8fdc\u7a0b\u670d\u52a1\u5668\u62d2\u7edd\u5377\u66f2\u767b\u5f55\uff08\u52a0\u51657.13.1\uff09\n\t<\/li>\n<li>\n\t\tCURLE_TFTP_NOTFOUND\uff0868\uff09TFTP\u670d\u52a1\u5668\u4e0a\u627e\u4e0d\u5230\u6587\u4ef6\u3002\n\t<\/li>\n<li>\n\t\tCURLE_TFTP_PERM\uff0869\uff09TFTP\u670d\u52a1\u5668\u4e0a\u7684\u6743\u9650\u95ee\u9898\u3002\n\t<\/li>\n<li>\n\t\tCURLE_REMOTE_DISK_FULL\uff0870\uff09\u51fa\u5728\u670d\u52a1\u5668\u4e0a\u7684\u78c1\u76d8\u7a7a\u95f4\u3002\n\t<\/li>\n<li>\n\t\tCURLE_TFTP_ILLEGAL\uff0871\uff09\u975e\u6cd5\u7684TFTP\u64cd\u4f5c\u3002\n\t<\/li>\n<li>\n\t\tCURLE_TFTP_UNKNOWNID\uff0872\uff09\u672a\u77e5TFTP\u4f20\u8f93ID\u3002\n\t<\/li>\n<li>\n\t\tCURLE_REMOTE_FILE_EXISTS\uff0873\uff09\u6587\u4ef6\u5df2\u7ecf\u5b58\u5728\uff0c\u5e76\u4e0d\u4f1a\u88ab\u8986\u76d6\u3002\n\t<\/li>\n<li>\n\t\tCURLE_TFTP_NOSUCHUSER\uff0874\uff09\u8fd9\u4e2a\u9519\u8bef\u4e0d\u5e94\u8be5\u88ab\u8fd4\u56de\u6b63\u5e38\u5de5\u4f5c\u7684TFTP\u670d\u52a1\u5668\u3002\n\t<\/li>\n<li>\n\t\tCURLE_CONV_FAILED\uff0875\uff09\u5b57\u7b26\u8f6c\u6362\u5931\u8d25\u3002\n\t<\/li>\n<li>\n\t\tCURLE_CONV_REQD\uff0876\uff09\u8c03\u7528\u8005\u5fc5\u987b\u6ce8\u518c\u8f6c\u6362\u56de\u8c03\u3002\n\t<\/li>\n<li>\n\t\tCURLE_SSL_CACERT_BADFILE\uff0877\uff09\u95ee\u9898\u8bfb\u53d6SSL\u8bc1\u4e66\uff08\u8def\u5f84\u7684\u8bbf\u95ee\u6743\u9650\uff1f\uff09\n\t<\/li>\n<li>\n\t\tCURLE_REMOTE_FILE_NOT_FOUND\uff0878\uff09\u4e0d\u5b58\u5728\u7684URL\u5f15\u7528\u7684\u8d44\u6e90\u3002\n\t<\/li>\n<li>\n\t\tCURLE_SSH\uff0879\uff09\u672a\u6307\u5b9a\u7684\u9519\u8bef\u53d1\u751f\u5728SSH\u4f1a\u8bdd\u3002\n\t<\/li>\n<li>\n\t\tCURLE_SSL_SHUTDOWN_FAILED\uff0880\uff09\u5173\u95edSSL\u8fde\u63a5\u5931\u8d25\u3002\n\t<\/li>\n<li>\n\t\tCURLE_AGAIN\uff0881\uff09Socket\u662f\u6ca1\u6709\u51c6\u5907\u597d\u53d1\u9001\/\u63a5\u6536\u7b49\u5f85\uff0c\u76f4\u5230\u5b83\u51c6\u5907\u597d\u4e86\uff0c\u7136\u540e\u518d\u8bd5\u4e00\u6b21\u3002\u6b64\u8fd4\u56de\u4ee3\u7801\u4ec5\u8fd4\u56de\u4ece curl_easy_recv\uff083\uff09 &nbsp;\u548c &nbsp;\uff083\uff09 \uff08\u52a0\u51657.18.2 curl_easy_send\uff09\uff0c\n\t<\/li>\n<li>\n\t\tCURLE_SSL_CRL_BADFILE\uff0882\uff09\u65e0\u6cd5\u52a0\u8f7dCRL\u6587\u4ef6\uff08\u57287.19.0\u7248\u52a0\u5165\uff09\n\t<\/li>\n<li>\n\t\tCURLE_SSL_ISSUER_ERROR\uff0883\uff09\u53d1\u884c\u4eba\u68c0\u67e5\u5931\u8d25\uff08\u57287.19.0\u7248\u52a0\u5165\uff09\n\t<\/li>\n<li>\n\t\tCURLE_FTP_PRET_FAILED\uff0884\uff09FTP\u670d\u52a1\u5668\u4e0d\u7406\u89e3\u7684PRET\u547d\u4ee4\uff0c\u6240\u6709\u4e0d\u652f\u6301\u7ed9\u5b9a\u7684\u53c2\u6570\u3002\u8981\u5c0f\u5fc3\u65f6usingCURLOPT_CUSTOMREQUEST\uff0c\u81ea\u5b9a\u4e49\u5217\u8868&ldquo;\u547d\u4ee4\u5c06\u53d1\u9001PRET CMD\u524dPASV\u4ee5\u53ca\u3002\uff08\u6dfb\u52a0\u57287.20.0\uff09\n\t<\/li>\n<li>\n\t\tCURLE_RTSP_CSEQ_ERROR\uff0885\uff09RTSP\u7684Cseq\u53f7\u7801\u4e0d\u5339\u914d\u3002\n\t<\/li>\n<li>\n\t\tCURLE_RTSP_SESSION_ERROR\uff0886\uff09RTSP\u4f1a\u8bdd\u6807\u8bc6\u7b26\u4e0d\u5339\u914d\u3002CURLE_FTP_BAD_FILE_LIST\uff0887\uff09\u65e0\u6cd5\uff0c\u89e3\u6790FTP\u6587\u4ef6\u5217\u8868\uff08\u5728FTP\u901a\u914d\u7b26\u4e0b\u8f7d\uff09\u3002\n\t<\/li>\n<li>\n\t\tCURLE_CHUNK_FAILED\uff0888\uff09\u5757\u56de\u8c03\u62a5\u544a\u9519\u8bef\u3002\n\t<\/li>\n<li>\n\t\tCURLE_OBSOLETE *\u8fd9\u4e9b\u9519\u8bef\u4ee3\u7801\u6c38\u8fdc\u4e0d\u4f1a\u8fd4\u56de\u3002\u5b83\u4eec\u88ab\u7528\u6765\u5728\u4e00\u4e2a\u8001\u7684libcurl\u7248\u672c\uff0c\u5f53\u524d\u672a\u4f7f\u7528\u3002\n\t<\/li>\n<\/ul>\n<p>\n\t\u4ee5\u4e0a90\u4e2a\u5e38\u89c1\u7684\u9519\u8bef\u7801\u65b9\u4fbf\u4ee5\u540e\u4f7f\u7528\u67e5\u9605\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1887\">Linux curl(\u5f00\u6e90\u6587\u4ef6\u4f20\u8f93\u5de5\u5177)\u5e38\u7528\u9519\u8bef\u7801\u603b\u7ed3<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>curl \u662f\u5229\u7528URL\u8bed\u6cd5\u5728\u547d\u4ee4\u884c\u65b9\u5f0f\u4e0b\u5de5\u4f5c\u7684\u5f00\u6e90\u6587\u4ef6\u4f20\u8f93\u5de5\u5177\u3002\u5b83\u88ab\u5e7f\u6cdb\u5e94\u7528\u5728Unix\u3001\u591a\u79cdLinux\u53d1\u884c\u7248\u4e2d [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[118],"tags":[905,706],"class_list":["post-1887","post","type-post","status-publish","format-standard","hentry","category-ndisdevelop","tag-curl","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1887"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1887\/revisions"}],"predecessor-version":[{"id":1888,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1887\/revisions\/1888"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}