I would like to change my request made using curl.
I need to get req.session.co === true to execute my action.
So, i test: curl --request GET <url> -H req.session.co: true
But i receive:
{
'user-agent': ...,
host: 'localhost:8000',
accept: '*/*',
'req.session.co': 'true'
}
The req.session.co is not defined.
This “curl” change in the header, how to change out?
Thanks !
You need to set it yourself:
You cannot access your session directly over HTTP, so
curlcan not affect it in any way.