curl-library
Re: RTSP Command not completing even though data has been received - "additional stuff not fine transfer.c:1037 0 0"
Date: Mon, 16 Apr 2012 14:14:01 +0100
On Mon, Apr 16, 2012, at 07:11, Tinus van den Berg wrote:
> On 2012/04/15 02:42 PM, Daniel Stenberg wrote:
> > On Thu, 12 Apr 2012, Tinus van den Berg wrote:
> >
> >> Does anyone know what we could do differently ?
> >
> > I've not even looked at this yet so I don't know. But I'm not an RTSP
> > expert.
> >
> Would it help if I provided you with access to this camera ? Would
> REALLY like you to have a look ...
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
Hi, not sure about the significance of '* additional stuff not fine
transfer.c:1037: 0 0'. But, '< RTSP/1.0 401 Unauthorized' means your
camera wants a username and password. Try changing
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION,
write_header);
to
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION,
write_header);
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_easy_setopt(curl, CURLOPT_USERNAME, username);
curl_easy_setopt(curl, CURLOPT_PASSWORD, password);
However, for that code to work for me I had to apply this patch
http://curl.haxx.se/mail/lib-2011-06/0004.html to my libcurl.
Alternatively, just change your camera settings to allow guest access.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-16