Re: POST message
Re: POST message
- Subject: Re: POST message
- From: Frederick Cheung <email@hidden>
- Date: Wed, 26 Oct 2005 19:14:49 +0100
On 26 Oct 2005, at 14:56, Jan E. Schotsman wrote:
On 26-okt-05, at 0:38, Jim Luther wrote:
Here's the code to add a "Range" header to message (a variable of
type CFHTTPMessageRef) to get the remainder of a resource starting
at offset (a variable of type off_t):
Thanks. Unfortunately it looks like the server doesn't support the
"range" header field :-(
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
Fred
currentLengthString = CFStringCreateWithFormat
(kCFAllocatorDefault, NULL, CFSTR("bytes=%qd-"), offset);
In XCode the value offset = 8192 becomes a very large number, at
least that is what the number formatter shows. Using %d instead of %
qd results in correct display.
Jan.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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