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
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
Maybe this way:Qt Code:
QUrl url; ... if( url.path().isEmpty() ) { url.setPath( "/" ); } ... http.setHost( url.host() ); http.setPort( url.port( 80 ) ); ... http.get( url.path(), ... );To copy to clipboard, switch view to plain text mode
Bookmarks