Tag Archives: 文档

WinHttp.WinHttpRequest.5.1

不多解释,小偷组件必备逆天神器,最新版,WinHttp.WinHttpRequest.5.1。相比之下,MSXML2.ServerXMLHTTP.6.0 成了不成器的垃圾了。反正就是各种功能各种支持,这里仅做备用索引。

MSDN:WinHttpRequest对象参考指南

事件:

Event Description
OnError Occurs when there is a run-time error in the application.
OnResponseDataAvailable Occurs when data is available from the response.
OnResponseFinished Occurs when the response data is complete.
OnResponseStart Occurs when the response data starts to be received.

方法:

Method Description
Abort Aborts a WinHTTP Send method.
GetAllResponseHeaders Retrieves all HTTP response headers.
GetResponseHeader Retrieves the HTTP response headers.
Open Opens an HTTP connection to an HTTP resource.
Send Sends an HTTP request to an HTTP server.
SetAutoLogonPolicy Sets the current Automatic Logon Policy.
SetClientCertificate Selects a client certificate to send to a Secure Hypertext Transfer Protocol (HTTPS) server.
SetCredentials Sets credentials to be used with an HTTP server—either an origin or a proxy server.
SetProxy Sets proxy server information.
SetRequestHeader Adds, changes, or deletes an HTTP request header.
SetTimeouts Specifies, in milliseconds, the individual time-out components of a send/receive operation.
WaitForResponse Specifies the wait time, in seconds, for an asynchronous Send method to complete, with optional time-out value.

Continue reading

条件注释 Conditional Comments

Firefox 下的换行问题早已不是一两天的事了,不过终究可以用折衷办法解决:在定义 width 的情况下定义:overflow: hidden。IE 当然早有办法,就是用:word-wrap: break-word,问题是 CSS2 不认这个用法,导致 CSS 总是无法通过 CSS Validator。不过,经过一番折腾,现在这个问题也不成问题了——就是传说中的条件注释Conditional Comments)。

IE Box Model Hack

先说说这个好象是个非常之有名的 CSS Hack,其实对这个我无甚了解。因为在我开始了解 CSS 的几年前就不用 IE5.5- 了,而我也相信现在几乎没人用(除非你还用Win98,或者你还在对兼容性这个话题孜孜不倦)。据说用下面两种方法可以解决(当然,都需要声明正确的文档类型):

div.content {
width:400px;
voice-family: “\”}\””;
voice-family:inherit;
width:300px;
}

html>body .content {
width:300px;
}

div.content {
width:300px !important;
width /**/:400px;
}

html>body .content {
width:300px;
}

CSS Hack For IE

有些时候,你需要对IE浏览器的bug定义一些特别的规则,这里有太多的CSS技巧(hacks),我只使用其中的两种方法,不管微软在即将发布的 IE7 beta 版里是否更好的支持CSS,这两种方法都是最安全的。 Continue reading