[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Simple HTTP client

From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Simple HTTP client
Date: Sat, 31 May 2008 19:14:02 +0200
User-agent: Thunderbird (Macintosh/20080421)

Mark Carter wrote:
I would like to mess around with some client-side HTTP stuff. I had a Google around, and it appears that I need the packages Netclients. However, I couldn't figure out how to make it work.

Is there a simple example where I can download, for example the page, as a string?

Uhm, in the development trees it broke recently... :-)

I don't have 3.0.3 checked out but this should work:

   [ (f := FileStream open: '' mode: 'r')
        contents ] ensure: [ f close ]

I guess it'd be better to have something like

   (URL fromString: '') contents


reply via email to

[Prev in Thread] Current Thread [Next in Thread]