2011年9月4日

【转】The Definitive Guide to GET vs POST

摘要: Unfortunately there is a lot misuse of GET over POST and vice versa. Both HTTP methods can achieve the same goals, but an incorrect choice between them can lead to unexpected and potentially harmful outcomes.So, to make sure we get things right, I present to you the definitive guide of choosing betw 阅读全文

posted @ 2011-09-04 11:49 ^希望^ 阅读(162) 评论(0) 推荐(0) 编辑

【转】HTTP幂等性概念和应用

摘要: HTTP幂等性概念和应用基于HTTP协议的Web API是时下最为流行的一种分布式服务提供方式。无论是在大型互联网应用还是企业级架构中,我们都见到了越来越多的SOA或RESTful的Web API。为什么Web API如此流行呢?我认为很大程度上应归功于简单有效的HTTP协议。HTTP协议是一种分布式的面向资源的网络应用层协议,无论是服务器端提供Web服务,还是客户端消费Web服务都非常简单。再加上浏览器、Javascript、AJAX、JSON以及HTML5等技术和工具的发展,互联网应用架构设计表现出了从传统的PHP、JSP、ASP.NET等服务器端动态网页向Web API + RIA(富互 阅读全文

posted @ 2011-09-04 11:21 ^希望^ 阅读(258) 评论(0) 推荐(0) 编辑

导航