Results 1 to 2 of 2

Thread: Do I have to add "http://" to load a page

  1. #1
    Join Date
    Jan 2016
    Posts
    11
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Do I have to add "http://" to load a page

    Whenever I try to load a page with QWeb, it doesn't load the page if I don't add http:// at the begining. As some sites uses "https" I can't really know how to handle this situation. How can I load pages without adding http or https at the beginning?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Do I have to add "http://" to load a page

    The web engine needs to know which protocol to use to connect to the server.

    So if your input does not have any protocol, you could first try https and if that fails try http.

    Cheers,
    _

Similar Threads

  1. Replies: 1
    Last Post: 20th November 2015, 10:02
  2. Replies: 13
    Last Post: 29th May 2015, 04:30
  3. Replies: 3
    Last Post: 16th March 2015, 07:31
  4. [WebKit] catch "page not found" error
    By maston in forum Qt Programming
    Replies: 3
    Last Post: 16th November 2010, 15:44
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.