jmeter 添加header
2024-10-21 05:54:56
接口说明文档:
article.fetch(通用转码服务)
通用转码服务,获取任意 url 的正文以及 title 等基本信息,仅支持 post 方法请求。
参数
参数 | 类型 | 是否必须 | 示例 | 其它说明 |
---|---|---|---|---|
token | string | 是 | abc1234sxba | 从 app.auth 中获得的 token 信息 |
url | string | 是 | http://www.pingwest.com/market/ubdc2017-youmeng/?type=1 | 文章的 url |
format | string | 否,默认为 html | raml | 文章正文的格式,支持 html , raml |
js | int | 否,默认为 0 | 0 | 文章正文是否需要 javascript 动态加载 |
请求示例:
curl "https://api.qingmang.me/v2/article.fetch?token=abc1234sxba&format=raml" -d "http://www.pingwest.com/market/ubdc2017-youmeng/?type=1"
返回
{
"ok": true,
"article": {
"articleId": "8761595884994052465",
"title": "2017UBDC:数据的狂欢,全景解读“DI的力量” | PingWest品玩",
"subtitle":"2017UBDC:数据的狂欢,全景解读“DI的力量” | PingWest品玩",
"snippet": "今天,2017UBDC全域大数据峰会在北京圆满举行。大会由【友盟+】主办,以“DI的力量”为主题,全景展现大数",
"contentFormat": "raml",
"content": "正文内容",
"images": [{
"url": "http://link_to_image",
"width": 1024,
"height": 2048
}]
}
}
请求成功后,会返回正文的基本信息。
注意:
url在body里面
token 和 format 在header里面
jmeter:
http请求:
header:
最新文章
- dedecms 采集规则过滤与替换
- express+gulp构建项目(二)启动项目和主文件
- WPF – pass multiple parameters to a Command
- div+css基础
- linux命令 screen的简单使用
- mvn安装jar文件到本地
- C++文件操作之get/getline
- C#相关图书推荐
- android访问webservices
- SharePoint Search之(两)持续抓取Continues crawl
- The ways to kill Oracle session
- How To Use Linux epoll with Python
- 【OCR技术系列之三】大批量生成文字训练集
- Exception in thread ";main"; java.lang.IllegalArgumentException
- 生产者/消费者问题的多种Java实现方式
- Axios 中文说明
- [Swift]LeetCode277. 寻找名人 $ Find the Celebrity
- markdown在线编辑插件mditor
- Junit测试用例
- js條件結構和循環結構
热门文章
- BUUCTF--rsa
- WPF绑定并转换
- 奇葩问题:Invalid bound statement (not found): cn.zss.zsdemo.mapper.RoleMapper.selectByPrimaryKey
- 常见3种Git服务器的构建
- 网络拓扑_VLAN与Trunk配置
- set unused
- hdu 5963:朋友
- 027:for标签使用详解
- Centos7网卡绑定的两种方法
- win7系统安装sql2000数据库时没有反应,不出来安装界面?