I implemented a check to determine if hURL was needed or not, and then only use hURL when ftps or https was detected.
Those parts wouldl look something like this
Code: Select all
If FindStr(server_ul_config$, "tps:") > 0 And FindStr(server_ul_config$, "tps:") < 3 Then hurlreqU = True
If hurlreqU
UploadFile(serverlogfile$, {File = filsti$, Adapter = "hurl"})
Else
UploadFile(serverlogfile$, {File = filsti$})
EndIf
Are there any disadvantages by using hURL when strickly not needed, like would it be slower or more resource demanding?
(given that I am loading the hURL plugin in any case at the start of the script)
Now, next question.
Sometimes I have experienced timeout errors during network operations. (May happen regardless if hURL is in use or not)
Last time it was during Uploadfile, without using hURL.
hURL have some options for setting the timeouts, and I read that some of the default timouts are as high as 300 seconds. Will these values apply when using the hURL adapter? And what are the default timeout for Uploadfile when not using hURL?