Hello,
I want to execute cURL commands from ScriptRunner. I am able to execute commands but can't figure out how to pass headers which contain spaces.
For the example:
def command = "curl -H 'Authorization:Basic base64' https://abc.com/confluence/rest/api/space/"
def proc = command.execute()
I receive an error that the host "base64" was not found. How can I pass the header properly?
I have tried it with quotes, double quotes and %20.
Thanks a lot in advance
Johannes
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.