[Qt-interest] QNetworkRequest not successful with GET

Thomas Ehrnhoefer thomas.ehrnhoefer at tasktop.com
Tue Sep 13 22:00:14 CEST 2011


Ok, I might have solved this.
There were actually SSL errors (certificate expired) when connecting to "
https://sso.developer.nokia.com/login".
Once I ignore SSL errors (not ideal of course), it works.

Thanks for your help

Thomas

On Tue, Sep 13, 2011 at 12:06 PM, Thomas Ehrnhoefer <
thomas.ehrnhoefer at tasktop.com> wrote:

> Btw,
> QSslSocket::supportsSsl()
> return true
>
>
> On Tue, Sep 13, 2011 at 11:44 AM, Thomas Ehrnhoefer <
> thomas.ehrnhoefer at tasktop.com> wrote:
>
>> I made an error compiling Qt (-L C:\openssl-win32\Lib instead of -L
>> C:\openssl-win32).
>>
>> Now, in my development environment, I can make calls to QNetworkRequest's
>> setSslConfiguration (which wasn't even in my header before due to missing
>> openSSL).
>> It compiles now (and I added "login.setSslConfiguration(QSslConfiguration
>> ::defaultConfiguration());", which probably is redundant anyway.
>>
>> However it still wont get an answer from https:// locations.
>>
>> The thing about the two libraries you suggested: should I just copy them?
>> I tried to copy them into the [compilerd qtCreator]\bin folder, but that
>> didn't change anything
>>
>>
>> On Tue, Sep 13, 2011 at 11:01 AM, NoRulez <norulez at me.com> wrote:
>>
>>> The two files are in the bin folder I think.
>>>
>>> Best Regards
>>>
>>> Am 13.09.2011 um 18:34 schrieb Constantin Makshin <cmakshin at gmail.com>:
>>>
>>> These 2 libraries are parts of OpenSSL and have nothing to do with Qt
>>> [Creator] compilation.
>>> On Sep 13, 2011 7:48 PM, "Thomas Ehrnhoefer" <<thomas.ehrnhoefer at tasktop.com>
>>> thomas.ehrnhoefer at tasktop.com> wrote:
>>> > No, I don't find them anywhere on my dev environment.
>>> > Are they created by the Qt build or the Qt Creator build? Trying to
>>> find
>>> > where I went wrong...
>>> >
>>> > On Tue, Sep 13, 2011 at 8:43 AM, NoRulez < <norulez at me.com>
>>> norulez at me.com> wrote:
>>> >
>>> >> Did you have libeay32.dll and ssleay32.dll in the folder where the
>>> >> executable is?
>>> >>
>>> >> Best Regards
>>> >>
>>> >> Am 13.09.2011 um 17:39 schrieb Thomas Ehrnhoefer <
>>> >> <thomas.ehrnhoefer at tasktop.com>thomas.ehrnhoefer at tasktop.com>:
>>> >>
>>> >> I recompiled Qt (adding -openssl -I C:\openssl-win32\Include -L
>>> >> C:\openssl-win32\Lib to the configure call), and then recompiled Qt
>>> Creator.
>>> >>
>>> >> But my calls to https:// are still not working.
>>> >>
>>> >> Is there any way I can check if the Qt compilarion in regards to SSL
>>> is ok?
>>> >>
>>> >> Btw, I followed those steps:
>>> >> < <http://stackoverflow.com/questions/3516143/qt-ssl-support-missing>
>>> http://stackoverflow.com/questions/3516143/qt-ssl-support-missing>
>>> >> <http://stackoverflow.com/questions/3516143/qt-ssl-support-missing>
>>> http://stackoverflow.com/questions/3516143/qt-ssl-support-missing
>>> >>
>>> >> On Mon, Sep 12, 2011 at 11:04 AM, Thiago Macieira < <<thiago at kde.org>
>>> thiago at kde.org>
>>> >> <thiago at kde.org>thiago at kde.org> wrote:
>>> >>
>>> >>> On Monday, 12 de September de 2011 09:13:43 Thomas Ehrnhoefer wrote:
>>> >>> > appears this is because of OpenSSL being installed. Is it possible
>>> this
>>> >>> is
>>> >>> > the reason why I am having troubles? If so, how can I resolve this?
>>> >>> > I tried to uninstall openSSL, no difference though. Or do I have to
>>> >>> compile
>>> >>> > Qt again after uninstalling OpenSSL?
>>> >>>
>>> >>> Yes, that can be the reason, especially if you're on Windows.
>>> >>>
>>> >>> You need to make sure that OpenSSL is properly installed and can be
>>> found
>>> >>> by
>>> >>> the default means of finding libraries on your system.
>>> >>>
>>> >>> You don't need to recompile the precompiled versions of Qt. If you
>>> >>> compiled it
>>> >>> yourself, then you need to recompile.
>>> >>>
>>> >>> --
>>> >>> Thiago Macieira - thiago (AT) macieira.info - thiago (AT)
>>> >>> < <http://kde.org>http://kde.org> <http://kde.org>kde.org
>>> >>> Software Architect - Intel Open Source Technology Center
>>> >>> PGP/GPG: 0x6EF45358; fingerprint:
>>> >>> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>>> >>>
>>> >>> _______________________________________________
>>> >>> Qt-interest mailing list
>>> >>> < <Qt-interest at qt.nokia.com>Qt-interest at qt.nokia.com><Qt-interest at qt.nokia.com>
>>> Qt-interest at qt.nokia.com
>>> >>> < <http://lists.qt.nokia.com/mailman/listinfo/qt-interest>
>>> http://lists.qt.nokia.com/mailman/listinfo/qt-interest>
>>> >>> <http://lists.qt.nokia.com/mailman/listinfo/qt-interest>
>>> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>>> >>>
>>> >>>
>>> >>
>>> >>
>>> >> --
>>> >> Thomas Ehrnhoefer
>>> >> Software Developer, < <http://tasktop.com>http://tasktop.com><http://tasktop.com>
>>> http://tasktop.com
>>> >>
>>> >> _______________________________________________
>>> >> Qt-interest mailing list
>>> >> <Qt-interest at qt.nokia.com>Qt-interest at qt.nokia.com
>>> >> <http://lists.qt.nokia.com/mailman/listinfo/qt-interest>
>>> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>>> >>
>>> >>
>>> >
>>> >
>>> > --
>>> > Thomas Ehrnhoefer
>>> > Software Developer, <http://tasktop.com>http://tasktop.com
>>>
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at qt.nokia.com
>>> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>>>
>>>
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at qt.nokia.com
>>> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>>>
>>>
>>
>>
>> --
>> Thomas Ehrnhoefer
>> Software Developer, http://tasktop.com
>>
>
>
>
> --
> Thomas Ehrnhoefer
> Software Developer, http://tasktop.com
>



-- 
Thomas Ehrnhoefer
Software Developer, http://tasktop.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110913/2bb5120e/attachment.html 


More information about the Qt-interest-old mailing list