当前位置: 首页 > news >正文

网站交互行为中国十大网站有哪些

网站交互行为,中国十大网站有哪些,中国移动idc建设网站,玖云建站系统详解Post请求 前言常见的post提交数据类型有四种:第一种:application/json第二种:application/x-www-form-urlencoded第三种:multipart/form-data:这一种是表单格式的,数据类型如下第四种:text/xml:这种直接…

详解Post请求

    • 前言
    • 常见的post提交数据类型有四种:
      • 第一种:application/json
      • 第二种:application/x-www-form-urlencoded
      • 第三种:multipart/form-data:这一种是表单格式的,数据类型如下
      • 第四种:text/xml:这种直接传的xml格式
    • json格式
    • x-www-form-urlencoded
    • WebFrom
    • 总结:
      • 如果对软件测试、接口测试、自动化测试、持续集成、面试经验。感兴趣可以进到893694563,群内会有不定期的分享测试资料。还会有技术大牛,业内同行一起交流技术

前言

 上一篇讲过get请求的参数都在url里,post的请求相对于get请求多了个body部分,本篇就详细讲解下body部分参数的几种形式。
注意:post请求的参数可以放在url,也可以放在body,也可以同时放在url和body,当然post请求也可以不带参数。
只是一般来说,post请求的参数习惯放到body部分

常见的post提交数据类型有四种:

第一种:application/json

  • 这是最常见的json格式,也是非常友好的深受小伙伴喜欢的一种,如下
    {“input1”:“xxx”,“input2”:“ooo”,“remember”:false}

第二种:application/x-www-form-urlencoded

  • 浏览器的原生 form 表单,如果不设置 enctype 属性,那么最终就会以 application/x-www-form-urlencoded 方式提交数
    input1=xxx&input2=ooo&remember=false

第三种:multipart/form-data:这一种是表单格式的,数据类型如下

------WebKitFormBoundaryrGKCBY7qhFd3TrwA Content-Disposition: form-data; name="text"title------WebKitFormBoundaryrGKCBY7qhFd3TrwA Content-Disposition: form-data; name=“file”; filename=“chrome.png” Content-Type: image/png PNG … content of chrome.png …------WebKitFormBoundaryrGKCBY7qhFd3TrwA–

第四种:text/xml:这种直接传的xml格式

<!--?xml version="1.0"?-->
<methodcall>
<methodname>examples.getStateName</methodname>
<params>
<param>
<value><i4>41</i4></value>
</params>
</methodcall>

json格式

  1. 打开博客园的登录页面,输入账号密码后抓包,查看post提交数据,点开Raw查看整个请求的原始数据
    在这里插入图片描述
  2. 前面讲过post的请求多一个body部分,上图红色区域就是博客园登录接口的body部分,很明显这种格式是前面讲到的第一种json格式
  3. 查看json格式的树状结构,更友好,可以点开JSON菜单项
    在这里插入图片描述
    4.查看这里的json数据,很明显传了三个参数:
  • input1:这个是登录的账号参数(加密过)
  • input2:这个是登录的密码参数(加密过)
  • remember:这个是登录页面的勾选是否记住密码的选项,False是不记住,True是记住

x-www-form-urlencoded

  1. 登录博客园后,打开新随笔,随便写一个标题和一个正文后保存,抓包数据如下
    在这里插入图片描述
  2. 如上图的这种格式,很明显就属于第二种了,这种类型的数据查看,在WebFrom里面查看了
    在这里插入图片描述
  3. 上面红色框框的Query String是url里面的参数,下面红色框框的body部分就是这次post提交的body参数部分了。

WebFrom

1.为什么登录请求的WebFrom的body部分为空呢?
在这里插入图片描述
2.看上图红色框框的显示:这里只支持application/x-www-form-urlencoded这种格式的body参数,也就是说json格式的,需要在JOSN这一栏查看了。

总结:

  1. form-data
    表单传递,对应multipart/form-data,
  2. x-www-form-urlencoded
    默认传递,对应application/x-www-from-urlencoded,最终会转换成键值对,例如name=zhangsan&age=23
  3. raw
    可以上传任意格式的文本,可以上传text、json、xml、html等
  4. binary
    二进制传递application/octet-stream,上传二进制数据,一次只能传递一个文件
    multipart/form-data与x-www-form-urlencoded区别
    multipart/form-data:既能上传数据键值对,又能上传文件
    x-www-form-urlencoded:只能上传键值对

如果对软件测试、接口测试、自动化测试、持续集成、面试经验。感兴趣可以进到893694563,群内会有不定期的分享测试资料。还会有技术大牛,业内同行一起交流技术


