Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 765
  • Last Modified:

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
0
smilejlu
Asked:
smilejlu
1 Solution
 
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
 
smilejluAuthor Commented:
thanks very much.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now