[Interest] HTTPS with Qt
Gian Maxera
gmaxera at gmail.com
Thu Oct 6 15:55:32 CEST 2016
In the Qt app you just need to change http to https
No more.
> On 6 Oct 2016, at 14:51, Larry Martell <larry.martell at gmail.com> wrote:
>
> I have a Qt app that sends requests to a server like this:
>
> QString urlStr = "http://foo.bar.com/baz";
> QUrl transferUrl(urlStr);
> QNetworkRequest request(transferUrl);
> networkReply = networkManager.get(request);
>
> We need to change this to use HTTPS. We have the needed certs on the
> server. Can someone please point me at some docs that will help me get
> the Qt app modified to work with HTTPS. From what I've been able to
> find I need to install a root certificate, but I don't know what that
> means or how to do it. Also, what changes do I have to make in the Qt
> code? Is it simply changing http to https? From a browser that is all
> I had to do, presumedly because the browser already had the root
> certificate. Any pointers will be greatly appreciated.
>
> Thanks!
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list