SourceForge has been redesigned. Learn more.
Close

#17 username containing "%" fails

closed-works-for-me
nobody
None
5
2008-05-31
2008-05-31
Rob
No

if the username contains a percent sign %, then wput truncates the portion of the username after the %.

example:
wput myfile ftp://abc%123:mypass@mysite.com

=> ftp://1n7:xxxxx@111.111.111.111:21/myfile
Connecting to 111.111.111.111:21... connected!
Logging in as abc ... Error: Login-Sequence failed (Not logged in.)
Skipping all files from this account...
FINISHED --11:20:22--
Transmission of 1 file failed.

the username should have been abc%123, not just abc

Our service provider puts the % in all the usernames, so we can't use wput with them.

Discussion

  • Rumpeltux

    Rumpeltux - 2008-05-31

    Logged In: YES
    user_id=989758
    Originator: NO

    You have to replace a % sign by %25 since wput will unescape the user-name first and consider the percent sign as an escape character.

     
  • Rumpeltux

    Rumpeltux - 2008-05-31
    • status: open --> closed-works-for-me
     

Log in to post a comment.