How Can You Download A Website With Winsock
and get the source?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Download From Website
Why does my program freeze and not download the given file?
Code:
Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
Private Sub Command1_Click()
Dim retVal As Long
Dim savePath As String
savePath = "Project1.exe"
retVal = URLDownloadToFile(0, "http://www.yourdomain.com/file.exe", savePath, 0, 0)
If retVal <> 0 Then
MsgBox "Error downloading update.", vbOKOnly, "Error"
End If
End Sub
Download Off A Website
How would I go and download an ini file off a web site (EX: microsoft.com/programs.exe) and store it in the app.path? If you can give me help doing that using inet or winsock, let me know. thankz
Download From Website..?
Hi all,
I have an ActiveX control that is deployed with the 'Package and Deployment Wizard'. But the cabfile refuses to load if I try to load it from the webserver (http://...../). No error messages.
Security on the relevant catalog on the server is set to Everyone (full control)
But..
if I open the .html directly from the server (E:Testxxx.html) the .cabfile loads without a problem.
..and after that I can run the .cab via the .html file from the http:// adress.
How can I load directly from the website?
/Kent J.
Website To Download Help File For Vb 6.0
my help file is faulty and cannot be run from the program vb 6.0
anywhere where i can download the help files for vb 6.0 as the installation disk is not with me now?
Website -> Log In -> Download File ??
Problem...
Program should download file from http://www.hattrick.org/, it should log in whit my username/password and download file from there..i know somehow how to download websites.. but this one needs login first and stay logged when getting file from there..
Any ideas how to log in there and download file?
Download Text Off A Website
I would like to download the the text off the website http://www.nats.co.uk/operational/pibs/pib1.shtml so i can use my program to interpurt it?
How can I do this?
Download Pics Website
I want to download imags from a website but there are loads of pages, maybe 2000+. Im looking for a pic the ending of the site is, show_item.php?id=1358 so i need to start at 0 and flick through each up to about 2000.
I could do it manually but.......
VB Code:
Private Sub Command1_Click() WebBrowser1.Navigate "http://www.zzzzzzz.com/show_item.php?id=" & i i = i + 1 End Sub
But would be better if i could just do it auto downloading all imags on the page to a folder then checking through them in a pic explorer. ?
Download Txt File From A Website
i was wondering how to download a text file from a website to a certain location on the hard drive....any help would rock
thx.....
Download Info From Website
Hi All
I need advise on how to download information from a website and what the best method is to do this. The information on the website is a Table/Grid that is in text form.
Download A File From A Website
I have an Inet control that checks to see if the version of the program is the latest. I have a file on my site called HPLEv.txt. This works fine, when I compare that file to the version of my program, but if it's not the same version, I would like to download the file and run it locally. I wrote some code to do this, but it's not working. I get an error 13 - Type Mismatch. Here is my code.
Code:
Private Sub Command1_Click()
Dim retVal As String
retVal = Inet1.OpenURL("http://blake.prohosting.com/~haztek/PlaylistEditor.gif")
Open "C:TempPlaylistEditor.zip" For Output As 1
Print #1, retVal
Close 1
MsgBox "done"
End Sub
VBBrowser v2.2.1
I have to rename the file to gif on my server, because they don't allow direct downloads of things like zip and exe files. The file is actually a zip file renamed. How can I download this file to a Temp folder, open it, unzip it to the temp folder, exit the program, run a batch file to copy it from the temp folder to the apps folder, and delete the temp zip and bat files?
I know I'm asking a lot, so any help would be appreciated. Even on only one of my questions.
Thanks
Joey
How Can I Download A File From A Website Via API
I'm trying to create, with VB, a program that can download a file from my personal web site, that contains news, information and links to files on my website. The only problem is, I don't know any safe way of downloading that file without either using a user control (I hate to use those, because anyone who wants to use the program must have the ocx), or embedding my site username and password into the program (and thus providing them to anyone with a decompiler).
So, does anyone know an easy way of downloading a file to the computer, preferably using API, that doesn't need a username and password?
TIA, vampyre
How To Login And Download A File From A Website
How can I make my program to log into a web login page (PHP) and retreive (download) a file from a given link ?
What I am trying to do is - there's a website where users have to login to download a file. So users have two options - either they can open a browser and visit the site and login to download the file OR
or they can enter username and password in my VB app. The program should then login to the site and retreive the file (so that user do not have to leave the program and lauch a browser to retreive the file)
TIA
Download A Text File From Website
I could use some help to download the following file using vb6
"http://tonto.eia.doe.gov/oog/info/wohdp/dslpriwk.txt"
Has anyone done something like this before that can help me?
Thanks,
Paul
_______
I love small animals, especially with a good brown gravy....
How To Download 1609 Files From A Website
Hi,
I need to download 1609 files from a website!!!!!!!, is there a vb code to download all these files, becous otherwise i need to download the one by one
Please reply!!!!!!!
Winsock Syntax? (To Request A Website With The Winsock Control)
Ok, I don't know very much about Winsock and am just now starting to use it. I'm making an anonymity program that modifies referer and user agent data. I managed to find an example of how its done on planetsourcecode.com but there's a few things that aren't working.
Anyway, when this string is sent, it sends the headers and a request for index.html from the connected host (winsock1.connect domain.com 80).
GET index.html HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-comet, */*
Accept-Language: en
Accept-Encoding: gzip , deflate
Cache-Control: no-cache
Proxy-Connection: Keep-Alive
User-Agent: Whatever
Referer: www.whatever.com
But when I used the website http://ipid.shat.net/ as the domain to see if code mdified the headers or not, it directed me instead to just www.shat.net. How would a browser request information to ipid.shat.net?
Also, I noticed that by sending just that information, cookies don't work properly. What other tags do I have to add onto that for it to recieve my session information? Thanks a lot.
Urgent:request And Download A File From A Website
Hi,
I have developed a VB6 application.All i want is when the user clicks a Command button a request should be be sent to my website and a file should be downloaded from the website to my application folder.Can anybody tell me how to achieve this.Thanks
Winsock, Website Data
I have a scenario, where:
1. I can get the login information sent via get method in the url – But im not that keen on that because it shows up in history.
2. I can make VB enter the information into the website, but I am really clueless about winsock, any help would be helpful
Scenario 1 - I would like to know if it is possible to delete that certain url from history (Or even clear it all)
Scenario 2 – I really am unsure how to enter data into a online form (post)
But even after that I need to be able to read the html, then display certain parts of the information, I know in other information/scripts you are able to slect the line, then char that you want to read, I just cant seem to grab the html.
Any help would be useful.
Thanks.
How To Know When Winsock Is Done Getting Data?[tcp-website]
Im connecting with a website and recieving data through the winsock control[TCP]. On my getdata, I will get sometimes 2-3 dataarival events because the winsock cannot fit as many chars as the website contains. Is there any way to know when the end of the website comes?
Send Website Informations Via Winsock To Someone Else
I'm playing a massive-multiplayer-online-game. that means i have go online 5 times aday for about 3min. the game is programmed by a friend of mine. Now the computer-manager in school forced my friend to programm a IP lock, so we can't game from school.
I now want to programm 2 programms. a server and a client. the server would run 24/7 at my home PC and have to go and get the homepage and send the informations to the client. and the server has to click on a button in the website, but i want to say where to click, while working on the client.
How to get all the informations form the website, that I can send them with Winsock?
And how to make a click on the website at the server application, while sitting behind the client?
Just tell me how and what commands to use, I can try out and programming Winsock is no problem.
Winsock And Multi-Host Website, Where Is The Problem ?
Hi
I'm trying to make a program to work as an internet browser using winsock, I made some kind of success at the beginning with some famous sites (such as Yahoo!) but I failed to load some other sites, the server is replying with a page that tell me it is a multi-host website, while it can be opened normally using Internet Explorer, Where is the problem ? I'm using winsock command: "GET / HTTP1.1", but is there any other command can fix the problem ?
thanks
Loggin To A Website POST Method And DOM Or Inet Or Winsock HELP!!
Hi well what im trying to accomplish is succesfully load to a site that to login requires POST Method here's a little bit of the souce
-------------------------------------------------------------------------------
<form method="POST" action="membersarea.php">
<tr>
<td width="100%" colspan="2"><font color="#FFFFFF"><b><font size="1" face="Verdana">
EMAIL:</font></b><br>
<input type="text" size="17" name="email"></font></td>
</tr>
<tr>
<td width="100%" colspan="2"><font color="#FFFFFF"><b><font face="Verdana" size="1">
PASSWORD:</font></b><br>
<input type="password" size="17" name="password"></font></td>
</tr>
<tr>
<td width="100%" colspan="2">
<input type="checkbox" value="1" name="remember" CHECKED><font size="1"><b>Remember
Me</b></font>
</td>
</tr>
<tr>
<td><font size="1" face="Arial Narrow"><a href="lostpass.php">
Forgot Password?</a></font></td>
<td><input type="submit" value="Login" name="submit">
<input type="hidden" value="1" name="login_submit"></td>
</tr>
</form>
------------------------------------------------------------------------------
ok i need to login i have tried to do it with the DOM and this is what i got so far
VB Code:
Private Sub Command1_Click()With WB.Document.getElementById("email").Value = Text1.Text.getElementById("password").Value = Text2.Text.getElementById("remember").Value = "1".getElementById("submit").Value = "Login".getElementById("login_submit").Value = "1".Forms(0).Login.ClickEnd With End Sub Private Sub Form_Load() WB.Navigate "http://www.domain.com" Do While WB.ReadyState <> READYSTATE_COMPLETE DoEvents LoopEnd Sub
ok i get an error 'object doesnt support this method'
highlights this line
.Forms(0).Login.Click
anyway i can succesfully login to the page Thanks ALOT!!!
P.S. also there's anyway i can do it with INET control and winsock i would like to learn all of them 3 using POST method... thanks
regards,
EJ
Download HTML Via Winsock
Hi,
I have no problems downloading HTML via winsock, but naturally all I get is the raw HTML page. To get the data to appear in a Browser, I write the incoming HTML data to a local HTM file, and then launch IE and load the local HTM file.
Is there a better way of doing this that doesn't involve downloaded to a local file etc.
The reason for doing this is because I'm adjusting some of the html before it hits the browser.
Mabs
Winsock HTTP Download
Hello, how to creat a FILE DOWNLOAD using WINSOCK, download files from HTTP server, with PROGRESSBAR!
THANKS!!!
Download Picture Using Winsock
does anyone know how to download a picture and save it to your computer using winsock(i need to do it in winsock)? i tried searching pscode.com, but no luck.
Winsock Download Code...?
Could you show me a simple example using the Winsock control that downloads a file from server, shows the file size and the bytes loaded, and handles connection erros?
Thank you.
Download A File With Winsock, PLEASE HELP
Hello I have a problem a code, i can send i file (c:data.mdb) to a ftp server (ftp.direccion.com) but i can´t recived a file to this server, if something have the code to recived data with a ftp server to a C: please send me to my mail iban@servinet.es, here is the code that i use: (that i need is the inverse, that is to say recived a file to a ftp server, here i can send a file to a c:
Const AZUL = &HFF0000 'COLOR WINDOWS AZUL
Const NEGRO = &H0& 'COLOR WINDOWS NEGRO
Private Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long
Private Declare Function StretchBlt Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
Private Declare Function DIWriteJpg Lib "DIjpg.dll" (ByVal DestPath As String, ByVal quality As Long, ByVal progressive As Long) As Long
Dim Commun(5) As Com
Dim CommunState As Integer
Dim Site As String
Dim Username As String
Dim Password As String
Dim Remotefile As String
Dim Localfile As String
Dim Buffersize As Long
Dim CloseAfterSend As Boolean
Const SRCCOPY = &HCC0020
Dim CuentaAtras As Integer
Dim Contador As Integer
Public Sub CopyImg(ByVal Pic As PictureBox, Optional Zoom As Boolean)
Dim hdc As Long
hdc = GetWindowDC(0)
If Zoom = True Then
EsquinaX = 200
EsquinaY = 200
Else
EsquinaX = 100
EsquinaY = 100
End If
Ancho = Screen.Width - (3 * 10 * EsquinaX)
Alto = Screen.Height - (3 * 10 * EsquinaY)
StretchBlt Pic.hdc, 0, 0, Pic.ScaleWidth, Pic.ScaleHeight, hdc, EsquinaX, EsquinaY, Screen.Width - 2200, Screen.Height - 2500, SRCCOPY
ReleaseDC 0, hdc
Pic.Refresh
End Sub
Private Sub Form1_Load()
Form1.Command1.Caption = "DETENER"
Form1.Label1.ForeColor = AZUL
Form1.Timer3.Enabled = True
End Sub
Private Sub Command1_Click()
If Form1.Command1.Caption = "COMENZAR" Then
'Form1.WindowState = 1 'MINIMIZO
Form1.Command1.Caption = "DETENER"
Form1.Label1.ForeColor = AZUL
Form1.Timer3.Enabled = True
'Contador = 0
Else
Form1.Command1.Caption = "COMENZAR"
Form1.Timer1.Enabled = False
Form1.Timer2.Enabled = False
Form1.Timer3.Enabled = False
Form1.Timer4.Enabled = False
End If
End Sub
Private Sub Command2_Click()
End 'SALGO DE LA APLICACIÓN
End Sub
Private Sub Timer1_Timer()
'CONTROLA LA CAPTURA DE PANTALLA
Dim obj As CCAPTURE
Set obj = New CCAPTURE
'Call CopyImg(Form1.Picture1, False) 'COPIO LA IMAGEN AL PICTUREBOX
Form1.Timer1.Enabled = False
Form1.Timer2.Enabled = True
End Sub
Private Sub Timer2_Timer()
'ESCRIBE LA CAPTURA A UN BMP
Dim obj As CCAPTURE
Set obj = New CCAPTURE
Contador = Contador + 1
Form1.Label1.ForeColor = NEGRO
Form1.Label2.ForeColor = AZUL
'obj.FileName , "C:datos.mdb"
'obj.Capture Form1.Picture1.hwnd, "c:datos.mdb"
'''ACTIVO LA SIGUIENTE LINEA DE CÓDIGO SI QUIERO TENER UN
''' REGISTRO DE LAS IMÁGENES QUE ESTOY ENVIANDO AL SERVIDOR.
'obj.Capture Form1.Picture1.hwnd, "c:screen" & Str(Contador) & ".bmp"
'Beep
Form1.Label2.ForeColor = NEGRO
Form1.Label3.ForeColor = AZUL
Form1.Timer2.Enabled = False
Form1.Timer5.Enabled = True
'NOTA IMPORTANTE --> DEL TIMER 2 PASA AL 5 PARA VOLVER LUEGO AL 3
' ES DECIR, EL TIMER 5 ESTA INTERCALADO ENTRE EL 2 Y EL 3
End Sub
Private Sub Timer3_Timer()
'CONECTA AL SERVIDOR FTP
Form1.Label3.ForeColor = NEGRO
Form1.Label4.ForeColor = AZUL
Form1.Timer3.Enabled = False
MandaPorFTP
End Sub
Private Sub Timer4_Timer()
'ACTIVA LA CUENTA ATRÁS
'Dim Intervalo As String
'INTERVALO= TIEMPO QUE TARDA EN REPETIR EL PROCESO EN SEG.
' (MENOS APROX. 10 SEG. QUE TARDA EN REALIZAR FOTO + CONVERSION)
'Intervalo = "50"
' If Form1.Label7.Caption = "" Then Form1.Label7.Caption = Intervalo
' Form1.Label7.Caption = CStr(CInt(Form1.Label7.Caption) - 1)
' If Form1.Label7.Caption = "0" Then
' Form1.Label7.Caption = ""
' Form1.Label5.ForeColor = False
' Form1.WindowState = 1 'MINIMIZO SIEMPRE ANTES DE SACAR LA "FOTO"
' Form1.Label1.ForeColor = AZUL
' Form1.Timer4.Enabled = False
' Form1.Timer1.Enabled = True
' End If
End
End Sub
Private Sub Timer5_Timer()
'LA SIGUIENTE FUNCION PASA EL CODIGO DE BMP A JPG
'LOS PARAMETROS SON: IMAGEN ORIGEN, IMAGEN FINAL, CALIDAD JPG, ¿BORRA ORIGEN?
'ConvertBMPtoJPG "c:screen.bmp", "c:screen.jpg", 70, True
Form1.Timer5.Enabled = False
Form1.Timer3.Enabled = True
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim tmpS As String
Winsock1.GetData tmpS, , bytesTotal
Debug.Print tmpS;
'SACO POR PANTALLA LAS TRANSACCIONES CON EL SERVIDOR FTP
Form1.Label6.Caption = tmpS
Select Case Left(tmpS, 3)
Case Commun(CommunState).Reply
Winsock1.SendData Commun(CommunState).BackCommand + Chr(13) + Chr(10)
Debug.Print Commun(CommunState).BackCommand
'SACO POR PANTALLA LAS TRANSACCIONES CON EL SERVIDOR FTP
Form1.Label6.Caption = tmpS
CommunState = CommunState + 1
Case "150"
Do Until Winsock2.State = 7
DoEvents
Loop
SendNextData
Case "226"
Winsock1.Close
Do Until Winsock1.State = 0
DoEvents
Loop
Close #1
Form1.Label6.Caption = ""
Form1.Timer4.Enabled = True
'Kill "c:screen.jpg"
'Form1.Picture1.Cls
Form1.Label4.ForeColor = NEGRO
Form1.Label5.ForeColor = AZUL
'Form1.Label7.Visible = True
'''ACTIVO LA SIGUIENTE LINEA DE CODIGO PARA QUE ME SAQUE UN MSGBOX INFORMANDOME DEL ENVIO OK
'''MsgBox "Transfer complete.", vbOKOnly + vbInformation, "FTP Upper"
Case Else
'ALGO HA FALLADO
MsgBox "Bad reply: " + Left(tmpS, Len(tmpS) - 2), vbOKOnly + vbInformation, "FTP Upper"
End Select
End Sub
Private Sub Winsock2_ConnectionRequest(ByVal requestID As Long)
Winsock2.Close
Do Until Winsock2.State = 0
DoEvents
Loop
Winsock2.Accept requestID
Do Until Winsock2.State = 7
DoEvents
Loop
End Sub
Sub SendNextData()
Dim Take As Long
Dim Buffer As String
If LOF(1) - Seek(1) < Buffersize Then Take = LOF(1) - Seek(1) + 1 Else Take = Buffersize
Buffer = Input(Take, 1)
Winsock2.SendData Buffer
'Winsock2.GetData Buffer
If Take < Buffersize Then
Close #1
CloseAfterSend = True
End If
On Error Resume Next
Label6 = Trim(Str(Seek(1))) + "/" + Trim(Str(LOF(1)))
On Error GoTo 0
End Sub
Private Sub Winsock2_SendComplete()
If CloseAfterSend = True Then
Winsock2.Close
Do Until Winsock2.State = 0
DoEvents
Loop
CloseAfterSend = False
Else
SendNextData
End If
End Sub
Private Sub MandaPorFTP()
Site = "ftp.servidor.com" 'SERVIDOR FTP
Username = "username.com" 'LOGIN DEL SERVIDOR FTP
Password = "pass.com" 'PASSWORD
Localfile = "c:data.mdb"
Remotefile = "data/data.mdb"
Commun(0).Reply = "220"
Commun(0).BackCommand = "USER " + Username
Commun(1).Reply = "331"
Commun(1).BackCommand = "PASS " + Password
Commun(2).Reply = "230"
Commun(2).BackCommand = "TYPE I"
Commun(3).Reply = "200"
Commun(3).BackCommand = "PORT"
Commun(4).Reply = "200"
Commun(4).BackCommand = "STOR " + Remotefile
Commun(5).Reply = ""
Commun(5).BackCommand = ""
Buffersize = 2920
Dim Nr1 As Integer
Dim Nr2 As Integer
Dim LocalIP As String
LocalIP = Winsock1.LocalIP
Do Until InStr(LocalIP, ".") = 0
LocalIP = Left(LocalIP, InStr(LocalIP, ".") - 1) + "," + Right(LocalIP, Len(LocalIP) - InStr(LocalIP, "."))
Loop
Randomize Timer
Nr1 = Int(Rnd * 12) + 5
Nr2 = Int(Rnd * 254) + 1
Commun(3).BackCommand = "PORT " + LocalIP + "," + Trim(Str(Nr1)) + "," + Trim(Str(Nr2))
Winsock2.Close
Do Until Winsock2.State = 0
DoEvents
Loop
Winsock2.LocalPort = (Nr1 * 256) + Nr2
Winsock2.Listen
Winsock1.Close
Do Until Winsock1.State = 0
DoEvents
Loop
Winsock1.RemoteHost = Site
Winsock1.RemotePort = 21
Winsock1.Connect
CommunState = 0
Do Until Winsock1.State = 7 Or Winsock1.State = 9
DoEvents
Loop
Select Case Winsock1.State
Case 9
MsgBox "No puedo conectar con " + Site + ".", vbOKOnly + vbInformation, "FTP Upper"
Form1.Command1.Caption = "COMENZAR"
Case 7
Open Localfile For Binary As #1
End Select
End Sub
Get Your Winsock File Download Here.
Ok this has proubly been posted before, but hey I want to contribute.
Actually I just took the VB-World.net's Winsock web page download example and modified it a bit to download binary files. All you gotta do is make a new form with a winsock control in it and then copy and paste the following code. Enjoy!
Private Sub Form_Load()
'server winsock1 will connect to
Winsock1.RemoteHost = "ishthefish0.tripod.com"
'port winsock1 will connect to (port 80=HTTP port)
Winsock1.RemotePort = 80
'connect to server
Winsock1.Connect
'open file on desktop (change this if it doesn't match your windir)
Open "c:windowsdesktopdonkey.jpg" For Binary As #1
End Sub
Private Sub Winsock1_Connect()
Dim strCommand As String
Dim strWebPage As String
'strWebPage = the URL of the binary file to download
strWebPage = "http://ishthefish0.tripod.com/donkey.jpg"
'some stuffs that I assumes your net browser sends to HTTP servers
'when it wants to recieve files, (i may be mistaken)
strCommand = "GET " + strWebPage + " HTTP/1.0" + vbCrLf
strCommand = strCommand + "Accept: */*" + vbCrLf
strCommand = strCommand + vbCrLf
'send the command to the server
Winsock1.SendData strCommand
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
'when the server sends data back to winsock1:
'capture it and write it to a file
Dim webData As String
'get the data that winsock1 recieves and store it in webData string
Winsock1.GetData webData, vbString
'write the data to file #1
Put #1, , webData
End Sub
Private Sub Winsock1_Close()
'the connection is automatically closed once the file transfer is
'complete (tripod does at least, other web servers may differ)
'close the file
Close #1
'and end the program
End
End Sub
VB5 Download W/ Progress Wo/ Winsock
How would I download a file without using winsock but with a progress bar? I have Visual Basic 5 so I cannot use the example that is floating around here because of the InStrRev function. I did find a homemade InStrRev function, but even after using it, the program just gave a Path/File access error. Please help!
Using Winsock To Download Files
Howdy!
I'm using MS Visual Basic 6.0 in Windows 98 2nd.ed. I would like to learn to dowload a zip-file from my ftp-site using the in-built Winsock-protocol. How to do this? How to determine password, user name and the port?Can I use Winsock to retrieve the size of the file that I'm downloading? I mean before I have downloaded the whole file. If it not possible with Winsock, how is it then?
How to check how much (how many bits) I have downloaded compared to the whole file.
Waiting for your answer,
Mr.L.
P.S. I have tried DevPower's FTP-control (www.devpower.com) but it doesn't meet my requirements.
Ftp Download Problem Using Winsock
Hi,
I am writing FTP Client using Winsock control in vb6. I have problem with downloading . I am sending the RETR and command and writing the data which is comming on DataArrival event of data socket. but it seems few bytes are missing. can anyone please explain me how to do donwloading using winsock.
and if i want to receive my custom size of buffer how should i handle.
please help me.
Regards
Praveenp
Download Using The Winsock Control
CAn i use the winsock control to download a file ie google.com's logo
i think the code will be smthing like winsock1.conect "google.com/stpatricks_05"
Also what is a local port how do u find it out and how do u find out your ip - because i know i have more than one if i use netgear.
WINSOCK: Bytes Per Download
Is there any way I can record the number of bytes being downloaded by a particular program (e.g. IE, Download accelarator) using VB/Winsock? Please, any help?
Thanks in advance
Getting The Winsock Upload/download Speed...
Im making a program in which i need to calculate the speed of the winsock when downloading or uploading a file
can anybody out there please tell me how to do it?
and a piece of LOGIC or CODE of how to do it?
I'd really appreciate it!
Thanks a lots!
Ftp Download Problem Using Winsock Control
Hi,
I am writing FTP Client using Winsock control in vb6. I have problem with downloading . I am sending the RETR and command and writing the data which is comming on DataArrival event of data socket. but it seems few bytes are missing. can anyone please explain me how to do donwloading using winsock.
and if i want to receive my custom size of buffer how should i handle.
please help me.
Regards
Praveenp
Winsock Does Not Always Download The Complete File !
Hi there and Merry Christmas !!
i have some winsock controls that download images from the
internet. The problem is they sometimes do not download the
entire image and crop the image into a smaller size.
Any help?
should i get the original size and then try to download the image again if i see any difference between the downloaded image file size and the original file size?
thanks !
Download A File Using Inet Or Winsock
Hi All,
I want to download an mp3 file in my vb6 app using Inet or Winsock.
This mp3 file must be stored on the harddisk of the computer
(can be app's root directory, app.path)
i tried this with winsock, but it seems that i can't download the whole file. But when i want to save it using the common OPEN filename FOR OUTPUT S #1 vb puts " " marks around the data.
now an mp3 player (winamp) can't open the audio stream.
so i thought.. maybe it can be done with Inet, but i don't know nothing about that control.. can someone help me.. ????
thnxx,
Jeroentjuuh
Download Files Via Winsock And Http
Hi All,
I found some code that will download a specified file using the winsock control and http:get. I would like to loop through the avail files, get the names and size. Then download, while having some type of progress bar. My project is attached. Does anyone happen to know how to get file sizes, etc?
VB World Winsock Tutorial Download
Trying to get the download to VB worlds Winsock program
to work??? (by Karl Moore). Has anyone got it to work??
What do I do to get the download to work??
I made the sending/recieving programs without
any luck so I used the downloaded program.
The downloaded program gave me "Connection Problem" when trying to make connection. I used the given IP address given in the program and the IP address that my computer has without luck.
|