post插件
分享牛系列,分享牛专栏,分享牛。在项目开发中,http请求方式是最常见的了。怎么模拟http请求呢?方法有很多种,可以使用httpclient直接模拟请求,也可以使用火狐post插件方式,这个章节主要讲解火狐post插件使用。
首先下载火狐浏览器,直接在下载,附加组件中添加poster即可,附加之后效果如下所示:
点击打开即可。看到这个图片表示安装成功了。
下面开始操作:
1.1. get
get方式比较简单,直接在请求中添加?&之类的参数即可。
比如http://127.0.0.1:8080/matrix-deploy/groupuser/get_studio_user_list2?gid=590594
直接在请求中选择get方式即可,或者在参数中添加如下所示:
返回的格式如下:
{
"apistatus": 1,
"result": {
"total": 15,
"liveStatus": false,
"onmic": [],
"users": [
{
"birthday": "2013-01-01",
"nickname": "陈陈陈陈_",
"user_type": 1,
"subtag_info": {
"subtag_name": "房主",
"subtag_gid": 0,
"can_show": true
},
"avatar": "18130909",
"id": "109084",
"jointime": "Wed Jun 08 11:44:33 +0800 2016",
"description": "",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 11:44:33 +0800 2016",
"gender": "f",
"role": 4,
"isGag": false
},
{
"birthday": "1985-01-01",
"nickname": "爱扶老奶奶的蜀黍",
"user_type": 1,
"subtag_info": {
"subtag_name": "管理员",
"subtag_gid": 0,
"can_show": false
},
"avatar": "88451951",
"id": "42750",
"jointime": "Wed Jun 08 11:49:49 +0800 2016",
"description": "当芳芳遇到阿德丽娜",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 19:11:21 +0800 2016",
"gender": "m",
"role": 3,
"isGag": false
},
{
"id": "10121",
"birthday": "1990-05-31",
"jointime": "Wed Jun 08 14:23:05 +0800 2016",
"user_type": 1,
"nickname": "NEXI",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 14:23:05 +0800 2016",
"subtag_info": {
"subtag_name": "管理员",
"subtag_gid": 0,
"can_show": false
},
"role": 3,
"gender": "m",
"avatar": "97547862",
"isGag": false
},
{
"id": "40505",
"jointime": "Wed Jun 08 18:27:23 +0800 2016",
"user_type": 1,
"nickname": "�",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 18:27:23 +0800 2016",
"subtag_info": {
"subtag_name": "管理员",
"subtag_gid": 0,
"can_show": false
},
"role": 3,
"gender": "m",
"avatar": "89053902",
"isGag": false
},
{
"id": "40452",
"birthday": "1990-01-01",
"jointime": "Wed Jun 08 16:41:24 +0800 2016",
"user_type": 1,
"nickname": "Ddddd",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 16:41:24 +0800 2016",
"subtag_info": {
"subtag_name": "未分组",
"subtag_gid": 0,
"can_show": false
},
"role": 1,
"gender": "f",
"avatar": "89657268",
"isGag": false
},
{
"birthday": "1985-01-01",
"nickname": "自我喔喔喔喔喔喔喔喔喔喔自我喔",
"user_type": 1,
"subtag_info": {
"subtag_name": "未分组",
"subtag_gid": 0,
"can_show": false
},
"avatar": "88792220",
"id": "381531",
"jointime": "Wed Jun 08 18:58:38 +0800 2016",
"description": "",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 18:58:38 +0800 2016",
"gender": "f",
"role": 1,
"isGag": false
},
{
"id": "40561",
"jointime": "Wed Jun 08 18:59:29 +0800 2016",
"user_type": 1,
"nickname": "少吃一口舒服一宿",
"description": "",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 19:08:56 +0800 2016",
"subtag_info": {
"subtag_name": "未分组",
"subtag_gid": 0,
"can_show": false
},
"role": 1,
"gender": "m",
"avatar": "90023585",
"isGag": false
},
{
"id": "41340",
"birthday": "1992-01-01",
"jointime": "Wed Jun 08 14:36:01 +0800 2016",
"user_type": 1,
"nickname": "吉吉小王",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 14:36:01 +0800 2016",
"subtag_info": {
"subtag_name": "未分组",
"subtag_gid": 0,
"can_show": false
},
"role": 1,
"gender": "f",
"avatar": "89984476",
"isGag": false
},
{
"birthday": "1985-01-01",
"nickname": "v",
"user_type": 1,
"subtag_info": {
"subtag_name": "未分组",
"subtag_gid": 0,
"can_show": false
},
"avatar": "88970314",
"id": "396861",
"jointime": "Wed Jun 08 15:38:13 +0800 2016",
"description": "",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 19:09:34 +0800 2016",
"gender": "m",
"role": 1,
"isGag": false
},
{
"id": "381317",
"birthday": "1969-01-01",
"jointime": "Wed Jun 08 18:45:15 +0800 2016",
"user_type": 1,
"nickname": "2goz",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 19:05:46 +0800 2016",
"subtag_info": {
"subtag_name": "未分组",
"subtag_gid": 0,
"can_show": false
},
"role": 1,
"gender": "m",
"avatar": "89985176",
"isGag": false
},
{
"id": "42459",
"jointime": "Wed Jun 08 19:21:20 +0800 2016",
"user_type": 1,
"nickname": "疯子",
"description": "",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 19:21:20 +0800 2016",
"subtag_info": {
"subtag_name": "未分组",
"subtag_gid": 0,
"can_show": false
},
"role": 1,
"gender": "m",
"avatar": "89474976",
"isGag": false
},
{
"id": "41436",
"jointime": "Wed Jun 08 19:10:25 +0800 2016",
"user_type": 1,
"nickname": "11",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 19:10:25 +0800 2016",
"subtag_info": {
"subtag_name": "未分组",
"subtag_gid": 0,
"can_show": false
},
"role": 1,
"gender": "f",
"isGag": false
},
{
"birthday": "2006-04-05",
"nickname": "冀正",
"user_type": 1,
"subtag_info": {
"subtag_name": "未分组",
"subtag_gid": 0,
"can_show": false
},
"avatar": "89985536",
"id": "398402",
"jointime": "Wed Jun 08 13:27:52 +0800 2016",
"description": "",
"onAir": 0,
"groupuser_props": {
"isFocus": 2,
"gag": false,
"show_mark": true,
"attention": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 13:27:52 +0800 2016",
"gender": "m",
"role": 1,
"isGag": false
},
{
"id": "41707",
"jointime": "Wed Jun 08 18:46:37 +0800 2016",
"user_type": 1,
"nickname": "8块腹肌",
"description": "",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 18:46:37 +0800 2016",
"subtag_info": {
"subtag_name": "未分组",
"subtag_gid": 0,
"can_show": false
},
"role": 1,
"gender": "m",
"avatar": "90023308",
"isGag": false
},
{
"id": "41506",
"jointime": "Wed Jun 08 15:37:06 +0800 2016",
"user_type": 1,
"nickname": "嘉熙",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 15:37:06 +0800 2016",
"subtag_info": {
"subtag_name": "未分组",
"subtag_gid": 0,
"can_show": false
},
"role": 1,
"gender": "m",
"isGag": false
},
{
"id": "42624",
"birthday": "1990-01-01",
"jointime": "Wed Jun 08 14:26:10 +0800 2016",
"user_type": 1,
"nickname": "吉吉大王",
"onAir": 0,
"groupuser_props": {
"show_mark": true,
"remind": "UnDisturb"
},
"activetime": "Wed Jun 08 14:26:10 +0800 2016",
"subtag_info": {
"subtag_name": "未分组",
"subtag_gid": 0,
"can_show": false
},
"role": 1,
"gender": "f",
"avatar": "90019043",
"isGag": false
}
],
"queues": []
}
}
1.2. post方式
post方式比较费时,我们在选择的时候选择post方式。
注意Content-Type一定要选择对,否则会不正确的。
具体值得传递跟get一样?gid=590594
具体如下所示:
1.3. header添加
很多请求的时候,可能涉及到回话或者其他的东西,需要header支持,在这里就必须要使用添加header方式了,
具体的添加如下:
post插件的更多相关文章
- Angular杂谈系列1-如何在Angular2中使用jQuery及其插件
jQuery,让我们对dom的操作更加便捷.由于其易用性和可扩展性,jQuer也迅速风靡全球,各种插件也是目不暇接. 我相信很多人并不能直接远离jQuery去做前端,因为它太好用了,我们以前做的东西大 ...
- Jenkins 安装的HTML Publisher Plugin 插件无法展示ant生成的JunitReport报告
最近在做基于jenkins ant junit 的测试持续集成,单独ant junit生成的junitreport报告打开正常,使用Jenkins的HTML Publisher Plugin 插件无 ...
- 常用 Gulp 插件汇总 —— 基于 Gulp 的前端集成解决方案(三)
前两篇文章讨论了 Gulp 的安装部署及基本概念,借助于 Gulp 强大的 插件生态 可以完成很多常见的和不常见的任务.本文主要汇总常用的 Gulp 插件及其基本使用,需要读者对 Gulp 有一个基本 ...
- solr服务中集成IKAnalyzer中文分词器、集成dataimportHandler插件
昨天已经在Tomcat容器中成功的部署了solr全文检索引擎系统的服务:今天来分享一下solr服务在海量数据的网站中是如何实现数据的检索. 在solr服务中集成IKAnalyzer中文分词器的步骤: ...
- 使用Visual Studio SDK制作GLSL词法着色插件
使用Visual Studio SDK制作GLSL词法着色插件 我们在Visual Studio上开发OpenGL ES项目时,避免不了写Shader.这时在vs里直接编辑shader就会显得很方便. ...
- 工欲善其事,必先利其器 之 VS2013全攻略(安装,技巧,快捷键,插件)!
如有需要WPF工具的朋友可以移步 工欲善其事,必先利其器 之 WPF篇: 随着开发轨迹来看高效WPF开发的工具和技巧 之前一篇<c++的性能, c#的产能?!鱼和熊掌可以兼得,.NET NATI ...
- Jquery mobiscroll 移动设备(手机)wap日期时间选择插件以及滑动、滚动插件
Jquery Mobiscroll是一个用于触摸设备(Android phones, iPhone, iPad, Galaxy Tab)的日期和时间选择器jQuery插件.以及各种滑动插件 可以让用户 ...
- 10个最好用的HTML/CSS 工具、插件和资料库
大家在使用HTML/CSS开发项目的过程中,有使用过哪些工具,插件和库?下面介绍的10种HTML/CSS工具,插件和资料库,是国外程序员经常用到的. Firebug Lite FirebugLite ...
- 在Sublime Text 3上安装代码格式化插件CodeFormatter
1.了解CodeFormatter插件 在Sublime Text 3中编写代码,为了能让我们的代码格式变得漂亮整洁,需要一个能自动格式代码的插件.这里发现CodeFormatter插件不错,它能支持 ...
- 【解决方案】Myeclipse 10 安装 GIT 插件 集成 步骤 图解
工程开发中,往往要使用到集成GIT ,那么下面说说插件安装步骤 PS:以Myeclipse 10 为例,讲解集成安装步骤. ----------------------main------------ ...
随机推荐
- h5视频和音频 -2018/04/16
HTML5 规定了一种通过 video 元素来包含视频的标准方法. 当前video元素支持的三种视频格式: (1)Ogg 带有Theora视频编码和Vorbis音频编码的ogg文件 (2)MPEG4带 ...
- mongol学习
启动mongodb 服务器: 进入mongodb文件夹:cd ~/mongodb 第一次先要创建set与log文件夹. mkdir set; mkdir log; 并创建 ...
- laravel5.5 使用alipay SDK报错Cannot redeclare Encrypt() (previously declared in ../vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:448)
错误现象: 在laravel5.5 中,使用alipaySDK 报错: Cannot redeclare Encrypt() (previously declared in ../vendor/lar ...
- NC的开发模型
2018-04-1622:35:12 NC的开发模型 系统前端为:客户UI代码,UI代码继承ToftPanel,UI代码通过调用远程组件和服务端进行交互,中间传递的数据模型为VO,远程组件调用底层的业 ...
- Maven 项目管理工具基础入门系列(二)
一.前言 在 Maven 项目管理工具基础知识系列(一) 这篇文章中,我们已经初步了解了 Maven,也知道了使用 Maven 作为项目管理工具的好处,特别是已经知道如何快速通过 Maven 构建 W ...
- [SDOI 2014]数表
Description 有一张N×m的数表,其第i行第j列(1 < =i < =N,1 < =j < =m)的数值为 能同时整除i和j的所有自然数之和.给定a,计算数表中不大于 ...
- [SDOI2011]计算器
Description 你被要求设计一个计算器完成以下三项任务: 1.给定y,z,p,计算Y^Z Mod P 的值: 2.给定y,z,p,计算满足xy≡ Z ( mod P )的最小非负整数: 3.给 ...
- Chtholly Nota Seniorious
题目背景 大样例下发链接: https://pan.baidu.com/s/1nuVpRS1 密码: sfxg こんなにも.たくさんの幸せをあの人に分けてもらった だから.きっと 今の.私は 谁が何と ...
- UVALive - 3942:Remember the Word
发现字典里面的单词数目多且长度短,可以用字典树保存 f[i]表示s[i~L]的分割方式,则有f[i]=∑f[i+len(word[j])] 其中word[j]为s[i~L]的前缀 注意字典树又叫前 ...
- Codeforces Round #438 B. Race Against Time
Description Have you ever tried to explain to the coordinator, why it is eight hours to the contest ...