Yiks. I was hoping that QHttp could handle it.

Any recommendations on how to deal with this? I thought of connecting to the QHttp signal readyRead(), but if QT can't see the header in the packet below
because the packet also contains MJpeg data, it may not fire the readyRead(). I know
that signal readyRead() does not fire, so would readyRead() not fire?

If readRead works, then I could parse the TCP segment data and look for the
HTTP 200 OK. But if I find it, I'm not sure how I'd tell QHttp to stop the GET and proceed
with the POST it has in its queue.

The QT documentation says

Qt Code:
  1. This signal is emitted when processing the request identified by id has finished. error is true if an error occurred during the processing; otherwise error is false.
To copy to clipboard, switch view to plain text mode 

What is "processing the request" for a HTTP GET? (what is the event QHttp is looking for?)

Thanks


Qt Code:
  1. 0000 00 23 ae 12 da a9 00 40 8c 94 3c 65 08 00 45 00 .#.....@..<e..E.
  2. 0010 05 dc 62 6c 40 00 40 06 52 d0 a9 fe b1 54 a9 fe ..bl@.@.R....T..
  3. 0020 7a 8e 00 50 0a a6 0b 2b b8 6e 2f 21 e8 1b 50 10 z..P...+.n/!..P.
  4.  
  5. TCP segment data starts here.
  6. ||
  7. V
  8. ????? Why can't QHTTP see this HTTP response???????
  9. 0030 19 20 c9 fc 00 00 48 54 54 50 2f 31 2e 30 20 32 . ....HTTP/1.0 2
  10. 0040 30 30 20 4f 4b 0d 0a 43 61 63 68 65 2d 43 6f 6e 00 OK..
  11. Cache-Con
  12. 0050 74 72 6f 6c 3a 20 6e 6f 2d 63 61 63 68 65 0d 0a trol: no-cache..
  13. 0060 50 72 61 67 6d 61 3a 20 6e 6f 2d 63 61 63 68 65 Pragma: no-cache
  14. 0070 0d 0a 45 78 70 69 72 65 73 3a 20 54 68 75 2c 20 ..Expires: Thu,
  15. 0080 30 31 20 44 65 63 20 31 39 39 34 20 31 36 3a 30 01 Dec 1994 16:0
  16. 0090 30 3a 30 30 20 47 4d 54 0d 0a 43 6f 6e 6e 65 63 0:00 GMT..Connec
  17. 00a0 74 69 6f 6e 3a 20 63 6c 6f 73 65 0d 0a 43 6f 6e tion: close..Con
  18. 00b0 74 65 6e 74 2d 54 79 70 65 3a 20 6d 75 6c 74 69 tent-Type: multi
  19. 00c0 70 61 72 74 2f 78 2d 6d 69 78 65 64 2d 72 65 70 part/x-mixed-rep
  20. 00d0 6c 61 63 65 3b 20 62 6f 75 6e 64 61 72 79 3d 6d lace; boundary=m
  21. 00e0 79 62 6f 75 6e 64 61 72 79 0d 0a 0d 0a 2d 2d 6d yboundary....--m
  22. 00f0 79 62 6f 75 6e 64 61 72 79 0d 0a 43 6f 6e 74 65 yboundary..Conte
  23. 0100 6e 74 2d 54 79 70 65 3a 20 69 6d 61 67 65 2f 6a nt-Type: image/j
  24. 0110 70 65 67 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e peg..Content-Len
  25. 0120 67 74 68 3a 20 31 32 30 36 33 0d 0a 0d 0a ff d8 gth: 12063......
  26. 0130 ff e0 00 10 4a 46 49 46 00 01 02 00 00 0b 00 0a ....JFIF........
  27. 0140 00 00 ff fe 00 0f 0a 01 4a 16 ce c2 4a 4a 16 ce ........J...JJ.
To copy to clipboard, switch view to plain text mode