New topic: Using HTTPSocket Synchronously
<http://forums.realsoftware.com/viewtopic.php?t=47613> Page 1 of 1 [ 4 posts ] Previous topic | Next topic Author Message Jason_Adams Post subject: Using HTTPSocket SynchronouslyPosted: Tue Apr 16, 2013 5:09 pm Joined: Fri Nov 10, 2006 4:10 pm Posts: 1772 Location: Michigan, USA I'm having a strange issue with HTTPSocket. If I try to get the content of, for example, Google.com synchronously, it fails: TextArea1.Text = socket.get("www.google.com", 5) If, however, I do this asynchronously, it works just fine: Event PushButton1.Action socket.get("www.google.com") End Event Event socket.PageReceived TextArea1.Text = content End Event Am I missing something? _________________ Windows 7 Ultimate x64 Windows XP Pro SP3 Ubuntu 11.04 via Virtual Box RS Enterprise 2012r1.1 Programming Tutorials & Free Projects: http://www.JasonTheAdams.com "Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton Top Jason_Adams Post subject: Re: Using HTTPSocket SynchronouslyPosted: Tue Apr 16, 2013 5:19 pm Joined: Fri Nov 10, 2006 4:10 pm Posts: 1772 Location: Michigan, USA This does work synchronously: Dim Socket As New HTTPSocket Dim Headers As InternetHeaders Headers = Socket.GetHeaders("www.google.com", 10) MsgBox Headers.Source _________________ Windows 7 Ultimate x64 Windows XP Pro SP3 Ubuntu 11.04 via Virtual Box RS Enterprise 2012r1.1 Programming Tutorials & Free Projects: http://www.JasonTheAdams.com "Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton Top timhare Post subject: Re: Using HTTPSocket SynchronouslyPosted: Tue Apr 16, 2013 6:53 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 12234 Location: Portland, OR USA Works on prior versions (I tested 2010r5.1). Does not work on 2012r2.1 Looks like it got broke somewhere in between. Top Jason_Adams Post subject: Re: Using HTTPSocket SynchronouslyPosted: Tue Apr 16, 2013 7:16 pm Joined: Fri Nov 10, 2006 4:10 pm Posts: 1772 Location: Michigan, USA Thanks for verifying that, Tim. I also found a feedback case, 22823, opened by Paul that was closed because it was done "by design". I emailed Paul to see what that means. _________________ Windows 7 Ultimate x64 Windows XP Pro SP3 Ubuntu 11.04 via Virtual Box RS Enterprise 2012r1.1 Programming Tutorials & Free Projects: http://www.JasonTheAdams.com "Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 4 posts ] -- 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]
