Pregunta

Good day!

I am having a wierd problem: QNAM sends my SECOND request twice. I am not sure how to reproduce the problem (what are actual prerequisites), but I have the code that will demonstrate it 100% of the time. I can also provide screenshot of HTTP sniffer catching those requests. You can see that the request I send at code line 42 effectively gets duped, but the one before and one after (not shown) are sent fine (once)...

My problem is similar to the one shown in this question. However... Main differences between that question and mine are:

  • I am using QNAM in an asynchronous manner with the help of Qt's Signals and slots
  • I am sending post requests instead of get.

What could be the problem? Is there any way to make it work as it's supposed to?

Thanks in advance! If you need additional info just ask :)

¿Fue útil?

Solución

This can happen if the server doesn't return any content in the response. If you control the server, you can add a workaround to return some dummy content.

I just had this issue and after sending down one character in the response, I no longer see the request sent twice. This was with a BlackBerry 10 (QT) hitting an iOS device running Mongoose as the embedded server.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top