Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
WebServer
Last updated at 10:40 am UTC on 17 March 2019
WebClient and WebServer 1.0 for Squeak 4.1 (May 2010).
Since Squeak 4.6 a WebServer is included in the WebClient package.

For instructions and examples choose the menu 'Help' and then 'Help Browser', topic 'WebServer'.
Or evaluate
 HelpBrowser openOn: WebServerHelp.

WebServer / WebClient to replace HTTPSocket

Frank Shearar Thu, May 15, 2014 at 3:07 PM
Reply-To: The general-purpose Squeak developers list
To: The general-purpose Squeak developers list

On 15 May 2014 13:17, Tobias Pape wrote:
> Hey all
>
> Re-reading an old blog post
> https://squeakingalong.wordpress.com/2010/05/05/webclient-and-webserver-for-squeak/
> Can we make the last paragraph happen?


> As a result, we now have what I think is a pretty decent HTTP server and client implementation for Squeak 4.1 and hopefully we can nuke HTTPSocket sometime soon. WebClient is superior in _every_ respect.
)

frank


Examples

A simple example:
 WebServer exampleBrowse

WebServer and WebClient hello world demo

To know your local host address:
NetNameResolver localHostAddress

WebServer send200Response:


Note about Pharo port

This Webclient / Webserver code was also loaded into Pharo and has been modified there.
No documentation yet how much the APIs differ. There are attempts to have a Facade covering both APIs (TODO: post link here)