Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

Get with Inet not working

$
0
0
Having a strange problem. The code below has been working for years, however, we just changed our hosting and now it does not perform the Get. I have verified the correct username, password and file name, including correct capitalization where used.
Code:

        WarningLabel.Caption = "Getting existing file from WEB"
        With MyForm.Inet1
        .URL = "ftp://mysite.com"
        .UserName = "myusername"
        .Password = "mypassword"
        .Execute , "GET /mysite/mytextfilename.txt C:\testfolder\mytextfilename.txt"
        End With

However, if I use this code, it does retrieve the file.
Code:

        MyTest$ = MyForm.Inet1.OpenURL("www.mysite.com/mytextfilename.txt")
        Open "C:\testfolder\mytextfilename.txt" For Output As #7
        Print #7, MyTest$;
        Close #7

The main issue is that after appending to this text file, I need to upload it back to the site. Again for years, I have been using the Put command with no issues. But it does not put either now.

Any ideas?

Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>