精易论坛

标题: 请教POST协议头问题 [打印本页]

作者: 我已更新    时间: 2025-6-26 16:48
标题: 请教POST协议头问题
POST https://pt.ttie1056.com/prod-api/tms/exec/invalid HTTP/1.1
Host: pt.ttie1056.com
Connection: keep-alive
Content-Length: 67
Accept: application/json, text/plain, */*
X-Token: 5a1a36dfc327f5e8e23d10584a71181a
platform: pc
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
Content-Type: application/json;charset=UTF-8
Origin: https://pt.ttie1056.com
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://pt.ttie1056.com/
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Cookie: HWWAFSESID=7c2cf73f6a07349378; HWWAFSESTIME=1750923647239; national=true; X-Token=5a1a36dfc327f5e8e23d10584a71181a

帮我提取一下协议头呗,


作者: frankiy    时间: 2025-6-26 16:48
POST https://pt.ttie1056.com/prod-api/tms/exec/invalid HTTP/1.1
Host: pt.ttie1056.com
Connection: keep-alive
Content-Length: [L]
Accept: application/json, text/plain, */*
X-Token: [token]
platform: pc
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
Content-Type: application/json;charset=UTF-8
Origin: https://pt.ttie1056.com
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://pt.ttie1056.com/
Accept-Language: zh-CN,zh;q=0.9


1,将以上文本保存到一个常量里。
2,使用的时候,替换[L]为提交数据的长度;替换[token]为实际token
3,替换后取得的文本就是你要用的协议头。

作者: 啊浩呀    时间: 7 天前
Host: pt.ttie1056.com Connection: keep-alive Content-Length: 67 Accept: application/json, text/plain, */* X-Token: 5a1a36dfc327f5e8e23d10584a71181a platform: pc User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 Content-Type: application/json;charset=UTF-8 Origin: https://pt.ttie1056.com Sec-Fetch-Site: same-origin Sec-Fetch-Mode: cors Sec-Fetch-Dest: empty Referer: https://pt.ttie1056.com/ Accept-Language: zh-CN,zh;q=0.9
作者: 忆泪    时间: 7 天前
POST那一行和Cookie那一行去掉即可。如果在易语言里面,Accept-Encoding: gzip, deflate, br这一行也要去掉




欢迎光临 精易论坛 (https://125.confly.eu.org/) Powered by Discuz! X3.4