摘要: char* urlencode(const void* buf, size_t size) { _assert_(buf && size = 'A' && c = 'a' && c = '0' && c > 4; if (num = ep) break; c = *str; if (c >= '0' && c = 'a' && c = 'A' && c = ep) break; 阅读全文
posted @ 2014-03-01 15:41 samu 阅读(1954) 评论(0) 推荐(0)
摘要: http://www.infoq.com/cn/articles/designing-restful-http-apps-roth摘要:本文对RESTful HTTP的基础原理做了一个概览,探讨了开发者在设计RESTful HTTP应用时所面临的典型问题,展示了如何在实践中应用REST架构风格,描述了常用的URI命名方法,讨论了如何使用统一接口进行资源交互,何时使用PUT或POST以及如何支持非CURD操作等。Java 调用HttpClient httpClient = new HttpClient();IHttpRequest request = new GetRequest(central 阅读全文
posted @ 2014-03-01 08:29 samu 阅读(455) 评论(0) 推荐(0)