12 2012 档案
如何获取和发送Http请求和相应
摘要:首先发送get request,从response中获取cookie:Get: string address = string.Empty; HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(address); // Two ways to set the authorization: //Method 1: //myRequest.Headers["Authorization"] = "Basic " + Convert.ToBa...
阅读全文
header中Content-Disposition的作用
摘要:转载: http://www.189works.com/article-70323-1.html今天查看Struts2的文件上传部分 发现有个例子开头打印的信息中有Content-Disposition,一时好奇,所以了解了一下。顺便学习一下文件上传所需要的注意事项。 Content-disposition 是 MIME 协议的扩展,MIME 协议指示 MIME 用户代理如何显示附加的文件。当 Internet Explorer 接收到头时,它会激活文件下载对话框,它的文件名框自动填充了头中指定的文件名。(请注意,这是设计导致的;无法使用此功能将文档保存到用户的计算机上,而不向用户询问保存位置
阅读全文
Web Debugger tool(网络监控软件)
摘要:Fidder: Web Debugger toolhttp://www.fiddler2.com/Fiddler2/firstrun.asp
阅读全文
LINQ
摘要:Basics of LINQ & Lamda Expressionshttp://www.codeproject.com/Articles/33769/Basics-of-LINQ-Lamda-Expressions.NET Language-Integrated Query for XML Datahttp://msdn.microsoft.com/library/bb308960.aspx
阅读全文
Performance Testing 系列
摘要:vPerformer:http://www.verisium.com/products/vPerformer/index.htmlPerformance Testing:http://www.automationanywhere.com/Testing/solutions/automated-performance-testing.htm?r=google&w=performance&kw=Product%20Performance%20Testing&match=b&network=g&place=&gclid=COKAgMCChbQCFUd6
阅读全文
Regular Experssion
摘要:1. Introduction to Regular Expressions: http://msdn.microsoft.com/en-us/library/28hw3sce2. Mastering Regular Expressions, Second Edition: http://oreilly.com/catalog/9780596002893/3. Regular-Expressions: http://www.regular-expressions.info/4. Regular Expression Exampleshttp://wiki.tcl.tk/9895.Regular
阅读全文
JSON-总结
摘要:[心得] JSON扫盲帖+JSON类教程http://bbs.9ria.com/thread-1657-1-1.htmlParse JSON in C#http://stackoverflow.com/questions/1212344/parse-json-in-c-sharp我的JsonHelper:public static class JSONHelper { public static T Deserialise<T>(this string setting) where T : class { DataContractJson...
阅读全文
T-SQL 2008学习笔记(1)
摘要:1. view which created cluster index will storage data in physically。Remember that without an index, a view does not have any physical representation of its data—rather, it just has metadata information pointing to the underlying objects. However,SQL Server will physically materialize a view’s data i
阅读全文
xml serialize
摘要:http://www.cnblogs.com/yukaizhao/archive/2011/07/22/xml-serialization.html自己也要写个Demo...
阅读全文
读取含有命名空间xml文件内容
摘要:.NET Language-Integrated Query for XML Datahttp://msdn.microsoft.com/library/bb308960.aspxXNamespace myNs = "http://mycompany.com";XElement contacts = new XElement(myNs + "contacts", new XElement(myNs + "contact", new XElement(myNs + "name", "Patrick Hine
阅读全文