Static url rewriting / response headers

hi all,

two questions:

(1) is there any way to map one URL to another when neither of them is
a controller/action?

i.e., the user enters http://foo.com/bar/baz, and the static resource
living at public/zoom/pop.mp3 gets served?

(2) is there any way to see the actual response headers that are
actually returned by the server? I know I can telnet to the port and
type in a request, but I want to see what happens when a Flash movie
internally makes a request. It seems to work if I make the request
myself through the browser or through manual (telnet) http, but it’s
not working when the Flash movie makes it so I want to see the raw http
that the server is serving up. Suggestions?

thanks,
brian

On 10/20/06, brian.estlin [email protected] wrote:

hi all,

two questions:

(1) is there any way to map one URL to another when neither of them is
a controller/action?

i.e., the user enters http://foo.com/bar/baz, and the static resource
living at public/zoom/pop.mp3 gets served?

Don’t know, sorry. Seems like it would be useful to have a generic way
to specify a base uri in rails so that for example a site could be
served from behind a proxy with a different url relative to /

(2) is there any way to see the actual response headers that are
actually returned by the server? I know I can telnet to the port and
type in a request, but I want to see what happens when a Flash movie
internally makes a request. It seems to work if I make the request
myself through the browser or through manual (telnet) http, but it’s
not working when the Flash movie makes it so I want to see the raw http
that the server is serving up. Suggestions?

I suggest you investigate these:

http://livehttpheaders.mozdev.org/
http://www.wireshark.org/
http://www.circlemud.org/~jelson/software/tcpflow/
http://netcat.sourceforge.net/


noodl

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs