<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  <channel>
    <title><![CDATA[拍拍尘土]]></title> 
    <link>http://blog.xg98.com/</link> 
    <description><![CDATA[五月枇杷黄，太湖银鱼肥]]></description> 
    <language>zh-cn</language> 
    <copyright><![CDATA[Copyright 2026, 拍拍尘土]]></copyright> 
    <webMaster><![CDATA[cxosoft@gmail.com (Admin)]]></webMaster> 
    <generator>LBS v2.0.313</generator> 
    <pubDate>Tue, 05 May 2026 08:34:49 +0800</pubDate> 
    <ttl>60</ttl>
  
    <item>
      <title><![CDATA[关于asp老网站放到windows 2012服务器上遇到的一个上传问题，艾恩ASP无组件上传类(An-Upload v9)]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2921]]></link> 
      <category><![CDATA[ASP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Fri, 03 Mar 2023 13:40:14 +0800</pubDate> 
      <description><![CDATA[朋友有个古董级网站转移到阿里云，windows2012的系统，反馈说上传有问题。<br />网站在win2003下确实正常，在windows2012上无法上传图片。修改了iis中asp的200k限制还不行，就下载代码之后到本地进行调试。<br />测试发现代码是asp，上传部分使用了艾恩ASP无组件上传类(An-Upload v9) <br /><br />代码还用到多文件上传，获取分隔符，然后二进制截取分隔符的方式来分离出多个文件<br />调试发现错误语句<div class="code">fileCls.value =midb(tempdata,formend + 4,valueend - formend - 6)</div>发现里面的 valueend=0，导致第3参数为负数，函数出错。<br />再回溯，<div class="code">valueend = InStrB(formend + 3, tempdata, sSplit)</div>valueend=0表示原始读取的二进制字符串中不包含分隔符，逻辑上是不对的，<br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2921]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[ASP无组件上传·从机制详细说明到实践]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2920]]></link> 
      <category><![CDATA[ASP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Thu, 02 Mar 2023 22:25:06 +0800</pubDate> 
      <description><![CDATA[p.s. 看老代码的时候发现asp的无组件上传没有研究过，网上发现有个blog介绍比较好，就记录下  <br /><a href="https://www.cnblogs.com/lsm/articles/1089542.html" title="https://www.cnblogs.com/lsm/articles/1089542.html" target="_blank">https://www.cnblogs.com/lsm/articles/1089542.html</a><br /><br /><br /><br />无组件上传一直是困扰大家的一个问题。其实原理很简单，核心就是分析字符串。但是，实际操作时，却困难重重。其中的关键问题还是大家往往对原理的剖析不够深入，或者是因为过程过于繁琐，导致bug不断。一直以来，都想做一个完善的例子，只不过想想就头痛，加上没时间（借口，呵呵 ），所以没有付诸行动。<br /><br /><br />今天就咬咬牙，给大家提供一个完整的无组件上传的例子。因为本人耐性不好，所以咱们一点一点来，分几天完成。未来的几天，我会天天更新这个文档，这个过程也是大家学习和提高的过程。<br /><br />（完整的源码和示例，可以在这里找到：<a href="http://www.2yup.com/ASP/attach/A0000006.zip）" title="http://www.2yup.com/ASP/attach/A0000006.zip）" target="_blank">http://www.2yup.com/ASP/attach/A0000006.zip）</a><br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2920]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[win10上调试asp+access，错误：未在本地计算机上注册“Microsoft.Jet.OLEDB.4.0]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2901]]></link> 
      <category><![CDATA[ASP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Mon, 26 Dec 2022 13:50:41 +0800</pubDate> 
      <description><![CDATA[解决办法：<br />在对应的 IIS 应用程序池中，“设置应用程序池默认属性“常规”启用32位应用程序&quot;，设置为 true。]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2901]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[win2003 iis6 swfupload上传50M文件 和 支持中文文件名]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2790]]></link> 
      <category><![CDATA[ASP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Tue, 13 Jul 2021 16:18:54 +0800</pubDate> 
      <description><![CDATA[1、支持中文文件名 <br />iis中删除urlscan  或者  AllowHighBitCharacters=1<br /><br />2、上传大文件<br />urlscan 中也有个尺寸限制 MaxAllowedContentLength<br />iis的配置文件Metabase.xml中调整 AspBufferingLimit  和  ASPMaxRequestEntityAllowed]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2790]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[asp程序使用Microsoft.XMLHTTP对象请求https时出错，使用WinHttp.WinHttpRequest.5.1解决]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2715]]></link> 
      <category><![CDATA[ASP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Tue, 22 Sep 2020 16:36:18 +0800</pubDate> 
      <description><![CDATA[<span style="color:Red">p.s. 服务中需要开启 winhttp </span><br /><br />出错程序代码示例：<div class="code">strUrl = &quot;https&#58;//www.xg98.com/test.jpg&quot;<br />dim objXmlHttp<br />set objXmlHttp = Server.CreateObject(&quot;Microsoft.XMLHTTP&quot;) <br />objXmlHttp.open &quot;GET&quot;,strUrl,False        <br />objXmlHttp.send()</div><br />替换为WinHttp.WinHttpRequest.5.1 <div class="code">strUrl = &quot;https&#58;//www.xg98.com/test.jpg&quot;<br />dim objXmlHttp<br />Set objXmlHttp= Server.CreateObject(&quot;WinHttp.WinHttpRequest.5.1&quot;)<br />objXmlHttp.Option(4) = 13056 &#39;忽略错误标志 </div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2715]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[iis7和IIS7.5上传附件时最大只能上传29M，超过29M上传就报错，如何处理？]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2583]]></link> 
      <category><![CDATA[ASP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Mon, 25 Mar 2019 09:21:28 +0800</pubDate> 
      <description><![CDATA[问题原因:IIS7下的默认设置限制了上传大小，Web.Config中的大小设置失效。解决办法：<br />修改IIS的默认设置，具体步骤：<br />1、打开IIS管理器，找到Default Web Site。先进行停止。<br />2、在IIS中双击“请求筛选”打开。<br />3、点击右边的“编辑功能设置”，打开“编辑请求筛选设置”对话框。 其中的允许的最大容量长度，默认是”30000000“，30M，将其修改为所需要的大小即可。<br />4、启动IIS.<div style="width: 100%;overflow-x : auto;"><a href="http://blog.xg98.com/attachments/201903/25_092434_1.jpg" target="_blank"><img src="http://blog.xg98.com/attachments/201903/25_092434_1.jpg" alt="http://blog.xg98.com/attachments/201903/25_092434_1.jpg" /></a></div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2583]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[百度ueditor 1.4.3在win2003+IIS6环境下不能上传图片，asp版百度ueditor在线编辑器上传图片错误]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2582]]></link> 
      <category><![CDATA[ASP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Mon, 25 Mar 2019 08:33:20 +0800</pubDate> 
      <description><![CDATA[用的是ueditor 1.4.3 ASP版，为避免自己修改代码后造成的问题，直接从百度官方下载ueditor 1.4.3 ASP版，解包后只设置了ASP/config.json文件里的上传路径，然后在软件包中自带的演示页面index.html的编辑器中进行图片上传。结果在本地win7+iis7的环境下测试一切正常，但同样的代码放到win2003+iis6的服务器上就不能上传图片，没任何提示（Chrome下会提示“上传错误”，IE下无任何提示）。这是什么原因？在网上找了一天都没找到原因，要崩溃了！~~~~<br /><br />补充：<br />1、在本地无论是IE还是Chrome都可以上传，在win2003服务器上无论是什么浏览器都不能上传。<br />2、WEB目录的权限已确认设置正确，IIS匿名访问帐户拥有所有权限。<br />3、IIS6的ASP最大请求限制（也就是System32\inetsrv\metabase.xml中的ASP]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2582]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[asp里面用正则去除html标签的属性]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2422]]></link> 
      <category><![CDATA[ASP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Tue, 06 Jun 2017 13:27:49 +0800</pubDate> 
      <description><![CDATA[<div class="code">&#39;txt = &quot;&lt;p style = &#39;font-size:11px&#39;&gt;test11&lt;/p&gt;&quot;<br />&#39;Response.write(SimpleHTML(txt,&quot;style&quot;))<br /><br />Function SimpleHTML(content,tag)<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; If tag=&quot;&quot; Then tag=&quot;style&quot;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; SimpleHTML = ReplaceTest( content, tag&amp;&quot;\s*=\s*&quot;&quot;(.*)&quot;&quot;&quot; ,&quot;&quot; )<br />&nbsp;&nbsp;SimpleHTML = ReplaceTest( content, tag&amp;&quot;\s*=\s*&#39;(.*)&#39;&quot; ,&quot;&quot; )<br />End Function<br /><br /><br />Function ReplaceTest(str,patrn, replStr)<br />Dim regEx, str1 &#39; 建立变量。<br />&#39;str1 = &quot;dog 123.&quot;</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2422]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[ASP设置Cookie的HttpOnly属性]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2337]]></link> 
      <category><![CDATA[ASP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 31 Aug 2016 10:13:35 +0800</pubDate> 
      <description><![CDATA[为防止攻击者利用网站XSS漏洞获取网站cookie（如果管理员cookie被获取，攻击者有可能登录网站后台）。可以在cookie中增加httponly属性。<br /><br />ASP实现方法如下：<br /><br />当需要向浏览器写入Cookie时，利用Response.AddHeader代替Response.Cookies(&quot;X&quot;)=&quot;Y&quot;<br /><div class="code">Response.AddHeader &quot;Set-Cookie&quot;, &quot;mycookie=1981; Path=/; HttpOnly&quot;</div><br />关于httponly的说明，参见： <br />使用HttpOnly提升Cookie安全性  <a href="http://blog.csdn.net/zzzmmmkkk/article/details/10862949" title="http://blog.csdn.net/zzzmmmkkk/article/details/10862949" target="_blank">http://blog.csdn.net/zzzmmmkkk/article/details/10862949</a><br /><br /><br /><b>cookie的过期</b><div class="code">response.Cookies(&quot;mycookie&quot;)=&quot;&quot;</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2337]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[PHP设置Cookie的HTTPONLY属性]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2336]]></link> 
      <category><![CDATA[ASP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 31 Aug 2016 10:12:21 +0800</pubDate> 
      <description><![CDATA[httponly是微软对cookie做的扩展。这个主要是解决用户的cookie可能被盗用的问题。<br /> &nbsp; &nbsp; &nbsp; &nbsp; 大家都知道，当我们去邮箱或者论坛登陆后，服务器会写一些cookie到我们的浏览器，当下次再访问其他页面时，由于浏览器回自动传递cookie，这样就实现了一次登陆就可以看到所有需要登陆后才能看到的内容。也就是说，实质上，所有的登陆状态这些都是建立在cookie上的！假设我们登陆后的cookie被人获得，那就会有暴露个人信息的危险！当然，想想，其他人怎么可以获得客户的cookie？那必然是有不怀好意的人的程序在浏览器里运行！如果是现在满天飞的流氓软件，那没有办法，httponly也不是用来解决这种情况的，它是用来解决浏览器里javascript访问cookie的问题。试想，一个flash程序在你的浏览器里运行，就可以获得你的cookie的！<br /> &nbsp; &nbsp; &nbsp; &nbsp; IE6的SP1里就带了对httponly的支持，所以相对还说还是些安全性。<br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2336]]></wfw:commentRss>
    </item>
      
  </channel>
</rss>
