Red: How to Pass Authentication for HTTPS URL Read?

Started by JackKort on 21-Jun-2018/10:19:21-7:00
Hello, in REBOL2 I knew how to create a PORT spec with scheme 'https, host, path, and my username/password credentials, then get my data by probing the port state/inbuffer. But now that REBOL2 won't support https, I wanted to try this in Red. But seems Red does not use ports the same way? At least I do not find the "open" command. And of course a read attempt just returns "Authorization Header not provided". I would appreciate any links to documentation on how to do the equivalent in Red. Many thanks! -Jack
Sorry Jack! There is no support for I/O currently in Red so your attempt was in vain. Support is planned for in future releases. I will not go into detail but read the blogposts on the red-lang homepage, pay special attention to the dates of the articles and then estimate a releasedate for subsequential releases and decide if you are willing to invest the time waiting for it or invest the time to help creating a solution yourself.
Just use rebol3 which supports all of this.
Thank you both! Graham, honestly, the REBOL 3 landscape confuses me. Would you recommend Atronix, or perhaps some other variant? Best Regards, -Jack
I also thought that R2 does not support https, but I tried it and am at this very moment running an automated process to monitor some web site that uses https. I do it like this: JDATA: read https://scrape.pastebin.com/api_scraping.php?limit=100 I can't help beyond that because I really don't understand how any of all this works.
Hi Steven, I didn't state that well - R2 does support https, but does NOT work w/ sites that have imposed newer versions of TLS. Too bad R2 can't be updated....

Reply