Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Protocol “” is unknown
Forum Update on Monday, May 27th 2025

Protocol “” is unknown

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 1.6k Views
  • 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 Offline
    S Offline
    Sasa Friedrich
    wrote on 28 Nov 2016, 15:15 last edited by
    #1

    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 28 Nov 2016, 15:58
    0
    • S Sasa Friedrich
      28 Nov 2016, 15:15

      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 Offline
      K Offline
      Konstantin Tokarev
      wrote on 28 Nov 2016, 15:58 last edited by
      #2

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

      1 Reply Last reply
      0

      1/2

      28 Nov 2016, 15:15

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved