Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Try out HTTP and FTP
Last updated at 5:57 pm UTC on 24 March 2019
Accessing the HTTP and FTP services in Squeak.

See WebClient (includes in Squeak sincd 2015), older approach below.

 'https://www.w3.org/TR/html5/index.html#elements-1' asUrl retrieveContents inspect


2003

You can simply and easily manipulate web pages and FTP files from Squeak.
Open a Workspace.


 HTTPSocket httpShowGif: 'http://www.altavista.com/av/gifs/new/front_hdr.gif'.	 

 HTTPSocket httpShowGif: 'www.webPage.com/~kaehler2/ainslie.gif'.

 (HTTPSocket httpGif: 'http://www.altavista.com/av/gifs/new/front_hdr.gif') inspect.


 HTTPSocket httpShowJpeg: 'http://www.webPage.com/~kaehler2/WasteSmall1.jpg'.

 (HTTPSocket httpJpeg: 'http://www.webPage.com/~kaehler2/WasteSmall1.jpg') inspect.


 HTTPSocket httpShowPage: 'http://www.altavista.digital.com/index.html'.

 (HTTPSocket httpGet: 'http://www.altavista.digital.com/index.html') inspect.


The FileList browser can show FTP directories and files on the net.
[open...] [file list]

Also see Swiki
Documentation (Redirection)