←back to thread

460 points flykespice | 3 comments | | HN request time: 0s | source
1. kaan_keskin ◴[] No.44325267[source]
this looks nice. is it possible to set a variable after a request and use it later in another request?
replies(1): >>44325323 #
2. mhio ◴[] No.44325323[source]
Yeah...

    [Captures]
    csrf_token: xpath "normalize-space(//meta[@name='_csrf_token']/@content)"
The use the name with mustaches

    {{csrf_token}}
- https://hurl.dev/docs/capturing-response.html
replies(1): >>44348734 #
3. kaan_keskin ◴[] No.44348734[source]
i'm going to definitely give this a try. looks good