`

WinInet 错误代码 (12001 到 12156)

阅读更多
在 Microsoft Win 32 Internet (WinInet) API 提供具有轻松访问的独立应用程序以标准的 Internet 协议 (例如 Gopher、 FTP 和 HTTP。 WinInet API 提取到 Win 32 开发人员所熟悉的高级别接口的协议。


以下是 WinInet 函数返回的错误代码的列表: Code Error Message and Description ----- -----------...

<script type="text/javascript"> loadTOCNode(1, 'moreinformation'); </script> 以下是 WinInet 函数返回的错误代码的列表:

   Code        Error Message and Description
   -----       -----------------------------
   12001       ERROR_INTERNET_OUT_OF_HANDLES
               No more handles could be generated at this time.

   12002       ERROR_INTERNET_TIMEOUT
               The request has timed out.

   12003       ERROR_INTERNET_EXTENDED_ERROR
               An extended error was returned from the server. This is
               typically a string or buffer containing a verbose error
               message. Call InternetGetLastResponseInfo to retrieve the
               error text.

   12004       ERROR_INTERNET_INTERNAL_ERROR
               An internal error has occurred.

   12005       ERROR_INTERNET_INVALID_URL
               The URL is invalid.

   12006       ERROR_INTERNET_UNRECOGNIZED_SCHEME
               The URL scheme could not be recognized or is not supported.

   12007       ERROR_INTERNET_NAME_NOT_RESOLVED
               The server name could not be resolved.

   12008       ERROR_INTERNET_PROTOCOL_NOT_FOUND
               The requested protocol could not be located.

   12009       ERROR_INTERNET_INVALID_OPTION
               A request to InternetQueryOption or InternetSetOption
               specified an invalid option value.

   12010       ERROR_INTERNET_BAD_OPTION_LENGTH
               The length of an option supplied to InternetQueryOption or
               InternetSetOption is incorrect for the type of option
               specified.

   12011       ERROR_INTERNET_OPTION_NOT_SETTABLE
               The request option cannot be set, only queried.

   12012       ERROR_INTERNET_SHUTDOWN
               The Win32 Internet function support is being shut down or
               unloaded.

   12013       ERROR_INTERNET_INCORRECT_USER_NAME
               The request to connect and log on to an FTP server could
               not be completed because the supplied user name is
               incorrect.

   12014       ERROR_INTERNET_INCORRECT_PASSWORD
               The request to connect and log on to an FTP server could
               not be completed because the supplied password is
               incorrect.

   12015       ERROR_INTERNET_LOGIN_FAILURE
               The request to connect to and log on to an FTP server
               failed.

   12016       ERROR_INTERNET_INVALID_OPERATION
               The requested operation is invalid.

   12017       ERROR_INTERNET_OPERATION_CANCELLED
               The operation was canceled, usually because the handle on
               which the request was operating was closed before the
               operation completed.

   12018       ERROR_INTERNET_INCORRECT_HANDLE_TYPE
               The type of handle supplied is incorrect for this
               operation.

   12019       ERROR_INTERNET_INCORRECT_HANDLE_STATE
               The requested operation cannot be carried out because the
               handle supplied is not in the correct state.

   12020       ERROR_INTERNET_NOT_PROXY_REQUEST
               The request cannot be made via a proxy.

   12021       ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND
               A required registry value could not be located.

   12022       ERROR_INTERNET_BAD_REGISTRY_PARAMETER
               A required registry value was located but is an incorrect
               type or has an invalid value.

   12023       ERROR_INTERNET_NO_DIRECT_ACCESS
               Direct network access cannot be made at this time.

   12024       ERROR_INTERNET_NO_CONTEXT
               An asynchronous request could not be made because a zero
               context value was supplied.

   12025       ERROR_INTERNET_NO_CALLBACK
               An asynchronous request could not be made because a
               callback function has not been set.

   12026       ERROR_INTERNET_REQUEST_PENDING
               The required operation could not be completed because one
               or more requests are pending.

   12027       ERROR_INTERNET_INCORRECT_FORMAT
               The format of the request is invalid.

   12028       ERROR_INTERNET_ITEM_NOT_FOUND
               The requested item could not be located.

   12029       ERROR_INTERNET_CANNOT_CONNECT
               The attempt to connect to the server failed.

   12030       ERROR_INTERNET_CONNECTION_ABORTED
               The connection with the server has been terminated.

   12031       ERROR_INTERNET_CONNECTION_RESET
               The connection with the server has been reset.

   12032       ERROR_INTERNET_FORCE_RETRY
               Calls for the Win32 Internet function to redo the request.

   12033       ERROR_INTERNET_INVALID_PROXY_REQUEST
               The request to the proxy was invalid.

   12036       ERROR_INTERNET_HANDLE_EXISTS
               The request failed because the handle already exists.

   12037       ERROR_INTERNET_SEC_CERT_DATE_INVALID
               SSL certificate date that was received from the server is
               bad. The certificate is expired.

   12038       ERROR_INTERNET_SEC_CERT_CN_INVALID
               SSL certificate common name (host name field) is incorrect.
               For example, if you entered www.server.com and the common
               name on the certificate says www.different.com.

   12039       ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR
               The application is moving from a non-SSL to an SSL
               connection because of a redirect.

   12040       ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR
               The application is moving from an SSL to an non-SSL
               connection because of a redirect.

   12041       ERROR_INTERNET_MIXED_SECURITY
               Indicates that the content is not entirely secure. Some of
               the content being viewed may have come from unsecured
               servers.

   12042       ERROR_INTERNET_CHG_POST_IS_NON_SECURE
               The application is posting and attempting to change
               multiple lines of text on a server that is not secure.

   12043       ERROR_INTERNET_POST_IS_NON_SECURE
               The application is posting data to a server that is not
               secure.

   12110       ERROR_FTP_TRANSFER_IN_PROGRESS
               The requested operation cannot be made on the FTP session
               handle because an operation is already in progress.

   12111       ERROR_FTP_DROPPED
               The FTP operation was not completed because the session was
               aborted.

   12130       ERROR_GOPHER_PROTOCOL_ERROR
               An error was detected while parsing data returned from the
               gopher server.

   12131       ERROR_GOPHER_NOT_FILE
               The request must be made for a file locator.

   12132       ERROR_GOPHER_DATA_ERROR
               An error was detected while receiving data from the gopher
               server.

   12133       ERROR_GOPHER_END_OF_DATA
               The end of the data has been reached.

   12134       ERROR_GOPHER_INVALID_LOCATOR
               The supplied locator is not valid.

   12135       ERROR_GOPHER_INCORRECT_LOCATOR_TYPE
               The type of the locator is not correct for this operation.

   12136       ERROR_GOPHER_NOT_GOPHER_PLUS
               The requested operation can only be made against a Gopher+
               server or with a locator that specifies a Gopher+
               operation.

   12137       ERROR_GOPHER_ATTRIBUTE_NOT_FOUND
               The requested attribute could not be located.

   12138       ERROR_GOPHER_UNKNOWN_LOCATOR
               The locator type is unknown.

   12150       ERROR_HTTP_HEADER_NOT_FOUND
               The requested header could not be located.

   12151       ERROR_HTTP_DOWNLEVEL_SERVER
               The server did not return any headers.

   12152       ERROR_HTTP_INVALID_SERVER_RESPONSE
               The server response could not be parsed.

   12153       ERROR_HTTP_INVALID_HEADER
               The supplied header is invalid.

   12154       ERROR_HTTP_INVALID_QUERY_REQUEST
               The request made to HttpQueryInfo is invalid.

   12155       ERROR_HTTP_HEADER_ALREADY_EXISTS
               The header could not be added because it already exists.

   12156       ERROR_HTTP_REDIRECT_FAILED
               The redirection failed because either the scheme changed
               (for example, HTTP to FTP) or all attempts made to redirect
               failed (default is five attempts).
				
分享到:
评论

相关推荐

    WinINet错误代码

    如果你正在进行Windows网络编程,本文档将对你很大帮助

    Wininet API 写的下载器类,可获取文件名,下载,等等。

    把.h文件里面的代码放出来一下,CPP就不放了,自己下载哦。 #ifndef Download_h__ #define Download_h__ #include &lt;wininet.h&gt; #pragma comment(lib,"wininet.lib") class CHttpGet { public: //测试网络是否...

    VB网络编程实例

    ◆ 144.htm WebClass实现动态WEB编程之理论篇 ◆ 145.htm Winsocket网络编程谈 ◆ 146.htm Winsock编程框架 ◆ 147.htm Winsock错误代码一览表 ◆ 148.htm 程式自动呼叫拨号网络(RAS API) ...

    《Windows网络编程技术》高清PDF版+随书源码

    高级网络编程6.1 简单MFC网络编程6.1.1 网络聊天应用实例6.1.2 MFC基本...winInet类的编程模型6.3.3 HTTP网络应用实例算法及实现附录1 网络、应用程序开发说明附1.1 网络体系结构的概念附1.2 可执行文件的PE格式附1.3...

    WINDOWS网络编程技术.pdf

    高级网络编程6.1 简单MFC网络编程6.1.1 网络聊天应用实例6.1.2 MFC基本...winInet类的编程模型6.3.3 HTTP网络应用实例算法及实现附录1 网络、应用程序开发说明附1.1 网络体系结构的概念附1.2 可执行文件的PE格式附1.3...

    使用大的 POST 请求 HttpSendRequestEx

    4.转到项目设置对话框中,单击链接选项卡,然后添加到 WinInet.lib"对象/库模块:"字段。 5.请确保配置 Visual C++,以便编译器和链接器将使用 Wininet.h 和 Wininet.lib 从 Internet 客户端 SDK。如果未能做到这...

    精易模块[源码] V5.15

    8、修正“时间_时间戳转文本”代码不严谨出现数组错误的BUG,感谢易友[455275321]反馈。 MD5:3E66BFA15806DEAFBCF11806EB99CC11 精易模块 V5.13 what’s new:(20150202) 1、修正“编码_ansi到usc2”当末尾出现10...

    FTPTREE 示例:显示 FTP 站点的结构和内容

    使用 CInternetSession 和 CFtpConnection 类以最少数量的自定义代码获得 Internet 或 Intranet 连接。 将 CFtpFileFind 类与 CFtpConnection 一起使用以定位 FTP 站点的目录结构。 动态生成树控件的内容。 生成...

    网络编程实用教程(第三版).zip

    5.1.4 客户端套接字对象请求连接到服务器端套接字对象 114 5.1.5 服务器接收客户机的连接请求 115 5.1.6 发送与接收流式数据 116 5.1.7 关闭套接字 118 5.1.8 错误处理 118 5.1.9 其他成员函数 119 5.2...

    南开21春学期《计算机病毒分析》在线作业.docx

    它也可以将汇编形式的修补代码直接插入到一个程序 选项B:OllyDbg可以使用00项或nop指令填充程序 选项C:键单击高亮的条件跳转指令,然后选择Binary Fill with NOPs,该操作产生的结果时NOP指令替换了JNZ指令,这个...

    《C++编程艺术》教程+代码

    9.5.3 显示语法错误 270 9.5.4 表达式求值 271 9.6 Mini C++解释程序 272 9.6.1 main()函数 291 9.6.2 解释程序的预扫描程序 292 9.6.3 interp()函数 295 9.6.4 处理局部变量 297 9.6.5 调用用户自定义的函数 299 ...

    精易编程助手 V3.6 正式发布 ( 2018-10-15) -易语言

    ①、支持对鱼刺系模块网页访问的代码生成,支持“WinHttpW”,“WinHttpR”,“WinInet”; ②、升级原有单文本显示为浏览器表格显示与文本显示; ③、调整生成易代码窗口的大小,控件自适应调整; 3、增加发送请求...

    精易官方免费模块v3.60版

    2.修复“编码_usc2到ansi”“编码_ansi到usc2” 暂时使用EX版代替原来的代码 感谢 478755018 的提醒 3.修复“网页_置Cookie1” 感谢 阿蒙 的提醒 精易模块 V3.58 what’s new:(20140101) 1.公开“进程_ID取模块...

    VB编程资源大全(源码 网络)

    (80KB) 47,inetdial.ZIP 利用Wininet实现建立Internet拨号连接和断开连接(2KB) 48,getallserveronnet.ZIP 相当不错和完整的程序。利用API获得当前网络中的所有计算机名称以及获得当前可用的服务器、...

Global site tag (gtag.js) - Google Analytics