Http Client URL fails
I am trying to use Http Client to make an API call to a url. I need to pass into the URL some parameters so the API provider has given me a template for the call
https://..../exportData?infoJson={\'cat\':\'1\',\'id\':[\'6815\',\'6964\'],\'data\':...}&access_token=...
Where I need to pass some parameters in InfoJson and my access token.
When I put this into a streamsets URL I get the Illegal character error
Pipeline Status: RUNNING_ERROR: java.lang.IllegalStateException: Illegal character "\" at position 10 is not allowed as a start of a name in a path template "infoJson={\"cat\":\"1\",\"id\":[\"6815\",\"6964\"],..."}&access_token=...".
I have used every possible way double quotes,signle queotes, backslash before quote, no backlash before quote but every time I get Illegal character error for ", ' or \
Is there a way to send a call into a URL like that?
You likely need a double backslash in this context (you are escaping a backslash in a string literal). Did you try that?
I tried this and it still fails with the same error