PxPlus User Forum

Twitter Twitter Twitter

Author Topic: "*web/ftp;send"  (Read 951 times)

Peter.Higgins

  • Diamond Member
  • *****
  • Posts: 124
    • View Profile
"*web/ftp;send"
« on: May 16, 2022, 03:47:30 PM »
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

  • Administrator
  • Diamond Member
  • *****
  • Posts: 382
  • Don’t Panic
    • View Profile
    • PVX Plus Technologies
Re: "*web/ftp;send"
« Reply #1 on: May 16, 2022, 04:19:23 PM »
Try putting a backslash before the $ i.e. \$.
Does that work?
Principal Software Engineer for PVX Plus Technologies LTD.

Peter.Higgins

  • Diamond Member
  • *****
  • Posts: 124
    • View Profile
Re: "*web/ftp;send"
« Reply #2 on: May 16, 2022, 04:29:09 PM »
Devon,
It does not. The line is still returning curl: (67) Access denied: 530

Peter.Higgins

  • Diamond Member
  • *****
  • Posts: 124
    • View Profile
Re: "*web/ftp;send"
« Reply #3 on: May 16, 2022, 04:51:43 PM »
Devon,
It did work.  Sorry for the wrong answer.  Those single quotes were not noticed on the first attempt.
Thank you.
« Last Edit: May 16, 2022, 04:54:53 PM by Peter.Higgins »

Devon Austen

  • Administrator
  • Diamond Member
  • *****
  • Posts: 382
  • Don’t Panic
    • View Profile
    • PVX Plus Technologies
Re: "*web/ftp;send"
« Reply #4 on: May 16, 2022, 05:00:12 PM »
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.