[Seaside] How to check file url (smth like isFileExists) in seaside (in case the file is not on localhost)

Lukas Renggli renggli at gmail.com
Fri Nov 13 15:41:36 UTC 2009

> How can I check the existence of the file www.qwerty.com/someFile.jpg ?
> May be I need to write smth like that:
> request := WARequest
> method: 'GET'
> url: 'www.qwerty.com/someFile.jpg'
> headers: Dictionary new
> fields: Dictionary new
> cookies: Dictionary new.
> response := aHandler handleRequest: request.
> self assert: response status = 200.
> .......
> ??
> But I don't know type of handler I must use for such request.
> Any ideas?

Seaside is a web application server, not a web client. It does not
provide the functionality to perform requests, it only handles them.
Instances of the class WARequest is used internally by Seaside to
represent the incoming requests in a platform and server independent

Check the libraries provided by your Smalltalk dialect. In
Pharo/Squeak this is the class HttpSocket.


Lukas Renggli

More information about the seaside mailing list