Net-FTPSSL - How to do a non-standard PUT or GET using Net::FTPSSL

Posted on Wed Oct 4 17:39:49 2006 by monkeychunks
How to do a non-standard PUT or GET using Net::FTPSSL

I have to tranfer a file to/from a government server that expects some odd filename conventions. For testing, I can upload a file to their server using the command "put test test@username" manulally at an FTPS prompt. The "test@username" identifies what "area" on their server to assign the file, "test@username" places it in our "test" area.

In Net::FTPSSL, it dies trying to execute any of the following commands:

$ftphandle->put("test","test test@username"); $ftphandle->put('test','test test@username'); $ftphandle->put("test","test\ test\@username"); $ftphandle->put("test","test test\@username");

Nothing seems to work, I always get a "501 STOR: Syntax error in parameters." Does Net::FTPSSL have an escape character? Am I doing something dumb? I seek enlightenment.

Write a response