#include <fsHttpFile.h>

Definition at line 15 of file fsHttpFile.h.
| fsHttpFile::fsHttpFile | ( | ) |
Definition at line 14 of file fsHttpFile.cpp.
References FALSE, INTERNET_FLAG_KEEP_CONNECTION, m_bEnableAutoRedirect, m_bHeadersOnly, m_bUseMultipart, m_dwFlags, m_pszAdditionalHeaders, m_pszCookies, m_pszHttpVersion, m_pszPostData, m_pszReferer, m_uLeftToUpload, NULL, TRUE, and UseHttp11().
| fsHttpFile::~fsHttpFile | ( | ) | [virtual] |
Definition at line 29 of file fsHttpFile.cpp.
References m_pszCookies, m_pszHttpVersion, m_pszPostData, and m_pszReferer.
| fsHttpFile::fsHttpFile | ( | ) |
| virtual fsHttpFile::~fsHttpFile | ( | ) | [virtual] |
| void fsHttpFile::set_Charset | ( | LPCSTR | psz | ) |
Definition at line 798 of file fsHttpFile.cpp.
References m_strCharset.
Referenced by fsInternetURLFile::set_Charset().
| void fsHttpFile::set_EnableAutoRedirect | ( | BOOL | b | ) |
Definition at line 793 of file fsHttpFile.cpp.
References m_bEnableAutoRedirect.
Referenced by fsInternetURLFile::set_EnableAutoRedirect().
| fsString fsHttpFile::GetCookiesFromResponse | ( | ) |
Definition at line 782 of file fsHttpFile.cpp.
References FALSE, HTTP_QUERY_SET_COOKIE, HttpQueryInfo, fsInternetFile::m_hFile, and NULL.
Referenced by fsInternetURLFile::GetCookiesFromResponse().
| void fsHttpFile::set_UseMultipart | ( | BOOL | b | ) |
Definition at line 777 of file fsHttpFile.cpp.
References m_bUseMultipart.
Referenced by fsInternetURLFile::set_UseMultipart().
| fsInternetResult fsHttpFile::Write | ( | LPBYTE | pBuffer, | |
| DWORD | dwSize, | |||
| DWORD * | pdwWritten | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
Definition at line 735 of file fsHttpFile.cpp.
References BOOL, FALSE, fsWinInetErrorToIR(), fsString::GetLength(), HttpEndRequest, InternetWriteFile(), IR_NOTINITIALIZED, IR_S_FALSE, IR_SUCCESS, m_bUseMultipart, fsInternetFile::m_hFile, m_strLabel, m_uLeftToUpload, and NULL.
| fsInternetResult fsHttpFile::OpenEx | ( | LPCSTR | pszFilePath, | |
| UINT64 | uStartPos, | |||
| UINT64 | uUploadPartSize = _UI64_MAX, |
|||
| UINT64 | uUploadTotalSize = _UI64_MAX | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
Definition at line 601 of file fsHttpFile.cpp.
References fsInternetFile::CloseHandle(), _INTERNET_BUFFERSA::dwBufferTotal, _INTERNET_BUFFERSA::dwHeadersLength, _INTERNET_BUFFERSA::dwHeadersTotal, _INTERNET_BUFFERSA::dwStructSize, FALSE, fsWinInetErrorToIR(), fsInternetServerConnection::GetHandle(), fsString::GetLength(), HSR_INITIATE, HttpOpenRequest, HttpSendRequestEx, IgnoreSecurityProblems(), INTERNET_FLAG_KEEP_CONNECTION, INTERNET_FLAG_NO_CACHE_WRITE, InternetWriteFile(), IR_BADURL, IR_INVALIDPARAM, IR_NOTINITIALIZED, IR_SUCCESS, fsString::IsEmpty(), _INTERNET_BUFFERSA::lpcszHeader, LPSTR, m_bUseMultipart, fsInternetFile::m_hFile, fsInternetFile::m_pServer, m_pszAdditionalHeaders, m_pszCookies, m_pszHttpVersion, m_strCharset, m_strLabel, m_uLeftToUpload, NULL, Open_imp(), and SetupProxy().
Referenced by Open().
| void fsHttpFile::SetAdditionalHeaders | ( | LPCSTR | pszAdditionalHeaders | ) |
Definition at line 581 of file fsHttpFile.cpp.
References fsnew, l, m_pszAdditionalHeaders, and SAFE_DELETE_ARRAY.
Referenced by fsInternetURLFile::FormHttpBasicAuthHdr().
| LPCSTR fsHttpFile::GetPostData | ( | ) |
Definition at line 576 of file fsHttpFile.cpp.
References m_pszPostData.
Referenced by fsInternetURLFile::OpenEx().
| LPCSTR fsHttpFile::GetCookies | ( | ) |
Definition at line 571 of file fsHttpFile.cpp.
References m_pszCookies.
Referenced by fsInternetURLFile::OpenEx().
| void fsHttpFile::SetPostData | ( | LPCSTR | pszPostData | ) |
Definition at line 560 of file fsHttpFile.cpp.
References fsnew, m_pszPostData, and SAFE_DELETE_ARRAY.
Referenced by fsInternetURLFile::SetPostData().
| void fsHttpFile::SetCookies | ( | LPCSTR | pszCookies | ) |
Definition at line 549 of file fsHttpFile.cpp.
References fsnew, m_pszCookies, and SAFE_DELETE_ARRAY.
Referenced by fsInternetURLFile::SetCookies().
| BOOL fsHttpFile::get_UseCookie | ( | ) |
Definition at line 544 of file fsHttpFile.cpp.
References INTERNET_FLAG_NO_COOKIES, and m_dwFlags.
Referenced by fsInternetURLFile::OpenEx().
| LPCSTR fsHttpFile::get_Referer | ( | ) |
Definition at line 539 of file fsHttpFile.cpp.
References m_pszReferer.
Referenced by fsInternetURLFile::OpenEx().
| BOOL fsHttpFile::get_UseHttp11 | ( | ) |
Definition at line 534 of file fsHttpFile.cpp.
References m_pszHttpVersion.
Referenced by fsInternetURLFile::OpenEx().
| BOOL fsHttpFile::Is_Secure | ( | ) |
| fsInternetResult fsHttpFile::QuerySize | ( | LPCSTR | pszFilePath | ) | [virtual] |
Reimplemented from fsInternetFile.
Definition at line 236 of file fsHttpFile.cpp.
References fsInternetFile::CloseHandle(), and Open().
| void fsHttpFile::RetreiveHeadersOnly | ( | BOOL | b = TRUE |
) |
| void fsHttpFile::UseCookie | ( | BOOL | bUse | ) |
Definition at line 89 of file fsHttpFile.cpp.
References INTERNET_FLAG_NO_COOKIES, and m_dwFlags.
Referenced by fsInternetURLFile::UseCookie().
| void fsHttpFile::UseSecure | ( | BOOL | bUse | ) |
Definition at line 81 of file fsHttpFile.cpp.
References INTERNET_FLAG_SECURE, and m_dwFlags.
Referenced by fsHttpOpenUrl(), fsHttpFiles::GetList(), fsHttpFiles::GetUrlInfo(), and fsInternetURLFile::OpenEx().
| void fsHttpFile::SetReferer | ( | LPCSTR | pszReferer | ) |
Definition at line 70 of file fsHttpFile.cpp.
References fsnew, m_pszReferer, and SAFE_DELETE_ARRAY.
Referenced by fsInternetURLFile::SetReferer().
| void fsHttpFile::UseHttp11 | ( | BOOL | bUse = TRUE |
) |
Definition at line 62 of file fsHttpFile.cpp.
References m_pszHttpVersion.
Referenced by fsHttpFile(), and fsInternetURLFile::UseHttp11().
| fsInternetResult fsHttpFile::Open | ( | LPCSTR | pszFilePath, | |
| UINT64 | uStartPos | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
Definition at line 43 of file fsHttpFile.cpp.
References OpenEx().
Referenced by fsHttpOpenPath(), and QuerySize().
| fsInternetResult fsHttpFile::Read | ( | LPBYTE | pBuffer, | |
| DWORD | dwToRead, | |||
| DWORD * | pdwRead | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
Definition at line 48 of file fsHttpFile.cpp.
References fsWinInetErrorToIR(), InternetReadFile(), IR_NOTINITIALIZED, IR_SUCCESS, fsInternetFile::m_hFile, and NULL.
Referenced by fsHttpFiles::LoadFile().
| void fsHttpFile::IgnoreSecurityProblems | ( | ) | [protected] |
Definition at line 514 of file fsHttpFile.cpp.
References INTERNET_OPTION_SECURITY_FLAGS, InternetQueryOption, InternetSetOption, LPVOID, fsInternetFile::m_hFile, SECURITY_FLAG_IGNORE_CERT_CN_INVALID, SECURITY_FLAG_IGNORE_CERT_DATE_INVALID, SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTP, SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTPS, SECURITY_FLAG_IGNORE_REVOCATION, SECURITY_FLAG_IGNORE_UNKNOWN_CA, and SECURITY_FLAG_IGNORE_WRONG_USAGE.
Referenced by Open_imp(), and OpenEx().
| fsInternetResult fsHttpFile::Open_imp | ( | LPCSTR | pszFilePath, | |
| UINT64 | uStartPos, | |||
| int | cTryings | |||
| ) | [protected] |
Definition at line 250 of file fsHttpFile.cpp.
References fsInternetFile::CloseHandle(), fsURL::Create(), fsSpeaking::Dialog(), fsSpeaking::DialogHttpResponse(), FALSE, fsHttpStatusCodeToIR(), fsWinInetErrorToIR(), fsInternetServerConnection::GetHandle(), fsInternetFile::GetLastError(), fsInternetServerConnection::GetServerName(), fsInternetServerConnection::GetServerPort(), HTTP_QUERY_ACCEPT_RANGES, HTTP_QUERY_CONTENT_LENGTH, HTTP_QUERY_CONTENT_TYPE, HTTP_QUERY_FLAG_NUMBER, HTTP_QUERY_FLAG_SYSTEMTIME, HTTP_QUERY_LAST_MODIFIED, HTTP_QUERY_LOCATION, HTTP_QUERY_RAW_HEADERS_CRLF, HTTP_QUERY_STATUS_CODE, HttpOpenRequest, HttpQueryInfo, HttpSendRequest, IFDD_TOSERVER, IgnoreSecurityProblems(), INTERNET_FLAG_NO_AUTO_REDIRECT, INTERNET_FLAG_NO_CACHE_WRITE, INTERNET_FLAG_NO_COOKIES, INTERNET_FLAG_PRAGMA_NOCACHE, INTERNET_FLAG_RELOAD, INTERNET_FLAG_SECURE, INTERNET_SCHEME_HTTP, INTERNET_SCHEME_HTTPS, InternetGetCookie, IR_BADURL, IR_NEEDREDIRECT, IR_NOTINITIALIZED, IR_OUTOFMEMORY, IR_RANGESNOTAVAIL, IR_SERVERUNKERROR, IR_SUCCESS, IR_WININETUNKERROR, fsInternetFile::m_bContentTypeValid, fsInternetFile::m_bDateValid, m_bEnableAutoRedirect, m_bHeadersOnly, fsInternetFile::m_date, m_dwFlags, fsInternetFile::m_enRST, fsInternetFile::m_hFile, fsInternetFile::m_pServer, m_pszAdditionalHeaders, m_pszCookies, m_pszHttpVersion, fsInternetFile::m_pszLastError, m_pszPostData, m_pszReferer, fsInternetFile::m_strContentType, fsInternetFile::m_uFileSize, NULL, ProcessRangesResponse(), RetreiveSuggFileName(), RST_NONE, RST_PRESENT, RST_UNKNOWN, SAFE_DELETE_ARRAY, SetupProxy(), and TRUE.
Referenced by OpenEx().
| void fsHttpFile::RetreiveSuggFileName | ( | ) | [protected] |
Definition at line 168 of file fsHttpFile.cpp.
References BOOL, CP_ACP, FALSE, fsStrStrNoCase(), HTTP_QUERY_CONTENT_DISPOSITION, HttpQueryInfo, LPSTR, fsInternetFile::m_hFile, fsInternetFile::m_strSuggFileName, NULL, and TRUE.
Referenced by Open_imp().
| fsInternetResult fsHttpFile::ProcessRangesResponse | ( | ) | [protected] |
Definition at line 110 of file fsHttpFile.cpp.
References BOOL, FALSE, HTTP_QUERY_ACCEPT_RANGES, HTTP_QUERY_CONTENT_RANGE, HttpQueryInfo, IR_DOUBTFUL_RANGESRESPONSE, IR_RANGESNOTAVAIL, IR_SUCCESS, fsInternetFile::m_enRST, fsInternetFile::m_hFile, fsInternetFile::m_uFileSize, NULL, pos(), RST_NONE, RST_PRESENT, and TRUE.
Referenced by Open_imp().
| fsInternetResult fsHttpFile::SetupProxy | ( | ) | [protected] |
Definition at line 97 of file fsHttpFile.cpp.
References fsInternetSession::ApplyProxyAuth(), fsInternetServerConnection::GetSession(), IR_NOTINITIALIZED, fsInternetFile::m_hFile, fsInternetFile::m_pServer, and NULL.
Referenced by Open_imp(), and OpenEx().
| void fsHttpFile::set_Charset | ( | LPCSTR | psz | ) |
| void fsHttpFile::set_EnableAutoRedirect | ( | BOOL | b | ) |
| fsString fsHttpFile::GetCookiesFromResponse | ( | ) |
| void fsHttpFile::set_UseMultipart | ( | BOOL | b | ) |
| fsInternetResult fsHttpFile::Write | ( | LPBYTE | pBuffer, | |
| DWORD | dwSize, | |||
| DWORD * | pdwWritten | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
| fsInternetResult fsHttpFile::OpenEx | ( | LPCSTR | pszFilePath, | |
| UINT64 | uStartPos, | |||
| UINT64 | uUploadPartSize = _UI64_MAX, |
|||
| UINT64 | uUploadTotalSize = _UI64_MAX | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
| void fsHttpFile::SetAdditionalHeaders | ( | LPCSTR | pszAdditionalHeaders | ) |
| LPCSTR fsHttpFile::GetPostData | ( | ) |
| LPCSTR fsHttpFile::GetCookies | ( | ) |
| void fsHttpFile::SetPostData | ( | LPCSTR | pszPostData | ) |
| void fsHttpFile::SetCookies | ( | LPCSTR | pszCookies | ) |
| BOOL fsHttpFile::get_UseCookie | ( | ) |
| LPCSTR fsHttpFile::get_Referer | ( | ) |
| BOOL fsHttpFile::get_UseHttp11 | ( | ) |
| BOOL fsHttpFile::Is_Secure | ( | ) |
| fsInternetResult fsHttpFile::QuerySize | ( | LPCSTR | pszFilePath | ) | [virtual] |
Reimplemented from fsInternetFile.
| void fsHttpFile::RetreiveHeadersOnly | ( | BOOL | b = TRUE |
) |
| void fsHttpFile::UseCookie | ( | BOOL | bUse | ) |
| void fsHttpFile::UseSecure | ( | BOOL | bUse | ) |
| void fsHttpFile::SetReferer | ( | LPCSTR | pszReferer | ) |
| void fsHttpFile::UseHttp11 | ( | BOOL | bUse = TRUE |
) |
| fsInternetResult fsHttpFile::Open | ( | LPCSTR | pszFilePath, | |
| UINT64 | uStartPos | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
| fsInternetResult fsHttpFile::Read | ( | LPBYTE | pBuffer, | |
| DWORD | dwToRead, | |||
| DWORD * | pdwRead | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
| void fsHttpFile::IgnoreSecurityProblems | ( | ) | [protected] |
| fsInternetResult fsHttpFile::Open_imp | ( | LPCSTR | pszFilePath, | |
| UINT64 | uStartPos, | |||
| int | cTryings | |||
| ) | [protected] |
| void fsHttpFile::RetreiveSuggFileName | ( | ) | [protected] |
| fsInternetResult fsHttpFile::ProcessRangesResponse | ( | ) | [protected] |
| fsInternetResult fsHttpFile::SetupProxy | ( | ) | [protected] |
fsString fsHttpFile::m_strCharset [protected] |
BOOL fsHttpFile::m_bEnableAutoRedirect [protected] |
Definition at line 63 of file fsHttpFile.h.
Referenced by fsHttpFile(), Open_imp(), and set_EnableAutoRedirect().
BOOL fsHttpFile::m_bUseMultipart [protected] |
Definition at line 64 of file fsHttpFile.h.
Referenced by fsHttpFile(), OpenEx(), set_UseMultipart(), and Write().
fsString fsHttpFile::m_strLabel [protected] |
UINT64 fsHttpFile::m_uLeftToUpload [protected] |
LPSTR fsHttpFile::m_pszReferer [protected] |
Definition at line 80 of file fsHttpFile.h.
Referenced by fsHttpFile(), get_Referer(), Open_imp(), SetReferer(), and ~fsHttpFile().
BOOL fsHttpFile::m_bHeadersOnly [protected] |
Definition at line 81 of file fsHttpFile.h.
Referenced by fsHttpFile(), Open_imp(), and RetreiveHeadersOnly().
DWORD fsHttpFile::m_dwFlags [protected] |
Definition at line 82 of file fsHttpFile.h.
Referenced by fsHttpFile(), get_UseCookie(), Is_Secure(), Open_imp(), UseCookie(), and UseSecure().
LPSTR fsHttpFile::m_pszHttpVersion [protected] |
Definition at line 83 of file fsHttpFile.h.
Referenced by fsHttpFile(), get_UseHttp11(), Open_imp(), OpenEx(), UseHttp11(), and ~fsHttpFile().
LPSTR fsHttpFile::m_pszCookies [protected] |
Definition at line 84 of file fsHttpFile.h.
Referenced by fsHttpFile(), GetCookies(), Open_imp(), OpenEx(), SetCookies(), and ~fsHttpFile().
LPSTR fsHttpFile::m_pszPostData [protected] |
Definition at line 85 of file fsHttpFile.h.
Referenced by fsHttpFile(), GetPostData(), Open_imp(), SetPostData(), and ~fsHttpFile().
LPSTR fsHttpFile::m_pszAdditionalHeaders [protected] |
Definition at line 86 of file fsHttpFile.h.
Referenced by fsHttpFile(), Open_imp(), OpenEx(), and SetAdditionalHeaders().
1.5.6