--- HttpRequest/HttpConnection.cpp 2015-05-14 14:21:15.000000000 +0900 +++ ExtHttpRequest/HttpConnection.cpp 2015-10-25 20:32:10.291963400 +0900 @@ -448,8 +448,8 @@ return ERROR_INET; } - // HTTP が OK を返した場合のみファイルセーブを enable にする - if (statusCode == HTTP_STATUS_OK && callback) { + // HTTP が OK/CREATED を返した場合のみファイルセーブを enable にする + if ((statusCode == HTTP_STATUS_OK || statusCode == HTTP_STATUS_CREATED) && callback) { // HTMLをパースして Content-Type からエンコーディングを取得する必要がある bool needParseHtml = _tcsicmp(contentType.c_str(), _T("text/html")) == 0 && encoding.empty(); --- HttpRequest/HttpConnection.h 2015-05-14 14:21:15.000000000 +0900 +++ ExtHttpRequest/HttpConnection.h 2015-10-25 20:32:10.241963300 +0900 @@ -96,8 +96,8 @@ // 認証ヘッダをセットする(addHeader のユーティリティ) void addBasicAuthHeader(const tstring &user, const tstring &passwd) { tstring sendStr = user + _T(":") + passwd; - tstring value = _T("Basic") + base64encode(sendStr.c_str(), sendStr.length()); + tstring value = _T("Basic ") + base64encode(sendStr.c_str(), sendStr.length()); addHeader(_T("Authorization"), value.c_str()); } --- HttpRequest/Main.cpp 2015-05-14 14:21:15.000000000 +0900 +++ ExtHttpRequest/Main.cpp 2015-10-25 20:32:10.281963400 +0900 @@ -468,7 +468,7 @@ } if (size > 0) { inputSize += size; - int percent = (inputLength > 0) ? inputSize * 100 / inputLength : 0; + int percent = (inputLength > 0) ? (ULONGLONG)inputSize * 100 / inputLength : 0; ::PostMessage(hwnd, WM_HTTP_PROGRESS, (WPARAM)this, 0x0100 | percent); } return !canceled; @@ -511,7 +511,7 @@ memcpy(&outputData[outputSize], buffer, size); } outputSize += size; - int percent = (outputLength > 0) ? outputSize * 100 / outputLength : 0; + int percent = (outputLength > 0) ? (ULONGLONG)outputSize * 100 / outputLength : 0; ::PostMessage(hwnd, WM_HTTP_PROGRESS, (WPARAM)this, percent); return !canceled; }