Results 1 to 3 of 3

Thread: A way for qt to read the string returned from my php script on the web

  1. #1
    Join Date
    Apr 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default A way for qt to read the string returned from my php script on the web

    Hello, I am using php 5.5 encryption for my mysql database and I am trying to send the password the user enters to the php script and see if it matches the hash in the database. I am not sure of the best way to do this. I was looking at using QNetworkAccessManager but how would I send what the user writes to the php script on the web? Any other suggestions or comments would be greatly appreciated. Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: A way for qt to read the string returned from my php script on the web

    If the user writes something on the web, i.e. in a web browser, then this browser alone is going to get the response for that request.
    A TCP connection and the HTTP connection on top are a two sided channel, only the two parties involved (browser and web server) have access to the data (especially if the connection is encrypted).

    In case your program is the client, e.g. using QNetworkAccessManager, then it will receive the response to the request it made.

    Cheers,
    _

  3. #3
    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: A way for qt to read the string returned from my php script on the web

    You can use QNetworkAccessManager::post to send an encrypted HTTP request (https://example.com/your.php) and pass the data along with the request by passing a QByteArray as the 2nd parameter to QNetworkAccessManager::post.

Similar Threads

  1. how can i read a specific string from file?
    By sajastu in forum Qt Programming
    Replies: 5
    Last Post: 17th January 2015, 00:30
  2. XML, read file, string to enum.....
    By Speerfish in forum Qt Programming
    Replies: 1
    Last Post: 14th April 2014, 11:34
  3. Read a device driver/Script
    By Juliano.eng in forum Newbie
    Replies: 6
    Last Post: 26th March 2011, 04:40
  4. setText using a string read from file
    By Splatify in forum Newbie
    Replies: 3
    Last Post: 28th October 2010, 16:39
  5. Replies: 2
    Last Post: 23rd June 2007, 10: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.