|
-
Apr 15th, 2001, 12:17 PM
#1
When I click on Command2 I get a "Run time error '35754'; Unable to connect to remote host"
What am I doing wrong?
Code:
Private Sub Command1_Click()
With Inet1
.Cancel
.Protocol = icFTP
.RemotePort = 21
.URL = "ftp.host.com"
.UserName = "username"
.Password = "password"
End With
End Sub
Private Sub Command2_Click()
Inet1.Execute , Text1
End Sub
Thanks,
Si
-
Apr 15th, 2001, 12:27 PM
#2
Banned
Doesn't it need ftp://etc.com?
-
Apr 15th, 2001, 12:33 PM
#3
Not sure but I still get the same error
-
Apr 15th, 2001, 05:09 PM
#4
Just bringing it back to the top........
-
Apr 15th, 2001, 05:38 PM
#5
You are using the Execute property the wrong way, I believe.
Inet.Execute "http://www.somewhere.com/index.html", "GET"
-
Apr 15th, 2001, 05:45 PM
#6
Addicted Member
Originally posted by chenko
When I click on Command2 I get a "Run time error '35754'; Unable to connect to remote host"
What am I doing wrong?
Code:
Private Sub Command1_Click()
With Inet1
.Cancel
.Protocol = icFTP
.RemotePort = 21
.URL = "ftp.host.com"
.UserName = "username"
.Password = "password"
End With
End Sub
Private Sub Command2_Click()
Inet1.Execute , Text1
End Sub
Thanks,
Si
This means you have to click Command1 before you click Command2. Did you do that ??
-
Apr 15th, 2001, 06:37 PM
#7
Originally posted by Matthew Gates
You are using the Execute property the wrong way, I believe.
Inet.Execute "http://www.somewhere.com/index.html", "GET"
Im using this for FTP.
Forgot to say
Text1 = "GET file.htm c:\windows\desktop\file.htm"
Active: Of course
-
Apr 15th, 2001, 06:56 PM
#8
Are you sure you're using the correct address and login information? it worked fine for me..
Code:
Private Sub Command1_Click()
With Inet1
.Cancel
.Protocol = icFTP
.RemotePort = 21
.URL = "promasc.com"
.UserName = "*******"
.Password = "********"
End With
End Sub
Private Sub Command2_Click()
Inet1.Execute , _
"GET index.htm C:\Windows\Desktop\index.htm"
End Sub
-
Apr 15th, 2001, 07:14 PM
#9
Yep, im sure they are right, Ive check loads of times, And ive connected thru my FTP client and the host isnt down
-
Apr 16th, 2001, 09:25 AM
#10
I've had a simular problem once with the INet control.
Don't ask my why but try to asign the value from the textbox to a string and pass that to the Execute method.
Code:
Private Sub Command2_Click()
Dim sCmd As String
sCmd = Text1.Text
Inet1.Execute , sCmd
End Sub
Best regards
-
Apr 16th, 2001, 03:17 PM
#11
That dosnt work either
-
Apr 16th, 2001, 06:36 PM
#12
Member
It sounds like you might be using a proxy server. I get the same error when working behind a proxy. You need to set the Inet control to access the site through your proxy.
chilibean
-
Apr 17th, 2001, 12:22 AM
#13
Lively Member
Try this way:
Private Sub Command1_Click()
With Inet1
.Protocol = icFTP
.RemotePort = 21
.URL = "ftp.host.com"
.UserName = "username"
.Password = "password"
End With
End Sub
Remove Cancel command...
-Dj4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|