Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Protocol “” is unknown

    Qt WebKit
    2
    2
    1345
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Sasa Friedrich last edited by

      I'm using simple browser made with Qt WebKit (Qt version 5.2.1).

      On a page (running local rails server) I have a link that opens Pdf Previewer (pdf.js). In this .js script I try to open local (rails) url with path as parameter. Path can be local file path or some public url.

      example:

      http://localhost/documents/preview_file?path=http%3A%2F%2Fmy-domain.s3.amazonaws.com%2F4533902%2Ftest.pdf%3FAWSAccessKeyId%3DAKIAJWDKNPWPFJYREP6Q%26Expires%3D1480381051%26Signature%3DCqfAmGCm7S5lTpQ7pP0U25BqYpE%253D
      

      In case parameter path is public url rails only redirects to this url.

      But problem is, that in this browser I get an error (in console):

      GET http://localhost/documents/preview_file?path=http%3A%2F%2Fmy-domain.s3.amazonaws.com%2F4533902%2Ftest.pdf%3FAWSAccessKeyId%3DAKIAJWDKNPWPFJYREP6Q%26Expires%3D1480381051%26Signature%3DCqfAmGCm7S5lTpQ7pP0U25BqYpE%253D Protocol "" is unknown
      

      I get this error only in this QtWebKit browser, Chrome and Firefox open this link without problem.

      Any help appreciated

      10x

      K 1 Reply Last reply Reply Quote 0
      • K
        Konstantin Tokarev @Sasa Friedrich last edited by

        @Sasa-Friedrich Could you provide example page which misbehaves?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post