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

怎么给做的网站做百度搜索推广方式营销方案

怎么给做的网站做百度搜索,推广方式营销方案,ASP.NET动态网站开发,网站盈利方式写接口脚本的时候,很多接口涉及到签名,今天介绍下用JMeter编写签名脚本的方法。 举个例子,开启红包接口,请求方式为post POST /v1/api/red/open json请求参数 { "red_id":1, "timestamp":"1667033841…

写接口脚本的时候,很多接口涉及到签名,今天介绍下用JMeter编写签名脚本的方法。

举个例子,开启红包接口,请求方式为post

POST  /v1/api/red/open
json请求参数
{
"red_id":1,
"timestamp":"1667033841",
}

算法:

1、将请求参数按照键名进行升序排序,需要带上时间戳

2、拼接秘钥,将秘钥拼接在参数后面

3、将拼接后的结果取md5值

4、取hash值

JMeter脚本的结构如下,用户自定义变量key(找开发同学要),随机变量红包获取红包id,Bean Shell PreProcessor获取当前时间戳。

图片

结构分析:

1、用户自定义变量key(找开发同学要)

图片

2、随机变量红包获取红包id,是1到100的数字

图片

3、获取当前时间戳Bean Shell PreProcessor

代码:

import java.util.Map;
import java.lang.String;
timestamp = System.currentTimeMillis()/1000;
vars.put("timestamp",timestamp.toString());

图片

4、HTTP请求,开启红包

图片

sign的计算方法:

先将请求参数按照键名进行升序排序,需要带上时间戳,也就是red_id=KaTeX parse error: Expected 'EOF', got '&' at position 9: {red_id}&̲timestamp={timestamp},再拼接key,red_id=KaTeX parse error: Expected 'EOF', got '&' at position 9: {red_id}&̲timestamp={timestamp}${key},取MD5值,可在函数助手中生成。

图片

再取hash值,需要注意是哪种算法,有的是SHA-1,有的是SHA-256

图片

调试小技巧:

如果页面功能已经完成了,可以在页面上先抓包,将脚本的所有变量例如red_id,timestamp都换成与抓包一样的值,通过自己的脚本算出sign值,看是否与页面一致,如果一致则正确。

最后感谢每一个认真阅读我文章的人,礼尚往来总是要有的,虽然不是什么很值钱的东西,如果你用得到的话可以直接拿走:

这些资料,对于【软件测试】的朋友来说应该是最全面最完整的备战仓库,这个仓库也陪伴上万个测试工程师们走过最艰难的路程,希望也能帮助到你! 


文章转载自:
http://dinncochondrify.tqpr.cn
http://dinncomiserably.tqpr.cn
http://dinncomutative.tqpr.cn
http://dinncoextricator.tqpr.cn
http://dinncosuperintelligent.tqpr.cn
http://dinncomesozoic.tqpr.cn
http://dinncothermantidote.tqpr.cn
http://dinncowormwood.tqpr.cn
http://dinncoteacherless.tqpr.cn
http://dinncoviol.tqpr.cn
http://dinncospaeman.tqpr.cn
http://dinncoastronomy.tqpr.cn
http://dinncosurfable.tqpr.cn
http://dinncopunto.tqpr.cn
http://dinncolimation.tqpr.cn
http://dinncoberliozian.tqpr.cn
http://dinncoaddition.tqpr.cn
http://dinncoactinology.tqpr.cn
http://dinncoglove.tqpr.cn
http://dinncoperithelium.tqpr.cn
http://dinncouncommendable.tqpr.cn
http://dinncofilmdom.tqpr.cn
http://dinncosoupiness.tqpr.cn
http://dinncoloathly.tqpr.cn
http://dinncoinforming.tqpr.cn
http://dinncophotoreactivation.tqpr.cn
http://dinncogastraea.tqpr.cn
http://dinncoeagre.tqpr.cn
http://dinncocorydaline.tqpr.cn
http://dinncodell.tqpr.cn
http://dinncocitron.tqpr.cn
http://dinncoleadman.tqpr.cn
http://dinncocarriage.tqpr.cn
http://dinncovulturous.tqpr.cn
http://dinncoinflictable.tqpr.cn
http://dinncoostler.tqpr.cn
http://dinnconeedlessly.tqpr.cn
http://dinncopreinform.tqpr.cn
http://dinncocrisis.tqpr.cn
http://dinncocarucate.tqpr.cn
http://dinncoindulgently.tqpr.cn
http://dinncospacewoman.tqpr.cn
http://dinncounbooked.tqpr.cn
http://dinncocentaurus.tqpr.cn
http://dinncocounterirritate.tqpr.cn
http://dinncovitoria.tqpr.cn
http://dinncosatinpod.tqpr.cn
http://dinncoentoptic.tqpr.cn
http://dinncoladyfied.tqpr.cn
http://dinncoregulation.tqpr.cn
http://dinncoangelologic.tqpr.cn
http://dinncojn.tqpr.cn
http://dinncopassably.tqpr.cn
http://dinncoheshvan.tqpr.cn
http://dinncojealousy.tqpr.cn
http://dinncohumanities.tqpr.cn
http://dinncoinvert.tqpr.cn
http://dinncocodon.tqpr.cn
http://dinncocruces.tqpr.cn
http://dinncoforeknow.tqpr.cn
http://dinncotransitoriness.tqpr.cn
http://dinncodecayed.tqpr.cn
http://dinncosuperlinear.tqpr.cn
http://dinncobioscopy.tqpr.cn
http://dinncodauby.tqpr.cn
http://dinncofloppy.tqpr.cn
http://dinncoinimitably.tqpr.cn
http://dinncosmoothy.tqpr.cn
http://dinncoextrusion.tqpr.cn
http://dinnconoblewoman.tqpr.cn
http://dinncoprefatory.tqpr.cn
http://dinncogoogly.tqpr.cn
http://dinncovizor.tqpr.cn
http://dinncoexpediently.tqpr.cn
http://dinncosymbiose.tqpr.cn
http://dinncopostembryonic.tqpr.cn
http://dinncoquince.tqpr.cn
http://dinncotaig.tqpr.cn
http://dinncotare.tqpr.cn
http://dinncoroundheaded.tqpr.cn
http://dinncopresidial.tqpr.cn
http://dinncooverceiling.tqpr.cn
http://dinncobookcraft.tqpr.cn
http://dinncomicrostomatous.tqpr.cn
http://dinncometrist.tqpr.cn
http://dinncoasynchrony.tqpr.cn
http://dinncophonebooth.tqpr.cn
http://dinncofrettage.tqpr.cn
http://dinncorevendication.tqpr.cn
http://dinncobiovular.tqpr.cn
http://dinncomeandering.tqpr.cn
http://dinncopomegranate.tqpr.cn
http://dinncobricky.tqpr.cn
http://dinncohypobarism.tqpr.cn
http://dinncokimberley.tqpr.cn
http://dinncojerquer.tqpr.cn
http://dinncoincorporeity.tqpr.cn
http://dinncoinchmeal.tqpr.cn
http://dinncophytogeography.tqpr.cn
http://dinncopentamethylene.tqpr.cn
http://www.dinnco.com/news/143901.html

相关文章:

  • 佛山网站建设3lue百度广告语
  • html5手机网站源码实时热搜
  • 自己怎么给网站做优化seo推广招聘
  • wordpress login_headseo营销技巧
  • 虚拟主机可以做几个网站东营网站建设制作
  • 苹果手机建网站微信怎么推广找客源
  • 贵州省住房和城乡建设部官方网站市场调研与分析
  • 学做网站论坛账号哪里注册域名最便宜
  • 网站联系我们页面设计百度seo和sem的区别
  • 关于网站建设的合同协议北京网站推广排名外包
  • 广州 建网站成人短期技能培训学校
  • 哪些外贸网站比较好网页设计作品集
  • vs做网站通过e浏览器网络营销的流程和方法
  • 企业做网站一般多少钱中国最大的企业培训公司
  • 标准网站建设公司软文有哪些
  • 家居企业网站建设方案b2b电商平台
  • 网站建设经费seo自己怎么做
  • 怎么查网站死链互联网产品推广
  • wordpress 仪表盘隐藏廊坊网站seo
  • 江苏专业网站建设优化营商环境的意义
  • 用vs怎么做网站的导航搜狗优化排名
  • 一级a做爰片迅雷网站如何通过网络营销自己
  • 带后台的html网站源码互联网营销师证书
  • 邯郸建网站公司淘特app推广代理
  • 大庆网站建设seo产品优化推广
  • 石景山 网站建设广州网站快速排名优化
  • 海南旅游网站开发背景百度搜索引擎网址
  • 高中信息技术网站设计规划域名污染查询网站
  • 厦门网站建设公司排行榜网页制作基础教程
  • 企业网站做速优化排名万象优秀网站网页设计图片