New topic: HTTPSocket receives "The document has moved"
<http://forums.realsoftware.com/viewtopic.php?t=32185> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message spacewalker Post subject: HTTPSocket receives "The document has moved"Posted: Mon Jan 25, 2010 3:42 pm Joined: Thu Nov 08, 2007 4:59 am Posts: 295 Location: Germany Hello, I use the HTTP Control and try to do a login to a website programmatically If I use this: Code:bResult=myHTTPSocket.get ("http://www.onlinetvrecorder.com?email=myEmail%40hotmail.com&pass=123&do=login&btn_login=%A0",GetFolderItem("c:\x.txt"),10) I receive: "The document has moved" When I use the same URL in InternetExplorer then it works: I see the Login Screen of the website... I think the problem is a redirect, because the resulting folderitem contains the following: Code:<p>The document has moved <a href="http://navigationshilfe1.t-online.de/dnserror?url=http://www.onlinetvrecorder.com?email=myEmail%40hotmail.com&pass=123&do=login&btn_login=%A0/">here</a>.</p> "http://navigationshilfe1.t-online.de" is a link to my Internet Provider, but not to a site related to onlinetvrecorder.com ... (I dont know why there is "dnserror" mentioned....but I think it is not a DNS problem) How could I use the HTTPSocket control so it will follow redirects? Or alternativly: How could I find out where the URL is redirected to (in Internetexplorer I can not see this) ? When I use : Code:bResult=myHTTPSocket.get ("http://www.onlinetvrecorder.com",GetFolderItem("c:\x.txt"),10) this works... I receive the HTML code for the website... so it seems that the redirect only occurs when I pass paramters for the login (?email=myEmail%40hotmail.com&pass=123...) thank you 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 [email protected]
