To fix your "-1" response I suggest you send a valid mobilenumber and password or fix the logic of your web application. That is the response I get with a rubbish mobilenumber and password using wget (i.e. nothing to do with Qt):
$ wget -S --post-data='mobilenumber=0123456789&password=rubbish' http://taxinomics.com/mobile/Login.php
--2011-06-17 07:58:25-- http://taxinomics.com/mobile/Login.php
Resolving taxinomics.com (taxinomics.com)... 173.205.127.22
Connecting to taxinomics.com (taxinomics.com)|173.205.127.22|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Thu, 16 Jun 2011 21:58:25 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: PHPSESSID=cc6f1b1c2580586dda06ca681a5988af; path=/
Cache-Control: public
Connection: close
Content-Type: text/html; charset=utf-8
Length: unspecified [text/html]
Saving to: `Login.php'
[ <=> ] 2 --.-K/s in 0s
2011-06-17 07:58:26 (684 KB/s) - `Login.php' saved [2]
$ cat Login.php
-1
$ wget -S --post-data='mobilenumber=0123456789&password=rubbish' http://taxinomics.com/mobile/Login.php
--2011-06-17 07:58:25-- http://taxinomics.com/mobile/Login.php
Resolving taxinomics.com (taxinomics.com)... 173.205.127.22
Connecting to taxinomics.com (taxinomics.com)|173.205.127.22|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Thu, 16 Jun 2011 21:58:25 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: PHPSESSID=cc6f1b1c2580586dda06ca681a5988af; path=/
Cache-Control: public
Connection: close
Content-Type: text/html; charset=utf-8
Length: unspecified [text/html]
Saving to: `Login.php'
[ <=> ] 2 --.-K/s in 0s
2011-06-17 07:58:26 (684 KB/s) - `Login.php' saved [2]
$ cat Login.php
-1
To copy to clipboard, switch view to plain text mode
You don't need the '?' and trailing space at the end of the URL: your URL is "http://taxinomics.com/mobile/Login.php?%20" (although this does not seem to be breaking it).
You can use QUrl to build the payload with due care for encoding of values. What happens at the moment if the password contains an '&'?
Bookmarks