New topic: HTTP socket authentication
<http://forums.realsoftware.com/viewtopic.php?t=46682> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message mbrogdon Post subject: HTTP socket authenticationPosted: Thu Jan 24, 2013 5:20 pm Joined: Thu Jan 24, 2013 5:10 pm Posts: 1 Attempting to download using HTTP, with authentication. Have seen a lot of posts on the Internet where others have had problems with this as well. Most were solved by using the following code. However, I cannot get this to work. It goes to the site, creates the local file, and downloads a "page cannot be found" page to the text file. The file is there, all info appears to be correct as I can manually go to this domain, log in and access the file. In SetRequestHeader, I've typed in the the correct user name and password. Any ideas what I can do to get this to work? Thanks. In a push button: Dim theURL as String Dim theDLFile as FolderItem theDLFile = SpecialFolder.Desktop.Child("RB STUFF").Child("5_THURSDAY").Child("data.txt") theURL = "http://domain/path/to/file/data.txt" HTTPSocket1.SetRequestHeader "Authorization","Basic " + EncodeBase64("user:pass") HTTPSocket1.Get theURL, theDLFile Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml rbforumnotifier@monkeybreadsoftware.de