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

How can I make an HTTPS request from Squeak or Pharo? HTTPClientand friends don't seem to have enough SSL tools.

+5
source share
6 answers

The zodiac , as mentioned above, will allow you to make HTTPS requests from Zinc.

Include it like this (recipe from the Pharo forum ):

First, download the SqueakSSL plugin and place it in your Pharo directory, and then download the necessary packages:

"Load Zinc HTTP Components"
Gofer it 
  squeaksource: 'ZincHTTPComponents'; 
  package: 'Zinc-HTTP'; 
  package: 'Zinc-Tests'; 
  package: 'Zinc-Patch-HTTPSocket'; 
  load. 

"Load Zodiac including extras"
Gofer it 
  squeaksource: 'Zodiac'; 
  package: 'Zodiac-Core'; 
  package: 'Zodiac-Tests'; 
  load. 

"Load extra Zinc support for Zodiac"
Gofer it 
  squeaksource: 'ZincHTTPComponents'; 
  package: 'Zinc-Zodiac'; 
  load. 

"Switch to the Zn Zodiac socket factory" 
ZnNetworkingUtils default: ZnZodiacNetworkingUtils new. 

HTTPS.

+4

SqueakSSL WebClient :

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

, (. ).

, Zinc http framework, Pharo. , ssl, .

+5

. :

SqueakSSL , . WebClient, :

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

:

, , stunnel.

+1

Lighttpd ( Apache) http https

0

, stunnel.

?

CPU / VM .

, Zodiac,

0

Pharo , .

ZnEasy get: 'https://www.google.com'

.

:

http://www.pharo-project.org/news?dialog=documentation-for-zinc-http

HTTPS, Secure POP-, Secure SMTP-

http://zdc.stfx.eu/zodiac-paper.html

0

All Articles