Last updated at 5:42 pm UTC on 27 August 2017
WebClient provides a simple yet complete HTTP client implementation.
To view the documentation evaluate:
HelpBrowser openOn: WebClientHelp.
The simplest form to use WebClient is by one of its convenience APIs:
WebClient httpGet: 'http://www.squeak.org/'.
WebClient httpPost: 'http://www.squeak.org/' content:'Hello Squeak' type: 'text/plain'.
The answer object is a WebResponse instance. WebClient uses the WebUtils class.
WebClient is included in the base image since April 2015 and thus with Squeak 4.6.
The WebClient core package includes as well a simple WebServer.
Retrieve a Json object