Re: Empty input file on 1.19.0
Posted: Fri Mar 19, 2004 7:28 pm
Hmm, can you post a longer stretch of debug if you have it?
I think the HT is the beginning of 'HTTP/1.0 200 OK' which is the first line that should be sent.
This is the output I get from the camera I have found, firmware 2.31 again.
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Connected to host, socket = 18]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Request sent]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Expecting 94 bytes]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Read 94 bytes]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB4 [Captured header (80 bytes): 'HTTP/1.0 200 OK^M Content-Type: multipart/x-mixed-replace;boundary=myboundary^M ^M ']
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Got status '200' (OK), http version 1.0]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Got content type 'multipart/x-mixed-replace' ]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Got content boundary 'myboundary']
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Unable to extract subheader from stream, retrying]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Expecting 1380 bytes]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Read 1380 bytes]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (42 bytes):'--myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Expecting 2760 bytes]
Mar 19 19:17:30 shuttle52 zmc-m14[4104]: DB3 [Read 2760 bytes]
Mar 19 19:17:30 shuttle52 zmc-m14[4104]: DB3 [Expecting 19320 bytes]
Mar 19 19:17:31 shuttle52 zmc-m14[4104]: DB3 [Read 8192 bytes]
Mar 19 19:17:31 shuttle52 zmc-m14[4104]: DB3 [Read 8192 bytes]
Mar 19 19:17:31 shuttle52 zmc-m14[4104]: DB3 [Read 2936 bytes]
Mar 19 19:17:31 shuttle52 zmc-m14[4104]: DB3 [Got end of image, content-length = 12928]
Mar 19 19:17:31 shuttle52 zmc-m14[4104]: DB3 [Returning 12928 (23432) bytes of captured content]
Mar 19 19:17:32 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (46 bytes):'^M ^M --myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Expecting 78218 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 8192 bytes]
Mar 19 19:17:34 shuttle52 last message repeated 8 times
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 4490 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got end of image, content-length = 12849]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Returning 12849 (88676) bytes of captured content]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (46 bytes):'^M ^M --myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Expecting 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got end of image, content-length = 12873]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Returning 12873 (77161) bytes of captured content]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (46 bytes):'^M ^M --myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Expecting 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got end of image, content-length = 12930]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Returning 12930 (65622) bytes of captured content]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (46 bytes):'^M ^M --myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Expecting 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got end of image, content-length = 12877]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Returning 12877 (54026) bytes of captured content]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (46 bytes):'^M ^M --myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Expecting 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got end of image, content-length = 12944]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Returning 12944 (42483) bytes of captured content]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (46 bytes):'^M ^M --myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Expecting 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got end of image, content-length = 12915]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Returning 12915 (30873) bytes of captured content]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (46 bytes):'^M ^M --myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Expecting 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 1380 bytes]
Phil,
I think the HT is the beginning of 'HTTP/1.0 200 OK' which is the first line that should be sent.
This is the output I get from the camera I have found, firmware 2.31 again.
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Connected to host, socket = 18]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Request sent]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Expecting 94 bytes]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Read 94 bytes]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB4 [Captured header (80 bytes): 'HTTP/1.0 200 OK^M Content-Type: multipart/x-mixed-replace;boundary=myboundary^M ^M ']
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Got status '200' (OK), http version 1.0]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Got content type 'multipart/x-mixed-replace' ]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Got content boundary 'myboundary']
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Unable to extract subheader from stream, retrying]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Expecting 1380 bytes]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Read 1380 bytes]
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (42 bytes):'--myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:29 shuttle52 zmc-m14[4104]: DB3 [Expecting 2760 bytes]
Mar 19 19:17:30 shuttle52 zmc-m14[4104]: DB3 [Read 2760 bytes]
Mar 19 19:17:30 shuttle52 zmc-m14[4104]: DB3 [Expecting 19320 bytes]
Mar 19 19:17:31 shuttle52 zmc-m14[4104]: DB3 [Read 8192 bytes]
Mar 19 19:17:31 shuttle52 zmc-m14[4104]: DB3 [Read 8192 bytes]
Mar 19 19:17:31 shuttle52 zmc-m14[4104]: DB3 [Read 2936 bytes]
Mar 19 19:17:31 shuttle52 zmc-m14[4104]: DB3 [Got end of image, content-length = 12928]
Mar 19 19:17:31 shuttle52 zmc-m14[4104]: DB3 [Returning 12928 (23432) bytes of captured content]
Mar 19 19:17:32 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (46 bytes):'^M ^M --myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Expecting 78218 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 8192 bytes]
Mar 19 19:17:34 shuttle52 last message repeated 8 times
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 4490 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got end of image, content-length = 12849]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Returning 12849 (88676) bytes of captured content]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (46 bytes):'^M ^M --myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Expecting 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got end of image, content-length = 12873]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Returning 12873 (77161) bytes of captured content]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (46 bytes):'^M ^M --myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Expecting 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got end of image, content-length = 12930]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Returning 12930 (65622) bytes of captured content]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (46 bytes):'^M ^M --myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Expecting 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got end of image, content-length = 12877]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Returning 12877 (54026) bytes of captured content]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (46 bytes):'^M ^M --myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Expecting 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got end of image, content-length = 12944]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Returning 12944 (42483) bytes of captured content]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (46 bytes):'^M ^M --myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Expecting 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got end of image, content-length = 12915]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Returning 12915 (30873) bytes of captured content]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB4 [Captured subheader (46 bytes):'^M ^M --myboundary^M Content-Type: image/jpeg^M ^M ']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Got subcontent type 'image/jpeg']
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Expecting 1380 bytes]
Mar 19 19:17:34 shuttle52 zmc-m14[4104]: DB3 [Read 1380 bytes]
Phil,