Qt Forum

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

    Page is not being loaded

    Qt WebKit
    2
    11
    3522
    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.
    • H
      HaykG last edited by

      Can't load the item detailed pages in Amazon.com (e.g. "http://www.amazon.de/Apple-iPad-WiFi-UMTS-64GB/dp/B003G3UULC/ref=sr_1_5?ie=UTF8&s=computers&qid=1283782588&sr=8-5":http://www.amazon.de/Apple-iPad-WiFi-UMTS-64GB/dp/B003G3UULC/ref=sr_1_5?ie=UTF8&s=computers&qid=1283782588&sr=8-5). Tried this link with:

      • Arora (doesn't work)

      • qtdemo browser (doesn't work)

      • simple code using QWebView (doesn't work)

      • Chromium-browser (work)

      • Firefox (work)

      In case if I remove the post query items from the link (i.e. give url like: "http://www.amazon.de/Apple-iPad-WiFi-UMTS-64GB/dp/B003G3UULC/ref=sr_1_5":http://www.amazon.de/Apple-iPad-WiFi-UMTS-64GB/dp/B003G3UULC/ref=sr_1_5) it works. Can someone tell me what is the problem, or it is an issue from QT?

      [edit: fixed hyperlink / $chetankjain]

      1 Reply Last reply Reply Quote 0
      • ?
        Guest last edited by

        Hi HayKG,

        just tried with Qt 4.7 RC on Win XP and some simple code using QWebView. Both the links worked fine. Can you post your code here, which platform are u on?

        1 Reply Last reply Reply Quote 0
        • B
          benjamin.poulain last edited by

          Same here, no problem with Qt 4.7.x (on Linux x86_64).

          1 Reply Last reply Reply Quote 0
          • H
            HaykG last edited by

            I've tried on following platforms:

            • Meego
            • Ubuntu 10.4

            The code is simple:

            @

            #include <QWebView>
            #include <QApplication>

            int main(int argc, char** argv)

            {
            QApplication app(argc, argv);
            QWebView w;
            w.load(QUrl("http://www.amazon.de/Apple-iPad-WiFi-UMTS-64GB/dp/B003G3UULC/ref=sr_1_5?ie=UTF8&s=computers&qid=1283782588&sr=8-5"));
            w.show();
            return app.exec();
            }

            @

            1 Reply Last reply Reply Quote 0
            • H
              HaykG last edited by

              On Meego vs Qt 4.6.2

              On Ubuntu 10.4 vs Qt 4.7.0-beta2

              1 Reply Last reply Reply Quote 0
              • B
                benjamin.poulain last edited by

                I tried your example and it fails randomly. It could be amazon disconnecting for some reason (it would be interesting to change the user agent and see if it can still be reproduced), or it could be a bug in QNetworkAccessManager.

                If you can reproduce it with another user agent, please open a bug on "http://bugreports.qt.nokia.com/":http://bugreports.qt.nokia.com/ for the "Network" component.

                1 Reply Last reply Reply Quote 0
                • H
                  HaykG last edited by

                  I changed the user-agent of my browser. Returned the Google-Chrome's user-agent. It didn't work even in this way. But if I copy this link to chromium browser it works perfectly there.

                  Also guys please try "www.linguatv.com":www.linguatv.com. This one actually is being loaded but nothing is being displayed. I tried with other browsers they work, only Qt-based browsers are not working.

                  1 Reply Last reply Reply Quote 0
                  • B
                    benjamin.poulain last edited by

                    Yep, that looks like a but in the network stack of Qt. Again the resources is never loaded by QNetworkAccessManager. You should make a bug report with this information.

                    That also explains why I had no problem with amazon. I am using Rekonq, which does not use QNetworkAccessManager but KIO.

                    1 Reply Last reply Reply Quote 0
                    • H
                      HaykG last edited by

                      I've opened an issue. And what about the second link ("www.linguatv.com":www.linguatv.com)?

                      1 Reply Last reply Reply Quote 0
                      • B
                        benjamin.poulain last edited by

                        It could be related, the same kind of URL is given in the iframe. You can add it in comment if you are confident it is the same issue, or create a second bug report.

                        1 Reply Last reply Reply Quote 0
                        • ?
                          Guest last edited by

                          at least on winxp and qt 4.7, the amazon links mentioned here load just fine for me... no random issues there, tried multiple times.

                          But linguatv is quite slow (even in other browsers), and on webview only the background gradient was visible even after few minutes.. gave up

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