• September 16, 2019, 05:36:43 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: HTTP Response is not as stated in manual  (Read 1825 times)

krisna_wisnu

  • Level 1 Member
  • *
  • Posts: 1
HTTP Response is not as stated in manual
« on: March 21, 2014, 03:48:46 PM »

hey there,

I am using DCS 5020L and I am planning to use LabVIEW to get the images. So I got this document:
IP Camera CGI Interface
(DCS-931L/DCS-933L/DCS-5020L)
Version 2.01

from: http://forums.dlink.com/index.php?topic=57304.0

In page 6 of that document, it stated that:
2.2.   Response messages
While IP camera receives request message from user, it will do the related action then output result as response message:
HTTP/1.0 <HTTP code> <HTTP text><CRLF>
Content-Type: text/html<CRLF>
Content-Length: <body length><CRLF>
<CRLF>
<parameter>=<values>


I bold the Content-Length, because when I send several commands, like GET /isystem.cgi HTTP/1.0 for example, I got this response:

HTTP/1.0 200 OK
Server: alphapd
Date: Sat Jan  1 00:00:05 2000
Pragma: no-cache
Cache-Control: no-cache
Content-type: text/plain

CameraName=DCS-5020L
Location=
Model=DCS-5020L
FirmwareVersion=1.03 (2014-01-22)
MACAddress=28 10 7B 1B 30 A6
IPAddress=192.168.0.3
EthernetLink=Yes
EthernetSpeed=100M bps
EthernetDuplex=Full Duplex

Notice that there is no Content-Length.

I have tried other commands and it return without Content-Length. Is this a bug or I have missed some points?

Thanks
Logged