download a file

hi there,

i’ve got a little problem to download a file… i try it like this:

Dim zip as FolderItem = SpecialFolder.CurrentWorkingDirectory.Child("Tools\\SteamCMD")
zip = zip.Child("steamcmd.zip")
h.Get("https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip", zip)

then i get a 0 byte steamcmd.zip in this folder :frowning:

whats my problem here?

[quote=275472:@Sascha Mierke]hi there,

i’ve got a little problem to download a file… i try it like this:
…/…
then i get a 0 byte steamcmd.zip in this folder :frowning:
[/quote]

Have you used httpSecureSocket ?

hm thats a point, so i created a new httpsecuresocket…but its still 0 byte :frowning:

[quote=275472:@Sascha Mierke]hi there,

i’ve got a little problem to download a file… i try it like this:

Dim zip as FolderItem = SpecialFolder.CurrentWorkingDirectory.Child("Tools\\SteamCMD")
zip = zip.Child("steamcmd.zip")
h.Get("https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip", zip)

then i get a 0 byte steamcmd.zip in this folder :frowning:

whats my problem here?[/quote]
It could also be that the response contains a redirect. In the classic framework sockets, you have to handle that yourself.

hm it seems to be a direkt link to the file … but where should i see a direct?

Edit:

Found the problem, started the download before i bind the proxy variables … :confused: