[Qt-embedded-interest] Error 301 (QNetworkReply::ProtocolUnknownError) for requests running under embedded Linux
Daniel Bowen
qtmailinglist1 at bowensite.com
Sun Jun 14 10:22:35 CEST 2009
I'm having trouble using QNetworkRequest under embedded Linux. It's an ARM
9 core - arm_v5t_le. I've built Qt for Embedded Linux 4.5.1 LGPL flavor for
the platform. We're using MontaVista 5.
Essentially, QNetworkReply::error() always is giving me an error 301
(QNetworkReply::ProtocolUnknownError) for any URL I try to do a "GET" on.
The same code works fine on Windows and on x86 Linux (Ubuntu 9.04). On
Windows, I'd gotten error 301 also when I first tried hitting an https:
address, which I soon found that I needed to build OpenSSL and rebuild Qt to
solve. I have OpenSSL 0.9.8 for both my Linux-x86 and Linux-arm_v5t_le
environments if that matters (the Linux-arm_v5t_le OpenSSL is a little bit
older - 0.9.8e).
However, with this problem under embedded Linux, I get the
ProtocolUnknownError whether I hit an http: address or a https: address.
I'm including full source for a test app that works on Windows and Linux
x86, but does not work under my embedded Linux environment. It's a console
app that takes one command line argument - a URL for the resource to
download. So it can be run with something like
test http://doc.qtsoftware.com/4.5/how-to-learn-qt.html
When I'm at the console on the embedded Linux box, I can ping things just
fine. I can even run wget, and that downloads things just fine. But the
test app (as well as the original code I was trying) always gets
ProtocolUnknownError.
What things can I try, or what might I be missing? Any ideas would be
appreciated!
Thanks!
-Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-embedded-interest/attachments/20090614/cfbc9ac5/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: main.cpp
Url: http://lists.qt.nokia.com/pipermail/qt-embedded-interest/attachments/20090614/cfbc9ac5/attachment.pl
More information about the Qt-embedded-interest
mailing list