It might be a good idea to add these, as the embedded ecos webserver doesn't like it when they are not there. And all regular browswers inculde them and the RFC requires them:
In zm_remote_camera.cpp:HTTP/1.0 defines the octet sequence CR LF as the end-of-line marker for all protocol elements except the Entity-Body (see Appendix B for tolerant applications). The end-of-line marker within an Entity-Body is defined by its associated media type, as described in Section 3.6.
CRLF = CR LF
Code: Select all
if ( !request[0] )
{
snprintf( request, sizeof(request), "GET %s HTTP/%s\r\n", path, (const char *)config.Item( ZM_HTTP_VERSION ) );
snprintf( &(request[strlen(request)]), sizeof(request)-strlen(request), "User-Agent: %s/%s\r\n", (const char *)config.Item( ZM_HTTP_UA ), ZM_VERSION );
snprintf( &(request[strlen(request)]), sizeof(request)-strlen(request), "Host: %s\r\n", host );
snprintf( &(request[strlen(request)]), sizeof(request)-strlen(request), "Connection: Keep-Alive\r\n" );
if ( auth )
{
snprintf( &(request[strlen(request)]), sizeof(request)-strlen(request), "Authorization: Basic %s\r\n", auth64 );
}
snprintf( &(request[strlen(request)]), sizeof(request)-strlen(request), "\r\n" );
Debug( 2, ( "Request: %s", request ));
}
[/quote]