curl: (6) Could not resolve host: application

      網友投稿 3797 2025-03-31

      官方文檔


      curl -X PUT -H 'Content-Type: application/x-www-form-urlencoded' -H 'Authorization: Bearer WMte3bGuOukEeiTkNP4grL7iwAAAAAAAAAAAAAAAAAAAAGL4CTw6XgR6LaXXVmNX4QCAgMAAAFnKdc-ZgBPGgBFTrLhhyK8woMEI005emtrLJFJV6aoxsZSioSIZkr5kw12' -d 'avatar=http://www.easemob.com/avatar.png&ext=ext&nickname=nickname' 'http://a1.easemob.com/easemob-demo/testapp/metadata/user/user1'

      復制后運行, curl: (6) Could not resolve host: application

      去curl官方網站查看:https://curl.se/docs/manpage.html

      6? ? Couldn't resolve host. The given remote host could not be resolved.

      6

      無法解析主機地址

      無法解析主機。無法解析給定的遠程主機。

      官方錯誤碼

      錯誤碼如下 EXIT CODES There are a bunch of different error codes and their corresponding error messages that may appear under error conditions. At the time of this writing, the exit codes are: 1 Unsupported protocol. This build of curl has no support for this protocol. 2 Failed to initialize. 3 URL malformed. The syntax was not correct. 4 A feature or option that was needed to perform the desired request was not enabled or was explicitly disabled at build-time. To make curl able to do this, you probably need another build of libcurl! 5 Couldn't resolve proxy. The given proxy host could not be resolved. 6 Couldn't resolve host. The given remote host could not be resolved. 7 Failed to connect to host. 8 Weird server reply. The server sent data curl couldn't parse. 9 FTP access denied. The server denied login or denied access to the particular resource or directory you wanted to reach. Most often you tried to change to a directory that doesn't exist on the server. 10 FTP accept failed. While waiting for the server to connect back when an active FTP session is used, an error code was sent over the control connection or similar. 11 FTP weird PASS reply. Curl couldn't parse the reply sent to the PASS request. 12 During an active FTP session while waiting for the server to connect back to curl, the timeout expired. 13 FTP weird PASV reply, Curl couldn't parse the reply sent to the PASV request. 14 FTP weird 227 format. Curl couldn't parse the 227-line the server sent. 15 FTP can't get host. Couldn't resolve the host IP we got in the 227-line. 16 HTTP/2 error. A problem was detected in the HTTP2 framing layer. This is somewhat generic and can be one out of several problems, see the error message for details. 17 FTP couldn't set binary. Couldn't change transfer method to binary. 18 Partial file. Only a part of the file was transferred. 19 FTP couldn't download/access the given file, the RETR (or similar) command failed. 21 FTP quote error. A quote command returned error from the server. 22 HTTP page not retrieved. The requested url was not found or returned another error with the HTTP error code being 400 or above. This return code only appears if -f, --fail is used. 23 Write error. Curl couldn't write data to a local filesystem or similar. 25 FTP couldn't STOR file. The server denied the STOR operation, used for FTP uploading. 26 Read error. Various reading problems. 27 Out of memory. A memory allocation request failed. 28 Operation timeout. The specified time-out period was reached according to the conditions. 30 FTP PORT failed. The PORT command failed. Not all FTP servers support the PORT command, try doing a transfer using PASV instead! 31 FTP couldn't use REST. The REST command failed. This command is used for resumed FTP transfers. 33 HTTP range error. The range "command" didn't work. 34 HTTP post error. Internal post-request generation error. 35 SSL connect error. The SSL handshaking failed. 36 Bad download resume. Couldn't continue an earlier aborted download. 37 FILE couldn't read file. Failed to open the file. Permissions? 38 LDAP cannot bind. LDAP bind operation failed. 39 LDAP search failed. 41 Function not found. A required LDAP function was not found. 42 Aborted by callback. An application told curl to abort the operation. 43 Internal error. A function was called with a bad parameter. 45 Interface error. A specified outgoing interface could not be used. 47 Too many redirects. When following redirects, curl hit the maximum amount. 48 Unknown option specified to libcurl. This indicates that you passed a weird option to curl that was passed on to libcurl and rejected. Read up in the manual! 49 Malformed telnet option. 51 The peer's SSL certificate or SSH MD5 fingerprint was not OK. 52 The server didn't reply anything, which here is considered an error. 53 SSL crypto engine not found. 54 Cannot set SSL crypto engine as default. 55 Failed sending network data. 56 Failure in receiving network data. 58 Problem with the local certificate. 59 Couldn't use specified SSL cipher. 60 Peer certificate cannot be authenticated with known CA certificates. 61 Unrecognized transfer encoding. 62 Invalid LDAP URL. 63 Maximum file size exceeded. 64 Requested FTP SSL level failed. 65 Sending the data requires a rewind that failed. 66 Failed to initialise SSL Engine. 67 The user name, password, or similar was not accepted and curl failed to log in. 68 File not found on TFTP server. 69 Permission problem on TFTP server. 70 Out of disk space on TFTP server. 71 Illegal TFTP operation. 72 Unknown TFTP transfer ID. 73 File already exists (TFTP). 74 No such user (TFTP). 75 Character conversion failed. 76 Character conversion functions required. 77 Problem reading the SSL CA cert (path? access rights?). 78 The resource referenced in the URL does not exist. 79 An unspecified error occurred during the SSH session. 80 Failed to shut down the SSL connection. 82 Could not load CRL file, missing or wrong format (added in 7.19.0). 83 Issuer check failed (added in 7.19.0). 84 The FTP PRET command failed. 85 Mismatch of RTSP CSeq numbers. 86 Mismatch of RTSP Session Identifiers. 87 Unable to parse FTP file list. 88 FTP chunk callback reported error. 89 No connection available, the session will be queued. 90 SSL public key does not matched pinned public key. 91 Invalid SSL certificate status. 92 Stream error in HTTP/2 framing layer. 93 An API function was called from inside a callback. 94 An authentication function returned an error. 95 A problem was detected in the HTTP/3 layer. This is somewhat generic and can be one out of several problems, see the error message for details. 96 QUIC connection error. This error may be caused by an SSL library error. QUIC is the protocol used for HTTP/3 transfers. XX More error codes will appear here in future releases. The existing ones are meant to never change.

      CURL狀態碼列表

      狀態碼

      狀態原因

      解釋

      0

      正常訪問

      1

      錯誤的協議

      未支持的協議。此版cURL 不支持這一協議。

      2

      初始化代碼失敗

      初始化失敗。

      3

      URL格式不正確

      URL 格式錯誤。語法不正確。

      4

      請求協議錯誤

      5

      無法解析代理

      無法解析代理。無法解析給定代理主機。

      6

      無法解析主機地址

      無法解析主機。無法解析給定的遠程主機。

      7

      無法連接到主機

      無法連接到主機。

      8

      遠程服務器不可用

      FTP 非正常的服務器應答。cURL 無法解析服務器發送的數據。

      9

      訪問資源錯誤

      FTP 訪問被拒絕。服務器拒絕登入或無法獲取您想要的特定資源或目錄。最有可

      能的是您試圖進入一個在此服務器上不存在的目錄。

      11

      FTP密碼錯誤

      FTP 非正常的PASS 回復。cURL 無法解析發送到PASS 請求的應答。

      13

      結果錯誤

      FTP 非正常的的PASV 應答,cURL 無法解析發送到PASV 請求的應答。

      14

      FTP回應PASV命令

      FTP 非正常的227格式。cURL 無法解析服務器發送的227行。

      15

      內部故障

      FTP 無法連接到主機。無法解析在227行中獲取的主機IP。

      17

      設置傳輸模式為二進制

      FTP 無法設定為二進制傳輸。無法改變傳輸方式到二進制。

      18

      文件傳輸短或大于預期

      部分文件。只有部分文件被傳輸。

      19

      RETR命令傳輸完成

      FTP 不能下載/訪問給定的文件, RETR (或類似)命令失敗。

      21

      命令成功完成

      FTP quote 錯誤。quote 命令從服務器返回錯誤。

      22

      返回正常

      HTTP 找不到網頁。找不到所請求的URL 或返回另一個HTTP 400或以上錯誤。

      此返回代碼只出現在使用了-f/--fail 選項以后。

      23

      數據寫入失敗

      寫入錯誤。cURL 無法向本地文件系統或類似目的寫入數據。

      25

      無法啟動上傳

      FTP 無法STOR 文件。服務器拒絕了用于FTP 上傳的STOR 操作。

      26

      回調錯誤

      讀錯誤。各類讀取問題。

      27

      內存分配請求失敗

      內存不足。內存分配請求失敗。

      28

      訪問超時

      操作超時。到達指定的超時期限條件。

      30

      FTP端口錯誤

      FTP PORT 失敗。PORT 命令失敗。并非所有的FTP 服務器支持PORT 命令,請

      嘗試使用被動(PASV)傳輸代替!

      31

      FTP錯誤

      FTP 無法使用REST 命令。REST 命令失敗。此命令用來恢復的FTP 傳輸。

      33

      不支持請求

      HTTP range 錯誤。range "命令"不起作用。

      34

      內部發生錯誤

      HTTP POST 錯誤。內部POST 請求產生錯誤。

      35

      SSL/TLS握手失敗

      SSL 連接錯誤。SSL 握手失敗。

      36

      下載無法恢復

      FTP 續傳損壞。不能繼續早些時候被中止的下載。

      37

      文件權限錯誤

      文件無法讀取。無法打開文件。權限問題?

      38

      LDAP可沒有約束力

      curl: (6) Could not resolve host: application

      LDAP 無法綁定。LDAP 綁定(bind)操作失敗。

      39

      LDAP搜索失敗

      LDAP 搜索失敗。

      41

      函數沒有找到

      功能無法找到。無法找到必要的LDAP 功能。

      42

      中止的回調

      由回調終止。應用程序告知cURL 終止運作。

      43

      內部錯誤

      內部錯誤。由一個不正確參數調用了功能。

      45

      接口錯誤

      接口錯誤。指定的外發接口無法使用。

      47

      過多的重定向

      過多的重定向。cURL 達到了跟隨重定向設定的最大限額跟

      48

      無法識別選項

      指定了未知TELNET 選項。

      49

      TELNET格式錯誤

      不合式的telnet 選項。

      51

      遠程服務器的SSL證書

      peer 的SSL 證書或SSH 的MD5指紋沒有確定。

      52

      服務器無返回內容

      服務器無任何應答,該情況在此處被認為是一個錯誤。

      53

      加密引擎未找到

      找不到SSL 加密引擎。

      54

      設定默認SSL加密失敗

      無法將SSL 加密引擎設置為默認。

      55

      無法發送網絡數據

      發送網絡數據失敗。

      56

      衰竭接收網絡數據

      在接收網絡數據時失敗。

      57

      58

      本地客戶端證書

      本地證書有問題。

      59

      無法使用密碼

      無法使用指定的SSL 密碼。

      60

      憑證無法驗證

      peer 證書無法被已知的CA 證書驗證。

      61

      無法識別的傳輸編碼

      無法辨識的傳輸編碼。

      62

      無效的LDAP URL

      無效的LDAP URL。

      63

      文件超過最大大小

      超過最大文件尺寸。

      64

      FTP失敗

      要求的FTP 的SSL 水平失敗。

      65

      倒帶操作失敗

      發送此數據需要的回卷(rewind)失敗。

      66

      SSL引擎失敗

      初始化SSL 引擎失敗。

      67

      服務器拒絕登錄

      用戶名、密碼或類似的信息未被接受,cURL 登錄失敗。

      68

      未找到文件

      在TFTP 服務器上找不到文件。

      69

      無權限

      TFTP 服務器權限有問題。

      70

      超出服務器磁盤空間

      TFTP 服務器磁盤空間不足。

      71

      非法TFTP操作

      非法的TFTP 操作。

      72

      未知TFTP傳輸的ID

      未知TFTP 傳輸編號(ID)。

      73

      文件已經存在

      文件已存在(TFTP) 。

      74

      錯誤TFTP服務器

      無此用戶(TFTP) 。

      75

      字符轉換失敗

      字符轉換失敗。

      76

      必須記錄回調

      需要字符轉換功能。

      77

      CA證書權限

      讀SSL 證書出現問題(路徑?訪問權限? ) 。

      78

      URL中引用資源不存在

      URL 中引用的資源不存在。

      79

      錯誤發生在SSH會話

      SSH 會話期間發生一個未知錯誤。

      80

      無法關閉SSL連接

      未能關閉SSL 連接。

      81

      服務未準備

      82

      無法載入CRL文件

      無法加載CRL 文件,丟失或格式不正確(在7.19.0版中增加) 。

      83

      發行人檢查失敗

      簽發檢查失敗(在7.19.0版中增加) 。

      84

      FTP PRET命令失敗

      85

      RTSP:CSeq編號不匹配

      86

      RTSP:會話標識符不匹配

      87

      無法解析FTP文件列表

      88

      FTP塊回調報告錯誤

      89

      沒有可用的連接,會話將排隊

      90

      SSL公鑰與固定公鑰不匹配

      91

      SSL證書狀態無效

      92

      HTTP / 2框架層中的流錯誤

      XX

      其他

      更多錯誤代碼將在以后的版本中顯示。現有的那些永遠都不會改變。

      找到了原因,那為什么會出現這個錯誤,我復制的是官方文檔,理論不應該出現這個錯誤,難道是官方文檔寫錯了。

      官方文檔是當引號,我使用了windows環境。命令內容應該不會有問題,會不會是單引號的問題?

      百度一下,cmd單引號和雙引號

      找了這篇文章: cmd - Windows批處理文件中的單引號有什么作用? 我最近在Windows cmd中運行了一個帶有單引號的命令,發現它的行為不符合我的預期。 從嘗試使用Google“ Windows批處理單引號與雙引號”開始,我發現了幾篇文章,人們在其中詢問有關Windows將雙引號視為雙引號,以及bash如何區別對待單引號和雙引號的問題。但是,我無法輕易找到Windows批處理命令中單引號的確切解釋。 那么Windows批處理文件中的單引號是什么呢?他們是否執行任何形式的報價功能?

      答復: cmd.exe命令處理器根本不使用單引號,除非將命令括在FOR / F語句中運行: for /f %%A in ('someCommand') do ... 或者,如果使用USEBACKQ選項,則指定要由FOR / F處理的字符串: for /f "usebackq" %%A in ('some string') do ... cmd.exe處理的所有其他引用都用雙引號引起來。但是,有些Windows實用程序(外部命令)(例如WMIC)將單引號用于自己的引用目的。但是沒有標準-每個實用程序都可以自由解釋單引號。 cmd.exe與各種命令行實用程序使用的不一致的轉義和引用規則經常使查找任何給定情況所需的正確語法變得困難。 這是有關"對cmd.exe使用雙引號的一些重要說明。 雙引號是一個簡單的狀態機。第一個"引用打開,第二個引用關閉。 用引號引起來的所有特殊字符都被當作文字值,但總是%和字符除外;!如果啟用了延遲擴展,則該^字符;如果啟用了延遲擴展,則該字符!也出現在行中。 如果引用已關閉,則可以轉義一個"as^"以防止其打開引用。但是一旦報價成功,您就無法逃脫閉幕式"。下一個"將始終關閉引用。

      然后把命令中的單引號改成雙引號執行

      執行成功

      FTP Windows

      版權聲明:本文內容由網絡用戶投稿,版權歸原作者所有,本站不擁有其著作權,亦不承擔相應法律責任。如果您發現本站中有涉嫌抄襲或描述失實的內容,請聯系我們jiasou666@gmail.com 處理,核實后本網站將在24小時內刪除侵權內容。

      版權聲明:本文內容由網絡用戶投稿,版權歸原作者所有,本站不擁有其著作權,亦不承擔相應法律責任。如果您發現本站中有涉嫌抄襲或描述失實的內容,請聯系我們jiasou666@gmail.com 處理,核實后本網站將在24小時內刪除侵權內容。

      上一篇:電腦表格軟件打不開怎么回事?
      下一篇:excel函數兩日期間隔天數的計算方法
      相關文章
      亚洲性久久久影院| 亚洲最大福利视频网站| 亚洲国产精品无码久久久久久曰| 亚洲国产成人久久精品影视| 在线日韩日本国产亚洲| 亚洲女同成人AⅤ人片在线观看| 深夜国产福利99亚洲视频| 亚洲熟妇少妇任你躁在线观看| 亚洲自国产拍揄拍| 亚洲乱码一二三四区乱码| 亚洲影视一区二区| 亚洲精品在线免费观看| 亚洲精品自在线拍| 亚洲国产成+人+综合| 亚洲六月丁香六月婷婷色伊人| 亚洲网站在线免费观看| 亚洲成AV人片久久| 亚洲成人黄色在线| 亚洲va乱码一区二区三区| 亚洲天堂2016| 亚洲乱色伦图片区小说| 久久精品国产亚洲av品善| AV激情亚洲男人的天堂国语| 亚洲av成人一区二区三区在线播放| 亚洲码欧美码一区二区三区| 亚洲精品天堂无码中文字幕| 亚洲色大18成人网站WWW在线播放| 亚洲综合久久成人69| 亚洲人成电影青青在线播放| 亚洲最大的成人网| 国产亚洲精品成人AA片| 亚洲成av人片在线天堂无| 亚洲欧美日韩中文二区| 亚洲AV网一区二区三区| 亚洲日本中文字幕一区二区三区| 亚洲成A人片在线观看中文| 久久精品国产精品亚洲人人| 久久亚洲国产精品一区二区| 亚洲综合在线成人一区| 中文字幕亚洲码在线| 国产亚洲精品成人久久网站|