INFO: How to handle FTP URL with a password containing special characters ?

Expand / Collapse
 

INFO: How to handle FTP URL with a password containing special characters ?


This article applies to:

  • SWG 9.x
  • SWG 10.x

Question:

It is very common to use special characters in FTP passwords. These characters may cause browser conflicts when used for inline URL access.
 

Procedure:

For example, the password for FTP account USER on some_ftp_server.com is P@$$WORD - so the URL for browser access is:

ftp://USER:P@$$WORD@some_ftp_server.com

Special characters (@, $) in this URL have to be hex encoded to operate without any conflicts. And the hex conversion will look as following:

ftp://USER:P%40%24%24WORD@some_ftp_server.com

where %40 is the hex value (0x40) of '@' character and %24 is the hex value (0x24) of '$' character.

For complete list of special characters conversion codes refer to the following resource: http://www.ascii.cl/htmlcodes.htm

 



To contact Trustwave about this article or to request support:


Rate this Article:
     

Add Your Comments


Comment submission is disabled for anonymous users.
Please send feedback to Trustwave Technical Support or the Webmaster
.

Details
Article ID: 14938
Last Modified: 8/23/2012
Type: INFO
Rated 5 stars based on 1 vote
Article has been viewed 18,796 times.
Options