New topic in Networking: 

How to download a file with HTTPsocket.get

endive67 - Sat Mar 29, 2008 8:57 am

<http://forums.realsoftware.com/viewtopic.php?t=21512>
                                                                                
                                                                                
Hello,

I am porting on windows XP a RB app developed under linux and which used linux 
shell commands to download files from the web, and unzip such files (wget, 
unzip).

I did not find same commands under windows.

I have seen that there is a HTTPSocket but it is no in the list of controls on 
the left of the GUI.

1) Is the HTTP socket available under RB 2008 standard for windows ?

2) If yes, how can I use it to download a file ? I have tried the code below 
but it does not work, i.e : I do not get the file from the url.


 Code:dim url2 as string
url2 = "http://www.fdjeux.com/generated/dyn/loto/loto.zip";
Dim monloto as Folderitem
monloto = GetFolderItem("loto.zip")
Dim socket2 as New HTTPsocket
socket2.get (url2, monloto)

  
Any idea how I should proceed ?

Thx

Endive                                  
                                                                                
                                                                                
                                                                                
                                                                                
                                        




-- 
Over 900 classes with 18000 functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v8.1. 

&lt;http://www.monkeybreadsoftware.de/realbasic/plugins.shtml&gt;

[email protected]

Reply via email to