[Catalyst] Re: How to get uri_for something with a fragment?
    Adam Sjøgren 
    asjo at koldfront.dk
       
    Mon Mar  7 21:14:59 GMT 2011
    
    
  
On Mon, 7 Mar 2011 13:01:42 -0800, Ashley wrote:
> What Ronald said + the #fragment is not passed along in the available
> ENV with some servers and setups. In these cases it doesn't exist as
> far as the backend is concerned. If you rely on it for dispatch, you
> may get burned.
Uhm, the _browser_ handles fragments. Browsers don't send them to the
server _at all_.
I.e. start:
  $ socket -s 4444
and hit, say, http://localhost:4444/whatever.html?this=1&that=2#frag in
a browser, and you'll see (Iceweasel):
  GET /whatever.html?this=1&that=2 HTTP/1.1
  Host: localhost:4444
  User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b11) Gecko/20110208 Firefox/4.0b11 Iceweasel/4.0b11
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept-Language: en-us,en;q=0.5
  Accept-Encoding: gzip, deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 115
  Connection: keep-alive
  $ 
Another example (Chromium):
  $ socket -s 4444
  GET /whatever.html?this=1&that=2 HTTP/1.1
  Host: localhost:4444
  Connection: keep-alive
  Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
  User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13
  Accept-Encoding: gzip,deflate,sdch
  Accept-Language: en-US,en;q=0.8
  Accept-Charset: UTF-8,*;q=0.5
  $ 
  Best regards,
    Adam
-- 
 "I always liked songs with parentheses in the title."        Adam Sjøgren
                                                         asjo at koldfront.dk
    
    
More information about the Catalyst
mailing list