curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. 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 himself.

Re: Transmitting csrf-token in the body

From: Paul Gilmartin via curl-users <curl-users_at_cool.haxx.se>
Date: Wed, 3 Feb 2021 06:59:13 -0700

On 2021-02-03, at 06:44:26, Daniel Stenberg via curl-users wrote:
>
> First, let me say that none of this is actually curl problems.
> This is just a matter of using shell (quoting) and a remote API and curl just does what you ask it.
>
>> (one difference to the guidance above was that I had to escape the & in the last line to get it function)
> That's because a bare '&' has a special meaning to shells.
> ...
I often use command substitution to avoid shell behavior,
particularly when pasting a URL:
    curl [ options ] "$( cat )"
    <PASTE><ENTER>ctrl-D

-- gil


-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-02-03