"*web/ftp;send"

Started by Peter.Higgins, May 16, 2022, 03:47:30 PM

Previous topic - Next topic

Peter.Higgins

I have a password with $ special character and passing this as a argument doesn't work.
Any suggestions appreciated.
Tried adding single quotes around pswd and url encoding the $ but this doesn't work.

Devon Austen

Try putting a backslash before the $ i.e. \$.
Does that work?
Principal Software Engineer for PVX Plus Technologies LTD.

Peter.Higgins

Devon,
It does not. The line is still returning curl: (67) Access denied: 530

Peter.Higgins

#3
Devon,
It did work.  Sorry for the wrong answer.  Those single quotes were not noticed on the first attempt.
Thank you.

Devon Austen

Yes single quotes are unnecessary as we pass the username and password to curl surrounded in double quotes already.

curl -u "username:password"

I am surprised that a $ needed to be escaped since we do pass it in the double quotes. We will have to look into what characters are special and escape them automatically if possible. 
Principal Software Engineer for PVX Plus Technologies LTD.