cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: RTSP Command not completing even though data has been received - "additional stuff not fine transfer.c:1037 0 0"

From: Tinus van den Berg <tinusvdb_at_cat.co.za>
Date: Mon, 16 Apr 2012 15:24:03 +0200

On 2012/04/16 03:14 PM, jeremy_at_fastmail.co.uk wrote:
> 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
>
Hi

Due to the fact that curl did not have RTSP authentication support at
the time we started using it, we implemented our own authentication
portion and set the authentication header with curl_slist_append. It
still does not change the fact that the request does not seem to finish.
I would expect to see similar results with the code you mention above.

To not specify authentication is not an option

Tinus
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-16