Please become accustomed to provide decent context info of your problem.
It is always helpful to support a request with system info like OS and shell, related environment (variables, options), preferred tools, adequate (representative) sample input and desired output data and the logics connecting the two, and, if existent, system (error) messages verbatim, to avoid ambiguities and keep people from guessing.
I'm pretty sure you won't " curl with these variables:", so please provide complete commands so people don't need to guess what you're doing or want to do. To read, expand, and use data from files, try
Hi @RudiC. Thank you for the reply and apologies for the lack of pertinent info.
You are absolutely correct that I won't "curlwith these variables" so let me try to rephrase.
Curl will be used for an API call to add multiple nodes to a load balancer pool (hence my cry for help on how to go about reading, expanding and using a source file) and the variables above are all needed.
Looks something like this -
but this is what is sent -
curl -u userpassword -H 'Content-Type: application/json' -X POST //api/add/ -d '{ "nodename": "server001", "address": "10.10.10.01", "poolname": "serverpool1", "port": "80", "lbname" : "loadbalancer01" }'
I've tried different ways for escape like \ ` and other combinations of but it's just not working.