Dim j As HttpJob
j.Initialize("", Me)
Log(url)
j.Download(url)
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Dim out As OutputStream = File.OpenOutput(File.DirInternal, bl.betrieb & ".xlsx",False)
Log(File.DirInternal)
File.Copy2(j.GetInputStream, out)
out.Close
Log("success")
End If
j.Release