Aparajita Fishman wrote:
Maybe the code we run in the pre-stream execute hook is the culprit?

Don't know, but definitely something is awry, because you were getting 200 See Other, which can't be from me.
After further debugging, I _think_ this might be a bug in WebSTAR's Rewrite module. If I trace A4D_PostExecuteHook and examine the header values A4D is showing the X-Content = "303 See Other", but LiveHTTPHeaders is showing the bad "200 See Other". I don't do anything in my code to change the response content between your shell call to "A4D Execute stream request" and ITK_TCPSendBlob.

Actually, I did some testing at the web server and ran everything against localhost:8080 (where A4D serves from) and I didn't get the error. That definitely points to WebSTAR's Rewrite module. What stumps me is why this works with Active4D 3.0.1b7 and not 4.0.2. Unfortunately, getting a fix for that from Kerio "ain't gonna happen".
Regardless this code provides a workaround.

if(false)
   abandon session
else
   delete session item ("@")
   set session timeout (0)
end if

-- Brad


FWIW, if there were a way to preview the request with 4D's web server I'd
abandon ITK in a heartbeat.

You can examine the first 32K of the request with 4D's web server. That certainly should be sufficient to do the routing you need to do.
Thanks. Did this feature always exist? It seemed like when I originally looked at shell options this prevented me from using 4D's WebServer (we were using v6 then).

Can any Active4D'ers who have used that feature to preview the request share your experience?

-- Brad
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to