JMeter接口测试之HTTP Post请求实例
购物商城接口测试案例 1、接口说明: 调用商品到购物车接口 2、请求方式: HTTP POST请求 3. 接口地址: /ecshop/upload/flow.php?step=add_to_cart 4. 请求参数: 1) 输入参数: JSON数据格式: 2) 请求示例: POST /ecshop/upload/flow.php?step=add_to_cart HTTP/1.1 Host: 192.168.126.134 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0 Accept: text/html,application/xhtml+xml,application/xml;q=0. 9, / ;q=0.8 Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Referer: http://192.168.126.134/ecshop/upload/goods.php?id=1 Content-Length: 69