Bash/ CURL problems

I’m having a little bit of trouble with the shell command. The problem is I don’t understand the bash shell well enough so if I sound like a babbling fool here kindly correct me.

I am able to hit a remote system by opening up a terminal on my mac and typing in the following command:

curl https://api.someurl.com/v1/\\ -u abcdefg123456789 Everything works just fine.

But then I tried to do so in xojo:

dim myShell as new Shell dim myCURL as string ="/usr/bin/curl " myCURL=myCURL+"https://api.someurl.com \\ "+endofline+" -u abcdefg123456789" myShell.Execute myCURL

And I get back a rather confusing verbose error, The meat of which is:

curl: (6) Could not resolve host: -u curl: (6) Could not resolve host: abcdefg123456789

I did notice that somehow the bash shell on my Mac is breaking the command into two lines;

curl https://api.someurl.com/v1/\\ Then it (the bash shell) spits out a ">" And it accepts the second line: -u abcdefg123456789

What am I missing here?

I can understand splitting the lines for readability on the command line, but why have it in the Shell, especially since it’s clearly not handling it properly? Change your command to:

myCURL=myCURL+"https://api.someurl.com -u abcdefg123456789" \\