Unsolved QNetworkAccessManager doesn't post request in case of large file
-
@SGaist ps the error with this web server is not the same. This time I can see the post request from wireshark but the client receives Error code: 99 Unknown error. The progress still doesn't go up to 50 (100%) but it does with the small.txt
-
Your sample Python server does not handle post requests properly and kills the connection early.
Once that fixed, big files are properly uploaded.
Now the question is:
auto prog = sent*100/(2*static_cast<double>(total));
What does that 2 do in there ? Mathematically, you can't reach 100% with that equation unless you send twice the number of bytes.
-
@SGaist That 2 doesn't matter, I'm not expecting it to go to 100 just 50 I just forgot to remove it for this sandbox project.
I'll look into the python server but that's not actually the server I used for testing. The one I used is proven to be working with another client but I cannot attach that. -
@SGaist okay by changing the server it does seem to work but now I'm completely lost because the server I used before works too just not with my client...
-
@Robert-Winke said in QNetworkAccessManager doesn't post request in case of large file:
okay by changing the server it does seem to work
I am just curious to know what to you have changed in server code. At first look, I can not see what wrong with it.
Can you please show me the changes? -
@KroMignon I uploaded the new server code in the same zip