Re: POST message
Re: POST message
- Subject: Re: POST message
- From: "Jan E. Schotsman" <email@hidden>
- Date: Thu, 27 Oct 2005 11:47:43 +0200
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"?
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.
That would happen if the variable offset were a 32-bit value.
I suppose I reasoned that printf usually displays a value correctly if you set the format too wide. And I always use %lld.
Jan.
_______________________________________________
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