Sendfile not working - WeOnlyDo Discussion board

Sendfile not working (General questions)

by kirti_masrani, Saturday, July 16, 2005, 11:50 (7069 days ago)

i just downloaded wodTelnetDLX and try it. My Requirement is to connect to a server using telnet with SSL 3 Support on port 992.after that i need to send and receive file from and to server.Using wodTelnetDLX i can connect to the server and can send and receive data using send and receive methods.When i get the Upload command from server to send file i call the sendfile method.So TransferStart Event is fired but after that TransferProgress event doesnt arise as it should be. why its not working? my code is as below:

Private Sub Telnet1_PromptReceived()
Dim PromptStr As String
PromptStr = Telnet1.Prompt
Select Case PromptStr
Case login:
Telnet1.Send xyz & vbCr
Telnet1.Prompt = Password:
Case Password:
Telnet1.Send abc & vbCr
Telnet1.Prompt = Enter your choice:
Case Enter your choice:
Telnet1.Send 2 & vbCr
Telnet1.Prompt = Do you want to send a file? Y/[N]:
Case Do you want to send a file? Y/[N]:
Telnet1.Send y & vbCr
Telnet1.Prompt = **B010000012f4ced
Case **B010000012f4ced '''''file upload command from server
Telnet1.SendFile ZMODEM, c:abc.txt ,true
Telnet1.Prompt = Enter your choice:
End Select
End Sub


Re: Sendfile not working

by wodSupport, Saturday, July 16, 2005, 17:08 (7069 days ago) @ kirti_masrani

Kirti,

your code looks more/less ok. Is there any chance we could connect to the server and try it out? Do you know what type of server you connect to?

Re: Sendfile not working

by kirti_masrani, Monday, July 18, 2005, 06:26 (7067 days ago) @ wodSupport

hi!,

Thanx for reply,

am connecting to Linux Server which is US Government Server.One more thing is that i had not send rz command to server before SendFile Method, which i found later from help,so i also try it out but its also not working..i try to receive file from server using ReceiveFile Method and its working properly. I try this all stuff with two other Tools and Connecting,sending and receiving is working properly but they r Executable file i mean its application and i need a Binary File like OCX or DLL, so am very much interested in buying your product if its done my work.So is there any solution?

Thanx

Kirti

Re: Sendfile not working

by wodSupport, Thursday, July 21, 2005, 00:56 (7065 days ago) @ kirti_masrani

Kirti,

I tried to duplicate your problem, but it worked correctly. What Protocol do you use, SSLTelnetImp? On port 992? This may be important.

Basically, I tried to do upon login

Telnet1.Send rz & vbCrLf
Telnet1.SendFile .....

and it worked correctly.

Re: Sendfile not working

by Premila Jacob, Thursday, May 24, 2007, 18:20 (6392 days ago) @ wodSupport

DId you get this working. If so, what optins did you use to send the file

Re: Sendfile not working

by wodDamir, Thursday, May 24, 2007, 18:29 (6392 days ago) @ Premila Jacob

Jacob,

As Kreso stated in last post, everything works with the code Kreso posted. We've tested it numerous times, and the tests were successfull every time.

The idea is to send rz command to server, and after that call the SendFile method.

If you are experiencing any issues, perhaps you could give us more information? What happens? Do you receive an error? If yes, what error do you get?

Regards,
Damba