我正在尝试从API响应中获取数据,该API响应以文本,原始,HTML和十六进制形式返回。 在这里,加特林从文本响应中获取数据,而文本响应返回空白。 有什么方法可以从原始响应中获取数据吗?
这是API原始响应:
pragma: No-cache
cache-control: no-cache,no-store,max-age=0
expires: Thu, 01 Jan 1970 00:00:00 GMT
location: https://www.example.com/us?laId=-1&stoId=10151&steId=10151&keyto=q32q8qmIFJvciOSmZQA4sLkkDJgUytxhulbBtU4d8%2F3m4XZ84h1a2Q1T3NyfueCEvuhupWDXda1HUVdQ3775rCoqReaCg%3D%3D
content-encoding: gzip
content-type: text/html;charset=UTF-8
content-language: en-US
access-control-allow-origin: *
accept-ranges: bytes
age: 0
accept-ranges: bytes
via: 1.1 varnish
age: 0
x-cache: MISS
x-cache-hits: 0
vary: Accept-Encoding```
and I have written this script to get a data:
.check(regex("keyto=(.*)").saveAs("corr_krypto"))
I've tried to disableFollowRedirect to this service
I've tried to get the data that I need from another service but I found it only into this service.