How to get URL fragment?

11 views
Skip to first unread message

Michael Durland

unread,
Oct 17, 2013, 1:50:50 PM10/17/13
to tu...@googlegroups.com
Hi,
I just started using Tufao 0.8 and I'm wondering how to get the URL fragment? That is, the last part of the URL beginning with "#". When I call HttpServerRequest->url(), it does not appear to contain the fragment.
Thanks,
Mike

Vinícius dos Santos Oliveira

unread,
Oct 17, 2013, 2:00:50 PM10/17/13
to tu...@googlegroups.com
Em Qui, 2013-10-17 às 10:50 -0700, Michael Durland escreveu:
Hi,

Welcome to the Tufão mailing list.


I just started using Tufao 0.8

Let us know if you create anything cool with Tufão, then we can add your project to the list: https://github.com/vinipsmaker/tufao/wiki/Projects-using-Tuf%C3%A3o


and I'm wondering how to get the URL fragment? That is, the last part of the URL beginning with "#". When I call HttpServerRequest->url(), it does not appear to contain the fragment.

Clients are not supposed to send URI-fragments to servers when they retrieve a document[1]. You can use special communication through JavaScript code to make this happen. You can also replace fragments by query items.

[1] http://en.wikipedia.org/wiki/Fragment_identifier#Basics


--
Vinícius dos Santos Oliveira
https://about.me/vinipsmaker
signature.asc

Michael Durland

unread,
Oct 18, 2013, 1:53:17 PM10/18/13
to tu...@googlegroups.com
Thanks for the response. I did not know the client (Firefox in my case) doesn't send the fragment to the server, so that explains why I can't see it in Tufao.
Will let you know what we're using Tufao in if/when we ship something.
Mike
p.s. Just FYI, I can't use 1.x because of the dependence on C++ 11 and Qt 5. We're using Qt 4.8.2 on gcc 4.5.3 and visual studio 2010.
Reply all
Reply to author
Forward
0 new messages