Results 1 to 4 of 4

Thread: Need SSL based mock sever to test QNetworkAccessManager::post() with ssl

  1. #1
    Join Date
    Apr 2014
    Posts
    125
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Question Need SSL based mock sever to test QNetworkAccessManager::post() with ssl

    Hello;

    I'm trying to test QNetworkAccessManager:ost(). The client side is done, ssl certificate and keys have been incorporated in the client app. Any idea on where I can find a mock server able to incorporate my server SSL certificate and keys?

    Thanks;

    Mut

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Need SSL based mock sever to test QNetworkAccessManager::post() with ssl

    You can readily install an apache http server on your laptop/desktop for testing. Have you considered that?
    I write the best type of code possible, code that I want to write, not code that someone tells me to write!

  3. #3
    Join Date
    Apr 2014
    Posts
    125
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Default Re: Need SSL based mock sever to test QNetworkAccessManager::post() with ssl

    Thanks for the reply.

    Install apache http server: any link where details are provided for my case (suse embbed linux)?

    Also, it is possible to write it my self in C++?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Need SSL based mock sever to test QNetworkAccessManager::post() with ssl

    Your application might live in an embedded Linux environment but your fake web server does not have to. Install Apache on any network machine the embedded board can talk to. You will have to fake the web application hosted on the web server(PHP, Perl, whatever) if you expect something in response to your client's request. For automated testing you might just use a CGI target that returns the entire request in the body of a response.

  5. The following user says thank you to ChrisW67 for this useful post:

    jefftee (2nd October 2015)

Similar Threads

  1. Again QNetworkAccessManager POST and PHP
    By ZSWASW in forum Qt Programming
    Replies: 2
    Last Post: 2nd March 2014, 19:38
  2. QNetworkAccessManager post
    By januszmk in forum Newbie
    Replies: 2
    Last Post: 13th April 2012, 09:01
  3. POST and QNetworkAccessManager
    By hakermania in forum Newbie
    Replies: 1
    Last Post: 13th February 2011, 00:05
  4. Replies: 6
    Last Post: 25th May 2010, 10:42
  5. QNetworkAccessManager::post() never returns
    By danc81 in forum Qt Programming
    Replies: 2
    Last Post: 21st October 2009, 09:13

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.