Visualizzazione post con etichetta curl. Mostra tutti i post
Visualizzazione post con etichetta curl. Mostra tutti i post

domenica 1 luglio 2007

Installing Pastell and the CurlPlugin

Before sailing forth in the high seas of REST, there's a couple of addition to do to the Squeak image: Pastell and the CurlPlugin.

Installing Pastell

Pastell is a package for Squeak that adds XPath-like navigability to an XML DOM tree. I'll be using it for all RESTful Web Services' Squeak examples.
In order to install Pastell, you'll have to:
  1. Open the Monticello Browser and add the Pastell repository. You'll fine the repository info on Pastell's SqueakSource page

  2. Load the package Pastell-gc.10 . This will install Pastell.

  3. From the RWS repository, update to RWS-gc.4 . Just select the package and click on the "Load" button. This will install a version of RWS modified to use Pastell.


Installing CurlPlugin

CurlPlugin is a plugin that allows access to libCurl's functionalities from a Squeak image. Currently only libCurl's "easy" interface is supported, but that's good enough for the next examples.

I've had trouble using the premade CurlPlugin, so I've prepared a new one for Squeak's Unix VM. Just grab CurlPlugin.zip and extract it in the same directory of your RWS image. After extraction, open the image and file in the Curl.st file and you're done.

This version of the CurlPlugin has been compiled on Fedora 7 system against libCurl version 7.16.2 . If you have any trouble using this plugin or you're on a different platform, please leave a comment and I'll try to help you.

Once you have installed both Pastell and the CurlPlugin, don't forget to save your image.

Later this afternoon I'll publish another post detailing the next example: a del.icio.us client.