CPU pegged at 100 with sample 5 (General questions)
Hi,
I am having challenges with the VB sample #5. I have gotten it to connect to the server and have had success uploading small files (< 10k) to the server using the code below. However, when I set it to upload a file larger than ~10k, it pegs the CPU at 100 and hangs.. No part of the file is uploaded and I have to kill the vb app. Is there some parameter that I am missing?
wodHttp1.Timeout = 5
wodHttp1.URL = https://www.server.com
wodHttp1.Authentication = AuthAutomatic
wodHttp1.ProxyAuthentication = AuthAutomatic
wodHttp1.AutoRedirect = True
wodHttp1.Blocking = False
wodHttp1.Login = username
wodHttp1.Password = pwd
wodHttp1.Request.FormUpload.AddFile TheFile , c: emp est.txt
wodHttp1.Request.FormUpload.Add Name , Test
wodHttp1.Post /subfolder/
Re: CPU pegged at 100 with sample 5
Hi,
Seems that I cannot duplicate your issue. CPU is at 0 all the time on my side. What happened if you increase Timeout Property value and change Blocking Property to True?
Any chance we can connect to your server and duplicate your issue? You can send your private information to techsupport@weonlydo.com
Let us know how it goes.
Regards,
Drazen
Re: CPU pegged at 100 with sample 5
Hi,
Seems that I cannot duplicate your issue. CPU is at 0 all the time on my side. What happened if you increase Timeout Property value and change Blocking Property to True?Any chance we can connect to your server and duplicate your issue? You can send your private information to techsupport@weonlydo.com
Let us know how it goes.
Regards,
Drazen
Drazen, I have tried to increase the timeout as well as setting Blocking=True. Still the same issue. As indicated, I have sent the code to you.
Thx.
Re: CPU pegged at 100 with sample 5
I believe this is now fixed. If you're licensed user, please request update. If you still use evaluation, please download it again from our website and try it out.
Most probably error will be reported from the server - but that is ok, since this is what occurred before 10 CPU fix, we just didn't throw an error to you before.
Let us know how it goes.
Regards,
Kreso
Re: CPU pegged at 100 with sample 5
I believe this is now fixed. If you're licensed user, please request update. If you still use evaluation, please download it again from our website and try it out.
Most probably error will be reported from the server - but that is ok, since this is what occurred before 10 CPU fix, we just didn't throw an error to you before.
Let us know how it goes.
Regards,
Kreso
Thanks to the good folks at WeOnlyDo, I have this working now. For anyone that is trying to get this working on GlobalScape's EFT server, here is a sample that works for me (using https):
set wodHttp = Server.CreateObject( WeOnlyDo.wodHttpDLXCom.1 )
wodHttp.LicenseKey = XXXXXXXXXXXXXX
wodHttp.URL = https://ftpserver.domain.com
wodHttp.Authentication = 2
wodHttp.Blocking = 1
wodHttp.AutoRedirect = 1
wodHttp.Login = FTPUserLogin
wodHttp.Password = FTPUserPassword
wodHttp.KeepAlive = Always
wodHttp.Request.Filename = CStr(FileToUpload) 'include full path eg c: empfile.zip
wodHttp.Put CStr(FTPFolderAndFile) 'include destination FTP folder and filename eg /ftpuserfolder/file.zip