Buy commercial curl support. We
help you work out your issues, debug your libcurl applications, use the API,
port to new platforms, add new features and more. With a team lead by the
curl founder Daniel himself.
How to have cURL send 2 consecutive requests with the later user part of the former response
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Nicolas Guittet via curl-users <curl-users_at_lists.haxx.se>
Date: Tue, 7 Apr 2026 16:25:40 +0200
Hi everyone here,
I've dug up google enough to come here to bother you; sorry in advance if
this has already been asked and answered somewhere I could not find (and
sorry also for my wording; english is not my mother tongue).
My concern is that I have a monitoring tool that is allowed to execute some
system commands, but each command has no memory of the previous
commands, so I have to figure out a way to build a single line command with
pipes or whatever to reach my goal.
In the current case, I'm trying to use cURL to monitor an API life status.
This is pretty easy with a "no-authentication" API, but becomes complex if
we want to add a preliminary "Get Access Token" step first.
I already know how to separately build those 2 requests, but does cURL have
a way to chain requests where a later request can use a part of a previous
reply ?
Thank you very much for your help.
Kind regards,
toxcct
Date: Tue, 7 Apr 2026 16:25:40 +0200
Hi everyone here,
I've dug up google enough to come here to bother you; sorry in advance if
this has already been asked and answered somewhere I could not find (and
sorry also for my wording; english is not my mother tongue).
My concern is that I have a monitoring tool that is allowed to execute some
system commands, but each command has no memory of the previous
commands, so I have to figure out a way to build a single line command with
pipes or whatever to reach my goal.
In the current case, I'm trying to use cURL to monitor an API life status.
This is pretty easy with a "no-authentication" API, but becomes complex if
we want to add a preliminary "Get Access Token" step first.
I already know how to separately build those 2 requests, but does cURL have
a way to chain requests where a later request can use a part of a previous
reply ?
Thank you very much for your help.
Kind regards,
toxcct
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2026-04-07