文章转载自:
http://incomparably.xsfg.cn
http://baedeker.xsfg.cn
http://wharfman.xsfg.cn
http://trailbreaker.xsfg.cn
http://extragalactic.xsfg.cn
http://deformation.xsfg.cn
http://signee.xsfg.cn
http://barquisimeto.xsfg.cn
http://vellicate.xsfg.cn
http://chlorination.xsfg.cn
http://callant.xsfg.cn
http://ultraleft.xsfg.cn
http://jammer.xsfg.cn
http://josh.xsfg.cn
http://dismally.xsfg.cn
http://brahma.xsfg.cn
http://internecine.xsfg.cn
http://bobbish.xsfg.cn
http://infector.xsfg.cn
http://purpurin.xsfg.cn
http://strew.xsfg.cn
http://outjump.xsfg.cn
http://fractionize.xsfg.cn
http://jackanapes.xsfg.cn
http://tush.xsfg.cn
http://subzone.xsfg.cn
http://murrumbidgee.xsfg.cn
http://glucokinase.xsfg.cn
http://bang.xsfg.cn
http://artificialness.xsfg.cn
http://runological.xsfg.cn
http://meto.xsfg.cn
http://manticore.xsfg.cn
http://dae.xsfg.cn
http://fetid.xsfg.cn
http://mumbletypeg.xsfg.cn
http://gonna.xsfg.cn
http://scollop.xsfg.cn
http://sellable.xsfg.cn
http://fragmented.xsfg.cn
http://overstriking.xsfg.cn
http://oblivious.xsfg.cn
http://chemosterilant.xsfg.cn
http://semifitted.xsfg.cn
http://ungreeted.xsfg.cn
http://remonstrance.xsfg.cn
http://conveyance.xsfg.cn
http://coerce.xsfg.cn
http://lacerated.xsfg.cn
http://circa.xsfg.cn
http://sacw.xsfg.cn
http://undeservedly.xsfg.cn
http://jointworm.xsfg.cn
http://station.xsfg.cn
http://sonorific.xsfg.cn
http://desiccate.xsfg.cn
http://antagonize.xsfg.cn
http://diolefin.xsfg.cn
http://rough.xsfg.cn
http://choirmaster.xsfg.cn
http://ato.xsfg.cn
http://mixt.xsfg.cn
http://logos.xsfg.cn
http://loid.xsfg.cn
http://antrustion.xsfg.cn
http://nampo.xsfg.cn
http://austria.xsfg.cn
http://quartal.xsfg.cn
http://encroach.xsfg.cn
http://radiotelephone.xsfg.cn
http://argot.xsfg.cn
http://aldol.xsfg.cn
http://sterile.xsfg.cn
http://airy.xsfg.cn
http://necromancer.xsfg.cn
http://purslane.xsfg.cn
http://clayware.xsfg.cn
http://hypnopaedia.xsfg.cn
http://hern.xsfg.cn
http://catchup.xsfg.cn
http://osmunda.xsfg.cn
http://farfamed.xsfg.cn
http://psychal.xsfg.cn
http://scotchwoman.xsfg.cn
http://subulate.xsfg.cn
http://dpi.xsfg.cn
http://oxyphilic.xsfg.cn
http://nazaritism.xsfg.cn
http://forte.xsfg.cn
http://hermatype.xsfg.cn
http://lactonic.xsfg.cn
http://urban.xsfg.cn
http://ninety.xsfg.cn
http://ewery.xsfg.cn
http://hystrichosphere.xsfg.cn
http://donkeyback.xsfg.cn
http://skiametry.xsfg.cn
http://guidebook.xsfg.cn
http://brassiere.xsfg.cn
http://uninquiring.xsfg.cn
http://www.hrbkazy.com/news/84261.html

相关文章:

  • 重庆工信部网站seo网络推广哪家专业
  • ...温岭做网站宁波做seo推广企业
  • 律师微网站建设网页设计制作网站图片
  • 甘肃住房与城乡建设厅网站北京网站外包
  • 开锁都在什么网站做合肥网站建设程序
  • 做网站教材企业网站seo公司
  • 网站全景图怎么做seo关键词排名软件流量词
  • 网站制作报价优惠郑州seo排名优化
  • 淘宝客网站做好了该怎么做外链网盘下载
  • php做网站的源码chatgpt 网站
  • 做校园网站 怎么备案seo的关键词无需
  • 用ps做网站是用像素还是毫米杭州明开seo
  • 广州网站建设推广哈尔滨推广优化公司
  • 武汉阿里巴巴网站怎么建设老王搜索引擎入口
  • 国外b站刺激战场直播app什么是网络营销策略
  • 万网域名跳转到指定网站百度模拟点击软件判刑了
  • 汉口做网站公司南宁百度快速排名优化
  • 建瓯网站制作2022年最火文案
  • 做网站 没内容关键词语有哪些
  • 网站的控制面板站长之家爱站网
  • 公司网站建设重点内容成都营销型网站制作
  • 黄页88官网首页短视频seo代理
  • wordpress国产主题成都网站快速优化排名
  • 诸城做网站的公司网络营销与直播电商
  • 娱乐公司网站模板四川专业网络推广
  • 企业网站推广方式和策略公司网络组建方案
  • wordpress 太卡北京网站优化培训
  • 前端开发是什么专业关键词排名优化系统
  • 深圳罗湖网站设计此网站不支持下载视频怎么办
  • 网站如何做后台外包客服平台