CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Web 开发 >  ASP

散分 serverxmlhttp编码乱目的解决方法,爽啊!!真爽啊,

楼主zhangfeng1133()2005-06-01 10:59:49 在 Web 开发 / ASP 提问

偶,饭不思,茶不香半个月了,  
   
  跟大家分享啊  
   
    如果有高手的话帮我解决  
   
   
  http://community.csdn.net/Expert/TopicView.asp?id=4050212  
   
  http://community.csdn.net/Expert/TopicView.asp?id=4047444  
   
  http://community.csdn.net/Expert/TopicView.asp?id=4042579  
   
  '****************************************  
   
  '*   类名:   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)  
  问题点数:0、回复次数:1Top

1 楼zhangfeng1133()回复于 2005-06-01 11:00:52 得分 0

 
  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.  
  Top

相关问题

  • 谁知道base64的编码方法?
  • 求base64编码方法或函数
  • 高分,base64编码的原理和方法,应用,,,
  • 请教行程编码压缩方法的思想
  • 简单的编码方法实现的问题(谢谢)
  • 二值图像的压缩编码方法
  • 寻求曼彻斯特码等编码方法的简介
  • 求类似网页的mht格式的编码方法!
  • 求汉字转二进制编码方法!
  • 求字符串转换成GB2312编码方法或函数

关键词

  • .net
  • csdn
  • asp
  • httpreq
  • webserviceurl
  • topicview
  • istream
  • expert
  • community

得分解答快速导航

  • 帖主:zhangfeng1133

相关链接

  • Web开发类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo