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
Petr Fischer wrote:
Hi,
I need to get stream from general (user entered) URI.
- 'file:///Users/pf/Documents' asURI contentStream - this works
(instance of StandardFileStream)
- '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
Thanks, pf
On 24.1.2008, at 0:26, Hexamorph wrote:
Petr Fischer wrote:
Hi, I need to get stream from general (user entered) URI.
- '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
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
beginners@lists.squeakfoundation.org