![](//d33sqmjvzgs8hq.cloudfront.net/wp-
content/themes/oneqt/assets/images/cookie_small.png)

We bake cookies in your browser for a better experience. Using this site means
that you consent. [Read More](//qt.io/terms-conditions/)

Menu

  * [ Partners ](//qt.io/partners/)
  * [ Blog ](https://blog.qt.io/)

[ ](https://qt.io/)

  * [Download](https://qt.io/download/)
  * [Device Creation](https://www.qt.io/qt-for-device-creation/)
  * [Application Development](https://www.qt.io/application-development/)
  * [Services](https://www.qt.io/services/)
  * [Developers](https://www.qt.io/developers/)

  * [EN](https://qt.io/support/)
  * [RU](https://qt.io/ru/)
  * [ZH](https://qt.io/zh-hans/)

#

  * [Wiki](https://wiki.qt.io/)
  * [Documentation](https://doc.qt.io/)
  * [Forum](https://forum.qt.io/)
  * [Bug Reports](https://bugreports.qt.io/)
  * [Code Review](https://codereview.qt-project.org/)
  * [Resource Center](https://resources.qt.io/)
  * [Qt Extensions](https://marketplace.qt.io/)

# Qt Documentation

  * [Qt 5.12](index.html)
  * [Qt WebEngine](qtwebengine-index.html)
  * [Qt WebEngine Licensing](qtwebengine-licensing.html)
  * url_parse

# url_parse

[Project Homepage](http://mxr.mozilla.org/comm-
central/source/mozilla/netwerk/base/src/nsURLParsers.cpp)

    
    
    Copyright 2007, Google Inc.
    All rights reserved.
    
    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions are
    met:
    
        * Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
        * Redistributions in binary form must reproduce the above
    copyright notice, this list of conditions and the following disclaimer
    in the documentation and/or other materials provided with the
    distribution.
        * Neither the name of Google Inc. nor the names of its
    contributors may be used to endorse or promote products derived from
    this software without specific prior written permission.
    
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
    OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    
    -------------------------------------------------------------------------------
    
    The file url_parse.cc is based on nsURLParsers.cc from Mozilla. This file is
    licensed separately as follows:
    
    The contents of this file are subject to the Mozilla Public License Version
    1.1 (the "License"); you may not use this file except in compliance with
    the License. You may obtain a copy of the License at
    http://www.mozilla.org/MPL/
    
    Software distributed under the License is distributed on an "AS IS" basis,
    WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
    for the specific language governing rights and limitations under the
    License.
    
    The Original Code is mozilla.org code.
    
    The Initial Developer of the Original Code is
    Netscape Communications Corporation.
    Portions created by the Initial Developer are Copyright (C) 1998
    the Initial Developer. All Rights Reserved.
    
    Contributor(s):
      Darin Fisher (original author)
    
    Alternatively, the contents of this file may be used under the terms of
    either the GNU General Public License Version 2 or later (the "GPL"), or
    the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
    in which case the provisions of the GPL or the LGPL are applicable instead
    of those above. If you wish to allow use of your version of this file only
    under the terms of either the GPL or the LGPL, and not to allow others to
    use your version of this file under the terms of the MPL, indicate your
    decision by deleting the provisions above and replace them with the notice
    and other provisions required by the GPL or the LGPL. If you do not delete
    the provisions above, a recipient may use your version of this file under
    the terms of any one of the MPL, the GPL or the LGPL.

© 2020 The Qt Company Ltd. Documentation contributions included herein are the
copyrights of their respective owners. The documentation provided herein is
licensed under the terms of the [GNU Free Documentation License version
1.3](https://www.gnu.org/licenses/fdl.html) as published by the Free Software
Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in
Finland and/or other countries worldwide. All other trademarks are property of
their respective owners.

  * [Download](https://qt.io/download/)
    * [Start for Free](https://qt.io/download/)
    * [Qt for Application Development](https://qt.io/download-eval-for-applications-step-2/)
    * [Qt for Device Creation](https://qt.io/request-eval-for-devices-step-2/)
    * [Qt Open Source](https://qt.io/download-open-source/)
    * [Terms & Conditions](https://qt.io/terms-conditions/)
    * [Licensing FAQ](https://qt.io/FAQ/)
  * [Product](https://qt.io/product/)
    * [Qt in Use](https://qt.io/product/)
    * [Qt for Application Development](https://qt.io/application-development/)
    * [Qt for Device Creation](https://qt.io/qt-for-device-creation/)
    * [Commercial Features](https://qt.io/qt-features/)
    * [Qt Creator IDE](https://qt.io/ide/)
    * [Qt Quick](https://qt.io/qt-quick/)
  * [Services](https://qt.io/services/)
    * [Technology Evaluation](https://qt.io/services-technology-evaluation/)
    * [Proof of Concept](https://qt.io/services-proof-of-concept/)
    * [Design & Implementation](https://qt.io/services-design-implementation/)
    * [Productization](https://qt.io/services-productization/)
    * [Qt Training](https://qt.io/qt-training/)
    * [Partner Network](https://qt.io/partners/)
  * [Developers](https://qt.io/developers/)
    * [Qt Extensions](https://marketplace.qt.io/)
    * [Examples & Tutorials](https://doc.qt.io/qt-5/qtexamplesandtutorials.html)
    * [Development Tools](https://doc.qt.io/qt-5/topics-app-development.html)
    * [Wiki](https://wiki.qt.io/)
    * [Forums](https://forum.qt.io/)
    * [Contribute to Qt](https://wiki.qt.io/contribute)
  * [About us](https://qt.io/about-us/)
    * [Training & Events](https://qt.io/events/)
    * [Resource Center](https://qt.io/resource-center/)
    * [News](https://qt.io/news/)
    * [Careers](https://qt.io/careers/)
    * [Locations](https://qt.io/locations/)
    * [Contact Us](https://qt.io/contact-us)

[](https://qt.io/about-us/)

  * [Sign In](https://account.qt.io/login "Sign into your account.")
  * [Feedback](mailto:feedback@theqtcompany.com?Subject=Feedback%20about%20doc.qt.io%20site)
  * [Contact us](https://qt.io/contact-us/)
  * [© 2020 The Qt Company](https://qt.io/about-us/)

