Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make an HTTPS request in Squeak or Pharo?

How can I make an HTTPS request from Squeak or Pharo? HTTPClient and friends seem to lack any facilities for SSL.

like image 492
Benjamin Pollack Avatar asked Dec 16 '10 13:12

Benjamin Pollack


1 Answers

You can use SqueakSSL easily through WebClient like so:

WebClient httpGet: 'https://www.google.com/search?q=squeak'.

There may be a problem with certificates, in which case you will have to catch and ignore the errors (see here).

Also, keep your eye on the Zinc http framework, which will be Pharo's new default soon. It doesn't seem to have ssl yet, but it's being rapidly developed.

like image 101
Sean DeNigris Avatar answered Oct 17 '22 12:10

Sean DeNigris