Forum Discussion
Kevin_Stewart
Jul 11, 2014Employee
Three things:
-
Add a log statement at the beginning of the HTTP_REQUEST event to show the incoming URI. You may need to simply do a [string tolower [HTTP::uri]] evaluation.
log local0. [HTTP::uri]
-
Make sure you're using the name defined under Local Traffic - iFiles in your [ifile get] - not the name defined under System - File Management.
-
Once you get the switch working, you should add a Content-Type header to the image response:
HTTP::respond 200 content [ifile get catpic] "Content-Type" "image/png"