1. postman发请求成功,

2. 导出curl

https://blog.csdn.net/fangkang7/article/details/84338557

3. 找到和导出cookie

http://www.editthiscookie.com/

注意curl用的不是json格式,需要设置导出格式为netscape的

curl请求with cookie

4 curl使用cookie文件

curl -b 或者 --cookie

curl -b ~/cookie.txt  -X POST \
  'http://xxx/gateway/' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/x-www-form-urlencoded' \
  -H 'postman-token: 46308884-803f-fbd4-7d14-0f6e05d522b8' \
  -d 'dim=9580&errorTime=2018-12-21%2011%3A30%3A05'

未来考虑下httpie

https://httpie.org/

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2021-09-05
  • 2021-06-03
  • 2022-12-23
  • 2021-12-05
  • 2021-08-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案