|
-
May 17th, 2000, 07:57 PM
#1
Thread Starter
New Member
I am running into a problem with the Inet control. When I use the OpenURL everything works great, but now I am trying to ftp a file to a server using the Execute command. Everytime I try this I get error #35754, "Unable to connect to remote host." I get this no matter what site I'm trying to log onto.
Here is my snippet of code, copied from the VBSquare's demo at http://www.vbsquare.com/demos/inet3-demo.
With Inet1
.Cancel
.Protocol = icFTP
.URL = txt(0).Text 'a valid url
.UserName = txt(1).Text 'anonymous
.Password = txt(2).Text '[email protected]
End With
Inet1.Execute , "DIR"
My gut feel is that this is such a simple control that the problem lies somehow with our proxy server.
Any ideas will be greatly appreciated!
Thanks,
Scott
-
May 23rd, 2000, 03:57 AM
#2
New Member
I'm certainly no expert, but have you tried setting the .remoteport property to 21? I'm not sure if
the protocol setting will affect this property or
not.
-
Aug 19th, 2000, 02:17 PM
#3
New Member
error
I had a similar problem and got this bit of code from this forum, thanks to whoever posted it, what might be happening is that password logon etc is slow and your code has gone on ahead without waiting and created the error, give it a try, worked for me.
cheers,
n
Inet1.Execute , whatever you want to do
Do While Inet1.StillExecuting
DoEvents
On Error GoTo errortrap 'if you want to trap errors
Loop
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
|