M cfnetwork.diff
git-svn-id: http://svn.telesphoreo.org/trunk@229
514c082c-b64e-11dc-b46d-
3d985efe055d
hm = (CFHTTPMessageRef) CFReadStreamCopyProperty(rs, kCFStreamPropertyHTTPResponseHeader);
sc = CFHTTPMessageGetResponseStatusCode(hm);
hm = (CFHTTPMessageRef) CFReadStreamCopyProperty(rs, kCFStreamPropertyHTTPResponseHeader);
sc = CFHTTPMessageGetResponseStatusCode(hm);
+ if (sc == 301 || sc == 302) {
sr = CFHTTPMessageCopyHeaderFieldValue(hm, CFSTR("Location"));
if (sr == NULL) {
Fail();
sr = CFHTTPMessageCopyHeaderFieldValue(hm, CFSTR("Location"));
if (sr == NULL) {
Fail();
hm = (CFHTTPMessageRef) CFReadStreamCopyProperty(rs, kCFStreamPropertyHTTPResponseHeader);
sc = CFHTTPMessageGetResponseStatusCode(hm);
hm = (CFHTTPMessageRef) CFReadStreamCopyProperty(rs, kCFStreamPropertyHTTPResponseHeader);
sc = CFHTTPMessageGetResponseStatusCode(hm);
+ if (sc == 301 || sc == 302) {
sr = CFHTTPMessageCopyHeaderFieldValue(hm, CFSTR("Location"));
if (sr == NULL) {
Fail();
sr = CFHTTPMessageCopyHeaderFieldValue(hm, CFSTR("Location"));
if (sr == NULL) {
Fail();