[Pharo-dev] ZnEasy and https?

Sven Van Caekenberghe sven at stfx.eu
Wed Oct 23 04:52:33 EDT 2013


Hi Stéphane,

It is actually even simpler, you can use either:

ZnEasy get: 'https://github.com/pharo-project/pharo-project-proposals/blob/master/Topics.st'.

or:

ZnClient new 
  get: 'https://github.com/pharo-project/pharo-project-proposals/blob/master/Topics.st'.

They return slightly different things, in the first case the response object, in the second case the actual contents. Look for users of ZnClient in the system and tests for tons of examples.

HTH,

Sven

On 23 Oct 2013, at 10:46, Stéphane Ducasse <stephane.ducasse at inria.fr> wrote:

> hi sven
> 
> I would like to fetch a file stored on github
> 
> ZnEasy client
> 		url: 'https://github.com/pharo-project/pharo-project-proposals/blob/master/Topics.st';
> 		get;
> 		response
> 
> Else I tried to read zodiac code but I missed some examples.
> I tried to read the tests but I failed.
> 
> Stef
> 
> 
> 





More information about the Pharo-dev mailing list