Hi Lou,
I hope, I do not misunderstand your question, thus let me clearly know if I am going into a wrong direction.
First to your mistake, it is impossible to answer without creating a session. There is always one, created by the OS upon receiving a request and under its control. It is important to make clever use of this resource, to avoid unnecessary traffic and avoiding nasty response times.
The first portion of the function is also known as firewall, it decides whether to react on a request or not.
If it decides to react, no matter what was sent to the port, a session will be created (it
carries the start and the end point (10.1.5.2) and protocol (eg. http:).
The
OS is reponsible to create a Session and to delegate an URL to somebody (the handler) who is going creating the response. The OS decides to which program a session is delegated (Windows IIS, Apache, or the VAST VM, running Seaside, SST or
s.th. else).
The response in turn can have different
forms, e.g. formatted with html -> a web page to be presented, or a
file-> causing the browser to ask if and where you want to save it.
Other common reactions are turning a device on or off, sending a picture, film or sound....
You cannot have two different programs to be launched presenting the same URL (the part before an optional ?, no matter what follows).
An Url triggers a handler to react upon, normally (in the case of Seaside) a session answering a HTML response.
Given your example, on
10.1.5.2:8877/RaspberryRelay/... VAST VM running Seaside will react, create a (VAST internal) session (reuse if it was created before) and answer a HTML
where as upon
http://10.1.5.2:8877/root/...Windows IIS will react, create a (IIS internal) session (
reuse if it was created before
) and answer the file identified by the rest of the url.
[these internal sessions a place holders for the mandatory already established OS session].
The point is the difference of this prefix: on the first prefix (RaspberryRelay), Seaside is registered to react, on the second prefix (root), Windows IIS is set to react.
[as I said, I assume, you have activated the Windows feature www services and configured IIS to react on the prefix /root/. Otherwise windows wont send a file]
Now what you have to do in Seaside is to answer a file instead of a html (as you have registered Seaside to react on the prefix
RaspberryRelay).
Conclusion: first you have to decide who is going to response on an URL prefix and then what it has to answer (steered by the rest of the url and under consideration of an optional ? and a directive behind).
Now given your request to answer a file based upon the name behing the ? mark you have to adopt the existing code currently presenting a login as answer (because it does not inspect upon existance of ? mark and the rest, standard is to ignore this).
I assume that the existing code to provide a login is self written, making use of prefabricated framework components provided by the Seaside framework.