ASP

本类阅读TOP10

·asp常用数据库连接方法和技巧
·无组件生成BMP验证码
·一些常用的辅助代码 (网络收藏)
·JavaScript实现的数据表格:冻结列、调整列宽和客户端排序
·VisualStudio.NET_2003及其 MSDN 下载地址
·ASP模拟MVC模式编程
·图片以二进制流输出到网页
·MD5加密算法 ASP版
·ASP.NET编程中的十大技巧
·改进 ASP 的字符串处理性能

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
散分 serverxmlhttp编码乱目的解决方法,爽啊!!真爽啊,

作者:未知 来源:月光软件站 加入时间:2005-6-5 月光软件站

**************************************** '* 类名: sxsrc.com '* 功能: xml '* 支持: forum.sxsrc.com '* 新增: Jaken,花中笑 '* 日期: 2005-6-1 V1.0 '**************************************** response.charset="gb2312" Dim webServiceUrl, httpReq 'str=covertion(sqlStr) webServiceUrl ="http://localhost:81/index.asp" Set httpReq = Server.CreateObject("MSXML2.serverXMLHTTP") httpReq.Open "GET", webServiceUrl, False httpReq.Send response.binarywrite httpReq.responsebody ' consumeWebService=httpReq.responseText ' set iStream = httpReq.responsestream.istream ' with iStream ' .type = 1 ' .mode = 3 ' .open ' .charset ="gb2312" ' .writetext ' end with ' 'srSave=covertion(httpReq.responseText) Microsoft XML Core Services (MSXML) 4.0 - XML Reference IServerXMLHTTPRequest/ServerXMLHTTP Members [Visual Basic, Script] The following tables show the properties, methods, and events. [C/C++] The following tables show the properties, methods, and events. This interface inherits from IXMLHTTPRequest. Properties onreadystatechange Specifies the event handler to be invoked when the readyState property changes. Read/write. responseBody Represents the response entity body as an array of unsigned bytes. Read-only. readyState Represents the state of the request. Read-only. responseStream Represents the response entity body as an IStream. Read-only. responseText Represents the response entity body as a string. Read-only. responseXML Represents the response entity body as parsed by Microsoft® XML Core Services (MSXML). Read-only. status Represents the HTTP status code returned by a request. Read-only. statusText Represents the HTTP response line status. Read-only. Methods Note The following method names are case-sensitive when used with ServerXMLHTTP. They are not case-sensitive when used with XMLHTTP. abort Cancels the current HTTP request. getAllResponseHeaders Retrieves the values of all the HTTP headers. getOption Returns the value of one of the following options: SXH_OPTION_URL SXH_OPTION_URL_CODEPAGE SXH_OPTION_ESCAPE_PERCENT_IN_URL SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS SXH_OPTION_SELECT_CLIENT_SSL_CERT getResponseHeader Retrieves the value of an HTTP header from the response body. open Initializes a request and specifies the method, URL, and authentication information for the request. send Sends an HTTP request to the server and receives a response. setOption Sets one of the following options: SXH_OPTION_URL_CODEPAGE SXH_OPTION_ESCAPE_PERCENT_IN_URL SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS SXH_OPTION_SELECT_CLIENT_SSL_CERT setProxy Specify proxy configuration. setProxyCredentials Specify proxy authentication credentials. setTimeouts Specifies timeout settings for resolving the domain name, establishing the connection to the server, sending the data, and receiving the response. setRequestHeader Specifies the name of an HTTP header. waitForResponse Allows the requesting server to suspend execution while waiting for an asynchronous send operation to complete. Events None.


相关文章

相关软件




月光软件源码下载编程文档电脑教程网站优化网址导航网络文学游戏天地生活休闲写作范文安妮宝贝站内搜索
电脑技术编程开发网络专区谈天说地情感世界游戏元素分类游戏热门游戏体育运动手机专区业余爱好影视沙龙
音乐天地数码广场教育园地科学大观古今纵横谈股论金人文艺术医学保健动漫图酷二手专区地方风情各行各业

月光软件站·版权所有