Hi !
I'm presently working with sockets to access FTP. Yes, I know, I could use PHP FTP functions, but I'd like to try with sockets.
Does someone know how to deal with the f****** command LIST ? I send the PASV command, it returns 6 numbers, the 4 first are the ip address, and the 2 last are the port... example :
205,188,212,119,165,0
IP : 205.188.212.119
Port : 165 * 256 + 0 = 42 240
Now, I connect to the IP using the port X, but then, what do I do ? I tried to send username and password, the server returns nothing. I also tried the HELP command, nothing. I tried the LIST command, still nothing... What must I do ? What command to send ? ... ??? I read a lot about FTP protocols but I just can't find it...
Thank you !