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

Edgar


On 7/15/09 6:20 PM, "Ken G. Brown" <kbr...@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@lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

'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.
! !
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to