Pretending that pictures in oracle are files

Philip Greenspun's Homepage : Philip Greenspun's Homepage Discussion Forums : 6916 : One Thread
Notify me of new responses
I would like for a simple get of:
http://lcsweb36.lcs.mit.edu/family/photos/3487.jpg to check
permissions and return photo 3487.
This means that I want to register a procedure, and I do that
successfully. What I can't find is how to, from inside the procedure,
get the URL from the GET statement, so that I can grep out the
photo_id and do the right thing with it. I assume that there is some
sort of upvar that would allow this, but I can't seem to find it.

Thanks

-- Richard Tibbetts, October 13, 1999

Answers

Getting the URL in tcl

Try calling [ns_conn url].

-- Jesse Koontz, October 13, 1999