cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: Question about " Content-lenght "

From: hui <lixiaohui9219_at_126.com>
Date: Wed, 22 Feb 2012 21:10:11 +0800

My app have used CURLOPT_RANGE ( set as "n- "). The VOD resource of the IPTV server ( HTTP 1.1 ) response with " Content-range " and
" Content-Lenght " and Content-Type: video/mp4. I use the same app the VOD resoure can be ask for a particular range of the resource.The server
response with " content-range:xxx-xxx/xxx" . But the TV archive can not be ask for a particular range. Why?

----- Original Message -----
From: <curl-library-request_at_cool.haxx.se>
To: <curl-library_at_cool.haxx.se>
Sent: Wednesday, February 22, 2012 7:00 PM
Subject: curl-library Digest, Vol 78, Issue 37

> Send curl-library mailing list submissions to
> curl-library_at_cool.haxx.se
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-library
> or, via email, send a message with subject or body 'help' to
> curl-library-request_at_cool.haxx.se
>
> You can reach the person managing the list at
> curl-library-owner_at_cool.haxx.se
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of curl-library digest..."
>
>
> Today's Topics:
>
> 1. RE: [PATCH] pop3.c: Fixed drop of final CRLF in EOB checking
> (Daniel Stenberg)
> 2. Re: [PATCH] smtp.c: Fixed an issue with writing postdata
> (Daniel Stenberg)
> 3. Question about " Content-lenght " (hui)
> 4. Re: Question about " Content-lenght " (Daniel Stenberg)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 21 Feb 2012 22:27:42 +0100 (CET)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: RE: [PATCH] pop3.c: Fixed drop of final CRLF in EOB checking
> Message-ID: <alpine.DEB.2.00.1202212226500.5167_at_tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Mon, 20 Feb 2012, Steve Holme wrote:
>
>>> If I understand you correctly, that terminating string should only be
>>> ".\r\n". Right?
>>
>> Pretty much yep. You would need to convert that last LF in the test script
>> to be a CRLF so that the data matches, or convert all newlines in the script
>> to be CRLF, alternatively have RETR_pop3 convert single LF's to CRLF
>> combinations ;-)
>
> Thanks, I edited the test server and two test cases and pushed just now!
>
> --
>
> / daniel.haxx.se
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 21 Feb 2012 23:01:05 +0100 (CET)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: Re: [PATCH] smtp.c: Fixed an issue with writing postdata
> Message-ID: <alpine.DEB.2.00.1202212300510.21914_at_tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Mon, 20 Feb 2012, Steve Holme wrote:
>
>> As such, please find attached an appropriate patch.
>
> Thanks, applied and pushed!
>
> --
>
> / daniel.haxx.se
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 22 Feb 2012 18:52:31 +0800
> From: "hui" <lixiaohui9219_at_126.com>
> To: <curl-library_at_cool.haxx.se>
> Subject: Question about " Content-lenght "
> Message-ID: <003801ccf150$140a7890$0100a8c0_at_fulan78573dc37>
> Content-Type: text/plain; charset="gb2312"
>
> Hi,
> The IPTV server ( HTTP 1.1 ) response have no " Content-range " and " Content-Lenght " and Content-Type: application/octet-binary. Whether I can ask for a particular range of the resource ,so that I can playback the stream in seeking mode?
>
> Thanks!
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://cool.haxx.se/pipermail/curl-library/attachments/20120222/83fca189/attachment-0001.html>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 22 Feb 2012 11:59:56 +0100 (CET)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: Re: Question about " Content-lenght "
> Message-ID: <alpine.DEB.2.00.1202221159370.4464_at_tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Wed, 22 Feb 2012, hui wrote:
>
>> The IPTV server ( HTTP 1.1 ) response have no " Content-range " and "
>> Content-Lenght " and Content-Type: application/octet-binary. Whether I can
>> ask for a particular range of the resource ,so that I can playback the
>> stream in seeking mode?
>
> Try the CURLOPT_RANGE option!
>
> --
>
> / daniel.haxx.se
>
>
> ------------------------------
>
> _______________________________________________
> curl-library mailing list
> curl-library_at_cool.haxx.se
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-library
>
>
> End of curl-library Digest, Vol 78, Issue 37
> ********************************************

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