Petr Fischer wrote:
Hi,
I need to get stream from general (user entered) URI.
1) 'file:///Users/pf/Documents' asURI contentStream - this works
(instance of StandardFileStream)
2) 'http://www.seznam.cz/' asURI contentStream - error
(MessageNotUnderstood: HTTPClient class>>contentStreamForURI:)
I need one way (method) for all types of URIs (http, file, ftp...).
Any ideas? Thanks, pf
Hi!
I'm quite new to Squeak/Smalltalk (and totally fresh to this list),
so I might be wrong.
Maybe this is what you want:
'theURLString' asUrl retrieveContents contentStream
|