I am having trouble uploading to the new PAYH servers because the file lengths are changing. This appears to be because my windows line endings are being converted to Unix ones on the server.
The consequence of this is that the server reported and local (to me) file sizes differ so my FTP sofware sees this size change and always uploads all my files even though they should not have changed.
What is really odd is that the servers seem to know that I want windows line endings since they actually return these and not UNIX line endings.
What is even more strange is that the server FTP announces that it is sending a file with the Unix length but then sends a file with the WIndows length!
For example here is the server sending me a file that is 4380 bytes on Windows and 4279 bytes on the server (captured with WireShark):
FTP Response: 150 Opening ASCII mode data connection for index.php (4279 bytes)
62 5.506548 126.96.36.199 192.168.1.11 FTP-DATA FTP Data: 1380 bytes
63 5.508244 188.8.131.52 192.168.1.11 FTP-DATA FTP Data: 1380 bytes
65 5.509768 184.108.40.206 192.168.1.11 FTP-DATA FTP Data: 1380 bytes
66 5.509910 220.127.116.11 192.168.1.11 FTP-DATA FTP Data: 240 bytes
So I get a good Windows file of length 4380 (1380 x 3 + 240) even though the FTP software has announced to my client that it is sending a file whose length is 4279 bytes!
It is hardly surprising that my FTP client is not impressed by this!
Can someone please advise me on what is going on?