• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: POST message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: POST message


  • Subject: Re: POST message
  • From: Frederick Cheung <email@hidden>
  • Date: Sat, 29 Oct 2005 20:10:29 +0100

On 10/27/05, Jan E. Schotsman <email@hidden> wrote:
>
> On 26-okt-05, at 20:14, Frederick Cheung wrote:
>
> > You might need to have an If-Range header, some servers report it.
> > Does the response have an Accept-Range header in it. If it has
> > Accept-Range: bytes then the server probably supports it, if it has
> > Accept-Range: none then it almost certainly doesn't and if the header
> > is not there anything could be true
>
> No Accept-Range header, I am afraid.
>
> After reading the first bytes I called this:
>
>                                         response        =       CFReadStreamCopyProperty( readStream,
> kCFStreamPropertyHTTPResponseHeader );
>                                         headerValue     =       CFHTTPMessageCopyHeaderFieldValue( response,
> CFSTR("Accept-Range") );
>
> and headerValue was nil.
>
>
> What is the value for an If-Range header?
>
>                 CFHTTPMessageSetHeaderFieldValue( request, CFSTR("If-Range"), ? );
>
> Does it mean "If you support range then here is the range I want" or
> "If you have sent this range please send the next indicated range"?
>

No, it means "use my range header if the file matches this header".
The aim is to avoid having a corrupt file because the file changed in
between your 2 requests.
The syntax is:
If-Range = "If-Range" ":" ( entity-tag | HTTP-date )

Fred
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: POST message (From: "Jan E. Schotsman" <email@hidden>)
 >Re: POST message (From: Frederick Cheung <email@hidden>)
 >Re: POST message (From: Jim Luther <email@hidden>)
 >Re: POST message (From: "Jan E. Schotsman" <email@hidden>)
 >Re: POST message (From: Frederick Cheung <email@hidden>)
 >Re: POST message (From: "Jan E. Schotsman" <email@hidden>)

  • Prev by Date: Re: mount() from Cocoa App
  • Next by Date: Re: Crash in CFReadStreamRead
  • Previous by thread: Macs in an Active Directory environment
  • Next by thread: Crash in CFReadStreamRead
  • Index(es):
    • Date
    • Thread