PDA

View Full Version : QUrl how to change it



alonso15
3rd August 2011, 16:25
Hi,
My problem is how to change automaticlly the url without loading a page
for example some sites have a home page like this "www.urlexample.com/home"
My question is how to get this link when you only put "www.urlexample.com" (without loading a pageweb)
I hope that it was clear

mcosta
4th August 2011, 10:15
I'm sorry, but you was not clear.
what do you mean for "My problem is how to change automaticlly the url without loading a page"?

alonso15
4th August 2011, 13:13
Sorry , My english is bad
for example http://formula1.com you write formula1.com but after some times (when the page is loading) it change to http://www.formula1.com/default.html
I want a function in qt that change the url (like the example)

yeye_olive
4th August 2011, 15:54
That cannot be done, since it is not a static transformation of a URL, but an HTTP redirection. You thus need to query the server for the page and follow the redirections.