[Pharo-project] [Progress Report] Zn+Zdc=HTTPS (Zodiac)
Hi, Since the first Zodiac code became available last May and since the two Alpha releases in June and September I think there has been some progress. I know of at least two projects that independently have put Zn+Zdc (Zinc HTTP Components & Zodiac) to successful use for doing HTTPS: - Paul DeBruicker's stripe.com credit card payment gateway integration - Guillermo Polito's google.com account authentication and API access (Ulysse the Monkey) That is why in the last Zn release, HTTPS will work out of the box, provided you load Zdc and install the necessary plugin. So the following should just work: ZnClient new https; host: 'www.google.com'; addPath: 'search'; queryAt: 'q' put: 'Pharo Project'; get ZnClient new get: 'https://www.google.com/search?q=Pharo Project' To verify that the query actually worked, you can do a self includesSubString: 'www.pharo-project.org' on the resulting byte string. There is now a new webpage dedicated to Zodiac: http://zdc.stfx.eu Currently, it is quite minimal, but it will grow when needed. Although the project is far from finished, I think it is safe to move it from Alpha to Beta. Sven
This is a really exciting news! Stef On Nov 15, 2011, at 3:06 PM, Sven Van Caekenberghe wrote:
Hi,
Since the first Zodiac code became available last May and since the two Alpha releases in June and September I think there has been some progress. I know of at least two projects that independently have put Zn+Zdc (Zinc HTTP Components & Zodiac) to successful use for doing HTTPS:
- Paul DeBruicker's stripe.com credit card payment gateway integration - Guillermo Polito's google.com account authentication and API access (Ulysse the Monkey)
That is why in the last Zn release, HTTPS will work out of the box, provided you load Zdc and install the necessary plugin.
So the following should just work:
ZnClient new https; host: 'www.google.com'; addPath: 'search'; queryAt: 'q' put: 'Pharo Project'; get
ZnClient new get: 'https://www.google.com/search?q=Pharo Project'
To verify that the query actually worked, you can do a
self includesSubString: 'www.pharo-project.org'
on the resulting byte string.
There is now a new webpage dedicated to Zodiac:
Currently, it is quite minimal, but it will grow when needed.
Although the project is far from finished, I think it is safe to move it from Alpha to Beta.
Sven
participants (3)
-
Francois Stephany -
Stéphane Ducasse -
Sven Van Caekenberghe