vb FTP run-time error '35753' "protocol not supported for this method"

i'm getting this error
run-time error '35753' "protocol not supported for this method"
when i run the following code.  the problem is it works on another ftp site.
i can download files manually from this site under a cmd window.
can a setting on the ftp site cause this error?
thanks,
pierre

Private Sub form_load()
Set ftp = pmt1.Inet1
   Inet1.URL = " ftp://ftp.eoddata.com"
   Inet1.UserName = "ptullier"
   Inet1.Password = "222222"
   Inet1.RequestTimeout = 40
   Inet1.Execute , "GET AMEX_20071001.txt"
    Do While Inet1.StillExecuting
      DoEvents
   Loop
   Inet1.Execute , "CLOSE"
   MsgBox ("Update Completed")
   End
 End Sub
smilejluAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
twardCommented:
Try setting:

In
Private Sub form_load()

  Set ftp = pmt1.Inet1
  Inet1.URL = " ftp://ftp.eoddata.com"
  Inet1.Protocol = icFTP   <----------------------Set protocol explicitly***
  Inet1.UserName = "ptullier"
  Inet1.Password = "222222"
  Inet1.RequestTimeout = 40
  Inet1.Execute , "GET AMEX_20071001.txt"
 
  Do While Inet1.StillExecuting

      DoEvents
 
  Loop
 
  Inet1.Execute , "CLOSE"
  MsgBox ("Update Completed")

End Sub
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
smilejluAuthor Commented:
thanks very much.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.