• HTTPS Support?

    From Donald MacQueen@21:1/5 to All on Wed Sep 30 16:23:36 2020
    I am trying to write a small screen scrapper program to get data from an https url.

    Is there an https package? Googling didn't find anything.

    Thanks in advance.

    Donald [|]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From john.aspinall@gmail.com@21:1/5 to dmm...@gmail.com on Thu Oct 1 00:43:54 2020
    Hi Donald - a couple of options:

    | request |
    request := IWinHttpRequest new.
    request open: 'GET' url: 'https://github.com/dolphinsmalltalk' async: false. request send.
    request responseText

    "or"
    File readAllText: (URLMonLibrary default urlDownloadToCacheFile: 'https://github.com/dolphinsmalltalk')

    HTH.

    John



    On Thursday, October 1, 2020 at 12:23:38 AM UTC+1, dmm...@gmail.com wrote:
    I am trying to write a small screen scrapper program to get data from an https url.

    Is there an https package? Googling didn't find anything.

    Thanks in advance.

    Donald [|]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Donald MacQueen@21:1/5 to john.a...@gmail.com on Thu Oct 1 16:57:24 2020
    On Thursday, October 1, 2020 at 3:43:55 AM UTC-4, john.a...@gmail.com wrote:
    Hi Donald - a couple of options:

    | request |
    request := IWinHttpRequest new.
    request open: 'GET' url: 'https://github.com/dolphinsmalltalk' async: false. request send.
    request responseText

    "or"
    File readAllText: (URLMonLibrary default urlDownloadToCacheFile: 'https://github.com/dolphinsmalltalk')

    HTH.

    John
    On Thursday, October 1, 2020 at 12:23:38 AM UTC+1, dmm...@gmail.com wrote:
    I am trying to write a small screen scrapper program to get data from an https url.

    Is there an https package? Googling didn't find anything.

    Thanks in advance.

    Donald [|]

    Hi John,

    Inspecting the first code snippet returns nil.

    The second says "File dnu readAllText:

    Perhaps I am missing a package? I am using D6 Pro.

    Thanks for the reply.

    Donald [|]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From john.aspinall@gmail.com@21:1/5 to dmm...@gmail.com on Fri Oct 2 01:10:46 2020
    Hi Donald - I'm using Dolphin 7.1. You can enable the examples in D6.1 (I don't currently have access to D6) as follows:

    For the first example I get an undeclared error for IWinHttpRequest. You can generate this class with the ActiveX Component Wizard:

    1) Browse; select 'Microsoft WinHTTP Services'; click OK
    2) Next; uncheck the Class Prefix check box; Next
    3) Generate; Finish

    The first example should now work.

    The second example will work modified as follows:

    | stream |
    stream := FileStream read: (URLMonLibrary default urlDownloadToCacheFile: 'https://github.com/dolphinsmalltalk').
    [stream upToEnd] ensure: [stream close]

    Note this is all on Windows 10; I don't know if the examples will work on earlier Windows versions (maybe this is why you're still using D6?).

    Cheers.

    John




    On Friday, October 2, 2020 at 12:57:26 AM UTC+1, dmm...@gmail.com wrote:
    On Thursday, October 1, 2020 at 3:43:55 AM UTC-4, john.a...@gmail.com wrote:
    Hi Donald - a couple of options:

    | request |
    request := IWinHttpRequest new.
    request open: 'GET' url: 'https://github.com/dolphinsmalltalk' async: false.
    request send.
    request responseText

    "or"
    File readAllText: (URLMonLibrary default urlDownloadToCacheFile: 'https://github.com/dolphinsmalltalk')

    HTH.

    John
    On Thursday, October 1, 2020 at 12:23:38 AM UTC+1, dmm...@gmail.com wrote:
    I am trying to write a small screen scrapper program to get data from an https url.

    Is there an https package? Googling didn't find anything.

    Thanks in advance.

    Donald [|]
    Hi John,

    Inspecting the first code snippet returns nil.

    The second says "File dnu readAllText:

    Perhaps I am missing a package? I am using D6 Pro.

    Thanks for the reply.

    Donald [|]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Donald MacQueen@21:1/5 to john.a...@gmail.com on Fri Oct 2 14:05:05 2020
    On Friday, October 2, 2020 at 4:10:48 AM UTC-4, john.a...@gmail.com wrote:
    Hi Donald - I'm using Dolphin 7.1. You can enable the examples in D6.1 (I don't currently have access to D6) as follows:

    For the first example I get an undeclared error for IWinHttpRequest. You can generate this class with the ActiveX Component Wizard:

    1) Browse; select 'Microsoft WinHTTP Services'; click OK
    2) Next; uncheck the Class Prefix check box; Next
    3) Generate; Finish

    The first example should now work.

    The second example will work modified as follows:

    | stream |
    stream := FileStream read: (URLMonLibrary default urlDownloadToCacheFile: 'https://github.com/dolphinsmalltalk').
    [stream upToEnd] ensure: [stream close]

    Note this is all on Windows 10; I don't know if the examples will work on earlier Windows versions (maybe this is why you're still using D6?).

    Cheers.

    John

    Hi John,

    I got the first example to work on Win10 but not on Win 7, so I am good.

    Thanks for your help.

    Donald [|]
    I love Smalltalk

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From picoVerse@21:1/5 to All on Mon Nov 9 20:25:12 2020
    wow

    the world is no longer flat

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)