Advanced REST Client是 Chrome 瀏覽器下的一個插件,通過它可以發送 http、https、WebSocket 請求。在 Chrome 商店下搜索 Advanced REST Client,即可找到
如果搜索不到的可到CSDN 下載:
http://download.csdn.net/detail/li1669852599/9547748
1.下載插件:Advanced Rest Client



Advanced REST Client的界面
Advanced REST Client在 google code 的地址:http://code.google.com/p/chrome-rest-client/
下面來介紹 Advanced REST Client發送請求的方法
1. 發送 http 請求
http://httpbin.org/ 有現成的 get、post 接口,可以直接使用
1.1 http get
在 URL 欄輸入 http://httpbin.org/get
點"Send"按鈕。發送成功后, Advanced REST Client 會列出Request/Response headers :
返回結果:
1.2 http post
在 URL 欄輸入 http://httpbin.org/post ,選在 ”POST”類型,在”Payload”欄輸入 data,最后設置 ”Content-Type”
返回結果:
2. 發送 https 請求
使用方法跟發送 http 請求一樣。 https://httpbin.org/ 有現成的 get、post 接口,可以自己試試
3. 發送 WebSocket 請求
Advanced REST Client支持發送Websocket 請求,通過 ws://echo.websocket.org,可以進行 Websocket 的測試
點擊左側的”Socket”,然后在 URL 欄輸入 ws://echo.websocket.org
點擊右側的”Connect”按鈕。 連接成功后,即可發送消息
輸入"Test",然后點"Send"按鈕
第一個”Test”是Advanced REST Client發送的request ,第二個 ”Test”是 Server 返回的 response

