-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Jeff Tharp wrote:
> The problem with this approach is that I seem to loose URL fragments,
> such that when I request http://server.domain.com/index.html#anchor,
> orig_uri = "http://server.domain.com/index.html";, not
> "http://server.domain.com/index.html#anchor";.  Is this expected, or am I
> going about this in the wrong fashion?  BTW, I realize that this is

This is how Firefox sends a request for this URL:
http://localhost/somedir/somefile.php#someanchor

==netcat output==
GET /somedir/somefile.php HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.10) Gecko/20071126 
Ubuntu/7.10 (gutsy)
Firefox/2.0.0.10
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
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: 300
Connection: keep-alive
== end netcat output ==

As you can see, #anchors are not sent in the request. They are just 
browser-side named references.
You'll never get those. At least not with firefox.

- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
Apoye la Musica Libre - Vote Futurabanda desde: (ver sgte. linea)
http://www.frecuenciazero.com.ar/realityrock/votar.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHU/acAlpOsGhXcE0RCutFAJ9JwcBMn2+7u7CaJ79RSUYKDR6dnQCfXHv9
1ZEZd8UPMb/BFMSRJd7lmj0=
=qFey
-----END PGP SIGNATURE-----

Reply via email to