|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
SSL and 503 FTP Error :: Socket
Hello.
I am working on a small socket application that utilizes SSL and FTP protocol. The problem is that the server response with error: "503 Log in with USER first." The SSL is OpenSSL. Here is an overview of the sequence. - winsock connect - AUTH SSL - SSL_connect() - handshake is success // At this point, everything is send/recv via SSL // SSL_send() and SSL_recv() - PBSZ 0 - PROT P - USER <username> - PASS <password> ... // All the above are successful // Server respond "230 <username> logged in." // Every command afterward returns an error - SYST Basically, every command the program sends, the server would return "503 Log in with USER first." Do you need to package outgoing data in a special SSL package before passing it to SSL_send()? Please post if you have any idea. Thanks, Kuphryn |
|
#2
|
||||
|
||||
|
If you are using SSL to connect to a non-SSL enabled server, you will get crap, plain and simple. Client and server MUST speak the same language and those apps that handle multiple protocols all have huge chunks of indepenant code for doing so.
__________________
Left DevShed May 28, 2005. Reason: Unresponsive administrators. Free code: http://sol-biotech.com/code/. Secure Programming: http://sol-biotech.com/code/SecProgFAQ.html. Performance Programming: http://sol-biotech.com/code/PerformanceProgramming.html. It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it. --Me, I just made it up The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man. --George Bernard Shaw |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > SSL and 503 FTP Error :: Socket |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|