.request.filename and 404 error (wodWebServer / wodWebServer.NET)
With the http1_reuqestdone event I checking for the FULLURI that is received.
Based on that URI the app decides what data should be send back to the user.
In some cases it's a file that should be send to the user.
I'm setting this via
user.request.filename= c:myfile.html
IF the file exists then the file is correctly served to the client. However if the file doesn't exist then the client doesn't get a 404 error (as I would expect). Is this normal? And if so what to do to be sure that in this cases I would get (in the client) a 404 error?
(using VB6)
dirk.
Re: .request.filename and 404 error
Dirk,
Why don't you first check if file exist using VB6?
If file doesn't exist you can send 404 error with wodWebServer.
Drazen
Re: .request.filename and 404 error
Dirk,
Why don't you first check if file exist using VB6?If file doesn't exist you can send 404 error with wodWebServer.
Drazen
I thought the webserver component would do that.
I'll do it in VB then
dirk
Re: .request.filename and 404 error
Dirk,
if file doesn't exist then 404 should be returned. What status do you receive instead? It has to return *something*..
Kreso
Re: .request.filename and 404 error
Dirk,
if file doesn't exist then 404 should be returned. What status do you receive instead? It has to return *something*..
Kreso
It seems like nothing is returned at all.
The browser continues to wait for the response....when I stop the webserver then I see that when I stop that server the browser also stops waiting....
dirk
Re: .request.filename and 404 error
Dirk,
I am not sure if this is a bug or not, but I did make a fix to prevent this from happening.
Please request update, official version in 1-2 days.
Kreso