zoukankan      html  css  js  c++  java
  • 发送请求工具—Advanced REST Client

    Advanced REST Client是Chrome浏览器下的一个插件,通过它能够发送http、https、WebSocket请求。在Chrome商店下搜索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"button。发送成功后,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”button。连接成功后,就可以发送消息


    输入"Test",然后点"Send"button

    第一个”Test”是Advanced REST Client发送的request,第二个”Test”是Server返回的response


    点击”Disconnect”button,就可以断开连接

  • 相关阅读:
    chartjs 初步
    QT “error: error writing to -: Invalid argument”
    OTL mySQL
    qtcteater pro 文件配置
    Python os.readlink() 方法
    Python os.read() 方法
    Python os.popen() 方法
    Python os.pipe() 方法
    Python os.pathconf() 方法
    ThinkPHP框架前后台的分页调用
  • 原文地址:https://www.cnblogs.com/mfrbuaa/p/3854728.html
Copyright © 2011-2022 走看看