[Qt-interest] Bug in QUrl?
Andreas Pakulat
apaku at gmx.de
Thu Nov 26 10:24:49 CET 2009
On 26.11.09 10:01:00, Simarillion wrote:
> Hi,
> if I create a QUrl to our xml-rpc Server like this:
>
> QUrl ServerURL;
> ServerURL.setUrl("http://study.hiper-campus.com/?q=services/xmlrpc");
>
> or
>
> QUrl ServerURL("http://studien.hiper-campus.de/?q=services/xmlrpc");
>
> ,afterwards the QUrl.path() variable is empty. Is this due to the question
> mark? Is it a bug?
No, there's no bug. You simply don't have any path. The path is the part
between the first slash and the first (unescaped) question mark.
Everything after the question mark is the query string. Thats how URL's
are defined.
Andreas
--
So this is it. We're going to die.
More information about the Qt-interest-old
mailing list