Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Scriptrunner cURL header

Johannes
Contributor
December 9, 2019

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 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events