Page 1 of 1

Userids with FTP comparison

Posted: Thu Jan 02, 2020 6:36 pm
by rfajman
When one does an ExamDiff FTP comparison with a host that requires authentication, the hostname, userid, password are entered in URL format as ftp://userid:password@host:port/dirorfilename. It's a problem when the userid has an @ in it, as happens with many services that use the email address as the userid. It seems to me that some additional optional syntax could avoid many problems caused by having to look up codes for encoding unusual characters. For example,

"userid:password"@host:port

or even

"userid":"password"@host:port/dirorfilename

There should be a convention for escaping quote characters, such as doubling them.

Just a thought...

Re: Userids with FTP comparison

Posted: Fri Jan 03, 2020 11:45 am
by psguru
Please see https://stackoverflow.com/questions/141 ... taining-an:
From http://www.ietf.org/rfc/rfc1738.txt

The user name (and password), if present, are followed by a commercial at-sign "@". Within the user and password field, any ":", "@", or "/" must be encoded.
For example, for user@site.com you'd use user%40site.com