View Full Version : Downloading from a clean url
travlr
21st June 2007, 03:44
I'm writing a web client using QUrl and QHttp and I can't figure out how to access the data of a clean url. For instance http://kde.org is a clean url.
Thanks,
-Dieter
jacek
21st June 2007, 21:55
Maybe this way:
QUrl url;
...
if( url.path().isEmpty() ) {
url.setPath( "/" );
}
...
http.setHost( url.host() );
http.setPort( url.port( 80 ) );
...
http.get( url.path(), ... );
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.