QNetworkaccessmanager - post
-
Ok thank you but it still doesn't work as i expected.
Same problems and no update of the webpage.
Maybe I have to do it in another way becaus when I use ex. Wireshark I dont see the incoming values in my postoperation.
Strange. -
What if you try to make a GET request? Just to see if the data is sent or not.
-
I got the errorcode 302 unknown error when i do my post but it changes the value in the textbox when i update the webpage and if I send one value?
When i changed to get operation I got the errorcode 200 == “OK”
-
I would start doing a post request with another tool, let say wget, and see how the request must be done and then reproduce it in Qt.
-
This can't be a problem in qt but I don't know how to do it properly.
It must be someone else who have done this before.
Maybe I have to use Qhttp instead
-
[quote author="toho71" date="1324560334"
Maybe I have to use Qhttp instead
[/quote]You will run into the very same problems with constructing the URL and/or preparing the post data. You will need to understand HTTP protocol basics before using it in a class.
-
I'm sorry but after reading more about this subject I'm still not able to go further so If some nice person would tell me a little more how to take the next step so I got this code working with Post request it would be great.
-
Do you have the exact list of parameters as they have to be sent to the server to perform a correct post request? How is your code working now and what is the exact problem?
-
I have a list in a table and when I check (Chkbox) some rows in that table I got a list of numbers that I want to post to a list on the server. It works with one value when I refresh the browserwindow but not with more values.
//T
-
I suspect your cgi/web application does not allow you to set multiple values at once, or has a special formatting for such values. Do you have the specifics of the parameters your web application is accepting? Otherwise you have to guess and try.
-
Ok thank you for the tip.