skip to Main Content

Nginx – How to extract headers.response value and use it in next request?

API request response.headers shows as below: Headers([('server', 'nginx'), ('content-type', 'application/json'), ('content-length', '86'), ('content-encoding', 'gzip'), ('bd-tt-error-code', '0'), ('vary', 'Accept-Encoding,Origin'), ('x-tt-logid', '202312170838402529F37099A87D3183C8'), ('x-tt-store-idc', 'useast50'), ('x-tt-store-region', 'us'), ('x-tt-store-sec-uid', 'MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ'), ('tt-idc-switch', '10000@20231215031610'), ('access-control-expose-headers', 'tt-idc-switch'), ('server-timing', 'inner; dur=342'), ('x-tt-trace-host', '018d3bc5ced77196494af1e4061407934b6217a2456ca5e45c0b073ee97f5212289640d2a2b1270fb44af17fcd1630e811046af8087a2cdb115aac237560ac99f7402ce7cc4f5d05098607026e881fdf7a0710ec3d4cb1e8a49b9a5b4a22c714be'), ('x-tt-trace-id', '00-76ed61b410657ea68d8c17862b9504d1-76ed61b410657ea6-01'), ('date', 'Sun, 17…

VIEW QUESTION
Back To Top
Search