Last updated at 9:31 pm UTC on 2 January 2018
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