[Newbies] Terse guide to Squeak

Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Thu Jul 16 12:06:52 UTC 2009

Install the attached
Do HTTPSocket httpShowPage: 'http://wiki.squeak.org/squeak/5699'
And you have a crude http reader of wiki without leave Squak.


On 7/15/09 6:20 PM, "Ken G. Brown" <kbrown at mac.com> wrote:

> Just came across this again and thought maybe the link would be useful to
> post.
> <http://wiki.squeak.org/squeak/5699>
> Ken G. Brown
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

-------------- next part --------------
'From SqueakLight|II of 31 May 2008 [latest update: #7228] on 16 July 2009 at 9:04:39 am'!

!HTTPSocket class methodsFor: 'get the page' stamp: 'edc 6/28/2008 11:18'!
httpShowPage: url
	"Display the exact contents of the given URL as text. See examples in httpGet:"

	| doc |
	doc _ (self httpGet: url accept: 'application/octet-stream') contents.
	doc size = 0 ifTrue: [^ self error: 'Document could not be fetched'].
	doc := doc  asUnHtml withSqueakLineEndings.
	(StringHolder new contents: doc) openLabel: url.
! !

More information about the Beginners mailing list