Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Net::FTP and corrupted uploads

by sgifford (Prior)
on Jun 06, 2008 at 20:03 UTC ( #690751=note: print w/ replies, xml ) Need Help??


in reply to Net::FTP and corrupted uploads

What does the file you are transferring look like? In particular, does it contain DOS-style (CR/LF) or Unix-style (LF) line endings? There are several parts of this process that will try to fix the line endings, and if the file doesn't look how they expect, they may truncate lines. In this case they are expecting DOS-style CR/LF line endings.

Beyond that, it could be Net::FTP screwing up the file, the underlying I/O libraries, or the FTP server. Using a packet sniffer to look at what's being sent across the wire would be a good way to see if the client is behaving correctly. A debugger would be the easiest way to see whether it's the I/O library or the FTP module.

Is there a reason you don't want to transfer the file in binary? It's much less error-prone.

Update: Fixed formatting.


Comment on Re: Net::FTP and corrupted uploads

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://690751]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2014-12-26 00:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls