|
ReactOS 0.4.16-dev-2491-g3dc6630
|
#include <stdarg.h>#include "windef.h"#include "winbase.h"#include "winsock2.h"#include "ws2ipdef.h"#include "ws2tcpip.h"#include "winhttp.h"#include "winreg.h"#include "winternl.h"#include "iphlpapi.h"#include "dhcpcsdk.h"#include "ole2.h"#include "dispex.h"#include "activscp.h"#include "wine/debug.h"#include "winhttp_private.h"
Go to the source code of this file.
Classes | |
| struct | connection_settings_header |
| struct | AUTO_PROXY_SCRIPT_BUFFER |
Macros | |
| #define | COBJMACROS |
| #define | DEFAULT_RESOLVE_TIMEOUT 0 |
| #define | DEFAULT_CONNECT_TIMEOUT 20000 |
| #define | DEFAULT_SEND_TIMEOUT 30000 |
| #define | DEFAULT_RECEIVE_TIMEOUT 30000 |
| #define | DEFAULT_RECEIVE_RESPONSE_TIMEOUT ~0u |
| #define | MAX_HOST_NAME_LENGTH 256 |
| #define | MAX_SCHEME_LENGTH 32 |
Variables | |
| static const struct object_vtbl | session_vtbl |
| static const struct object_vtbl | connect_vtbl |
| static const struct object_vtbl | request_vtbl |
| static const WCHAR | path_connections [] |
| static const DWORD | WINHTTP_SETTINGS_MAGIC = 0x18 |
| static const DWORD | WININET_SETTINGS_MAGIC = 0x46 |
| static const DWORD | PROXY_TYPE_DIRECT = 1 |
| static const DWORD | PROXY_TYPE_PROXY = 2 |
| static const DWORD | PROXY_USE_PAC_SCRIPT = 4 |
| static const DWORD | PROXY_AUTODETECT_SETTINGS = 8 |
| static SRWLOCK | cache_lock = SRWLOCK_INIT |
| static DWORD | cached_script_size |
| static ULONGLONG | cache_update_time |
| static char * | cached_script |
| static WCHAR * | cached_url |
| static const WCHAR | wkday [7][4] |
| static const WCHAR | month [12][4] |
Definition at line 1248 of file session.c.
Referenced by WinHttpOpenRequest().
|
static |
Definition at line 712 of file session.c.
Referenced by request_query_option().
Definition at line 972 of file session.c.
Referenced by request_set_option().
Definition at line 750 of file session.c.
Referenced by request_query_option().
Definition at line 1603 of file session.c.
Referenced by detect_autoproxyconfig_url_dns().
Definition at line 2000 of file session.c.
Referenced by download_script().
|
static |
|
static |
Definition at line 384 of file session.c.
Definition at line 1719 of file session.c.
Referenced by WinHttpGetDefaultProxyConfiguration(), and WinHttpGetIEProxyConfigForCurrentUser().
Definition at line 724 of file session.c.
Referenced by request_query_option().
Definition at line 1518 of file session.c.
Referenced by WinHttpDetectAutoProxyConfigUrl().
Definition at line 1623 of file session.c.
Referenced by WinHttpDetectAutoProxyConfigUrl().
Definition at line 448 of file session.c.
Referenced by should_bypass_proxy().
Definition at line 2017 of file session.c.
Referenced by WinHttpGetProxyForUrl().
|
static |
Definition at line 1499 of file session.c.
Referenced by detect_autoproxyconfig_url_dhcp(), get_interface_index(), and test_GetUnicastIpAddressEntry().
Definition at line 1979 of file session.c.
Referenced by download_script().
|
static |
Definition at line 1573 of file session.c.
Referenced by detect_autoproxyconfig_url_dns().
Definition at line 111 of file main.c.
Referenced by run_script().
Referenced by run_script().
| BOOL WINAPI InternetInitializeAutoProxyDll | ( | DWORD | , |
| LPSTR | , | ||
| LPSTR | , | ||
| void * | , | ||
| struct AUTO_PROXY_SCRIPT_BUFFER * | |||
| ) |
Referenced by run_script().
Definition at line 1589 of file session.c.
Referenced by detect_autoproxyconfig_url_dns().
|
static |
Definition at line 1929 of file session.c.
Referenced by run_script().
|
static |
Definition at line 1375 of file session.c.
Referenced by WinHttpQueryOption().
|
static |
Definition at line 652 of file session.c.
|
static |
Definition at line 777 of file session.c.
|
static |
Definition at line 985 of file session.c.
Definition at line 692 of file session.c.
Referenced by request_query_option().
|
static |
Definition at line 2095 of file session.c.
Referenced by WinHttpGetProxyForUrl().
| void send_callback | ( | struct object_header * | hdr, |
| DWORD | status, | ||
| void * | info, | ||
| DWORD | buflen | ||
| ) |
|
static |
|
static |
Definition at line 98 of file session.c.
|
static |
Definition at line 168 of file session.c.
|
static |
Definition at line 1440 of file session.c.
Referenced by WinHttpSetOption().
Definition at line 532 of file session.c.
Referenced by handle_redirect(), and WinHttpConnect().
Definition at line 501 of file session.c.
Referenced by set_server_for_hostname().
Definition at line 87 of file session.c.
Referenced by connect_query_option(), query_option(), request_query_option(), and session_query_option().
| WINE_DEFAULT_DEBUG_CHANNEL | ( | winhttp | ) |
Definition at line 1358 of file session.c.
Referenced by close_request(), do_request(), download_script(), free_request(), reset_request(), test_async(), test_bad_header(), test_basic_authentication(), test_basic_request(), test_chunked_read(), test_chunked_request(), test_client_cert_authentication(), test_connect_error(), test_connection_cache(), test_connection_info(), test_cookies(), test_credentials(), test_empty_headers_param(), test_head_request(), test_large_data_authentication(), test_max_http_automatic_redirects(), test_multi_authentication(), test_multiple_reads(), test_no_content(), test_no_headers(), test_not_modified(), test_passport_auth(), test_recursion(), test_redirect(), test_request_parameter_defaults(), test_request_path_escapes(), test_resolve_timeout(), test_secure_connection(), test_timeouts(), test_websocket(), test_WinHttpAddHeaders(), test_WinHttpGetProxyForUrl(), test_WinHttpOpenRequest(), test_WinHttpQueryOption(), test_WinHttpSendRequest(), transfer_file_http(), and winhttp_request_Open().
| HINTERNET WINAPI WinHttpConnect | ( | HINTERNET | hsession, |
| const WCHAR * | server, | ||
| INTERNET_PORT | port, | ||
| DWORD | reserved | ||
| ) |
Definition at line 594 of file session.c.
Referenced by download_script(), open_async_request(), test_async(), test_bad_header(), test_basic_authentication(), test_basic_request(), test_chunked_read(), test_chunked_request(), test_client_cert_authentication(), test_connect_error(), test_connection_cache(), test_connection_info(), test_cookies(), test_credentials(), test_empty_headers_param(), test_head_request(), test_large_data_authentication(), test_max_http_automatic_redirects(), test_multi_authentication(), test_multiple_reads(), test_no_content(), test_no_headers(), test_not_modified(), test_passport_auth(), test_recursion(), test_redirect(), test_request_parameter_defaults(), test_request_path_escapes(), test_resolve_timeout(), test_secure_connection(), test_timeouts(), test_websocket(), test_WinHttpAddHeaders(), test_WinHttpOpenRequest(), test_WinHttpQueryOption(), test_WinHttpSendRequest(), transfer_file_http(), and winhttp_request_Open().
Definition at line 1675 of file session.c.
Referenced by test_WinHttpDetectAutoProxyConfigUrl(), and WinHttpGetProxyForUrl().
| void WINAPI WinHttpFreeProxyResult | ( | WINHTTP_PROXY_RESULT * | result | ) |
| void WINAPI WinHttpFreeProxyResultEx | ( | WINHTTP_PROXY_RESULT_EX * | result | ) |
| void WINAPI WinHttpFreeProxySettings | ( | WINHTTP_PROXY_SETTINGS * | settings | ) |
| BOOL WINAPI WinHttpGetDefaultProxyConfiguration | ( | WINHTTP_PROXY_INFO * | info | ) |
Definition at line 1731 of file session.c.
Referenced by proxy_active(), and WinHttpOpen().
| BOOL WINAPI WinHttpGetIEProxyConfigForCurrentUser | ( | WINHTTP_CURRENT_USER_IE_PROXY_CONFIG * | config | ) |
Definition at line 1851 of file session.c.
Referenced by test_WinHttpGetIEProxyConfigForCurrentUser().
| BOOL WINAPI WinHttpGetProxyForUrl | ( | HINTERNET | hsession, |
| LPCWSTR | url, | ||
| WINHTTP_AUTOPROXY_OPTIONS * | options, | ||
| WINHTTP_PROXY_INFO * | info | ||
| ) |
Definition at line 2165 of file session.c.
Referenced by test_WinHttpGetProxyForUrl().
| DWORD WINAPI WinHttpGetProxyForUrlEx | ( | HINTERNET | hresolver, |
| const WCHAR * | url, | ||
| WINHTTP_AUTOPROXY_OPTIONS * | options, | ||
| DWORD_PTR | ctx | ||
| ) |
| DWORD WINAPI WinHttpGetProxyResult | ( | HINTERNET | hresolver, |
| WINHTTP_PROXY_RESULT * | result | ||
| ) |
| DWORD WINAPI WinHttpGetProxyResultEx | ( | HINTERNET | hresolver, |
| WINHTTP_PROXY_RESULT_EX * | result | ||
| ) |
| HINTERNET WINAPI WinHttpOpen | ( | LPCWSTR | agent, |
| DWORD | access, | ||
| LPCWSTR | proxy, | ||
| LPCWSTR | bypass, | ||
| DWORD | flags | ||
| ) |
Definition at line 304 of file session.c.
Referenced by download_script(), open_async_request(), test_async(), test_bad_header(), test_basic_authentication(), test_basic_request(), test_chunked_read(), test_chunked_request(), test_client_cert_authentication(), test_connect_error(), test_connection_cache(), test_connection_info(), test_cookies(), test_credentials(), test_empty_headers_param(), test_head_request(), test_large_data_authentication(), test_max_http_automatic_redirects(), test_multi_authentication(), test_multiple_reads(), test_no_content(), test_no_headers(), test_not_modified(), test_passport_auth(), test_recursion(), test_redirect(), test_request_parameter_defaults(), test_request_path_escapes(), test_resolve_timeout(), test_secure_connection(), test_timeouts(), test_websocket(), test_WinHttpAddHeaders(), test_WinHttpGetProxyForUrl(), test_WinHttpOpenRequest(), test_WinHttpQueryOption(), test_WinHttpSendRequest(), transfer_file_http(), and winhttp_request_Open().
| HINTERNET WINAPI WinHttpOpenRequest | ( | HINTERNET | hconnect, |
| const WCHAR * | verb, | ||
| const WCHAR * | object, | ||
| const WCHAR * | version, | ||
| const WCHAR * | referrer, | ||
| const WCHAR ** | types, | ||
| DWORD | flags | ||
| ) |
Definition at line 1277 of file session.c.
Referenced by do_request(), download_script(), open_async_request(), test_async(), test_bad_header(), test_basic_authentication(), test_basic_request(), test_chunked_read(), test_chunked_request(), test_client_cert_authentication(), test_connect_error(), test_connection_cache(), test_connection_info(), test_cookies(), test_credentials(), test_empty_headers_param(), test_head_request(), test_large_data_authentication(), test_max_http_automatic_redirects(), test_multi_authentication(), test_multiple_reads(), test_no_content(), test_no_headers(), test_not_modified(), test_passport_auth(), test_recursion(), test_redirect(), test_request_parameter_defaults(), test_resolve_timeout(), test_secure_connection(), test_timeouts(), test_websocket(), test_WinHttpAddHeaders(), test_WinHttpOpenRequest(), test_WinHttpQueryOption(), test_WinHttpSendRequest(), transfer_file_http(), and winhttp_request_Open().
Definition at line 1420 of file session.c.
Referenced by check_notification(), test_basic_request(), test_connection_info(), test_credentials(), test_max_http_automatic_redirects(), test_redirect(), test_secure_connection(), test_timeouts(), test_websocket(), test_WinHttpQueryOption(), and test_WinHttpSendRequest().
| DWORD WINAPI WinHttpReadProxySettings | ( | HINTERNET | hsession, |
| const WCHAR * | connection, | ||
| BOOL | use_defaults, | ||
| BOOL | set_autodiscover, | ||
| DWORD * | version, | ||
| BOOL * | defaults_returned, | ||
| WINHTTP_PROXY_SETTINGS * | settings | ||
| ) |
Definition at line 2408 of file session.c.
| BOOL WINAPI WinHttpSetDefaultProxyConfiguration | ( | WINHTTP_PROXY_INFO * | info | ) |
Definition at line 2221 of file session.c.
Referenced by test_set_default_proxy_config().
Definition at line 1479 of file session.c.
Referenced by open_async_request(), request_set_parameters(), test_async(), test_basic_authentication(), test_basic_request(), test_client_cert_authentication(), test_connection_cache(), test_credentials(), test_max_http_automatic_redirects(), test_passport_auth(), test_redirect(), test_resolve_timeout(), test_secure_connection(), test_timeouts(), test_websocket(), test_WinHttpQueryOption(), test_WinHttpSendRequest(), transfer_file_http(), and winhttp_request_Open().
| WINHTTP_STATUS_CALLBACK WINAPI WinHttpSetStatusCallback | ( | HINTERNET | handle, |
| WINHTTP_STATUS_CALLBACK | callback, | ||
| DWORD | flags, | ||
| DWORD_PTR | reserved | ||
| ) |
Definition at line 2435 of file session.c.
Referenced by open_async_request(), test_async(), test_connection_cache(), test_recursion(), test_redirect(), test_secure_connection(), test_websocket(), transfer_file_http(), and wait_set_status_callback().
| BOOL WINAPI WinHttpSetTimeouts | ( | HINTERNET | handle, |
| int | resolve, | ||
| int | connect, | ||
| int | send, | ||
| int | receive | ||
| ) |
Definition at line 2460 of file session.c.
Referenced by download_script(), request_set_parameters(), and test_timeouts().
| BOOL WINAPI WinHttpTimeFromSystemTime | ( | const SYSTEMTIME * | time, |
| LPWSTR | string | ||
| ) |
Definition at line 2534 of file session.c.
Referenced by test_IWinHttpRequest(), test_not_modified(), and test_WinHttpTimeFromSystemTime().
| BOOL WINAPI WinHttpTimeToSystemTime | ( | LPCWSTR | string, |
| SYSTEMTIME * | time | ||
| ) |
Definition at line 2561 of file session.c.
Referenced by query_headers(), and test_WinHttpTimeToSystemTime().
| DWORD WINAPI WinHttpWriteProxySettings | ( | HINTERNET | hsession, |
| BOOL | force, | ||
| WINHTTP_PROXY_SETTINGS * | settings | ||
| ) |
|
static |
Definition at line 1973 of file session.c.
Referenced by cache_InstallAssembly(), cache_QueryAssemblyInfo(), cache_script(), cache_UninstallAssembly(), get_cached_script(), IAssemblyCacheImpl_InstallAssembly(), IAssemblyCacheImpl_QueryAssemblyInfo(), and IAssemblyCacheImpl_UninstallAssembly().
|
static |
Definition at line 1975 of file session.c.
Referenced by cache_script(), and get_cached_script().
|
static |
Definition at line 1976 of file session.c.
Referenced by cache_script(), and get_cached_script().
|
static |
Definition at line 1974 of file session.c.
Referenced by cache_script(), and get_cached_script().
|
static |
Definition at line 1977 of file session.c.
Referenced by cache_script(), and get_cached_script().
|
static |
Definition at line 440 of file session.c.
Referenced by WinHttpConnect().
Definition at line 2528 of file session.c.
Referenced by _Locale_abbrev_monthname(), _Locale_full_monthname(), _Locale_time_create(), _W_Gettnames(), _WLocale_abbrev_monthname(), _WLocale_full_monthname(), asctime_buf(), common_strdate_s(), convert_bios_date(), create_utc_string(), cvtdate(), date_dos2unix(), date_parse(), Date_setFullYear(), Date_setMonth(), Date_setUTCFullYear(), Date_setUTCMonth(), date_to_string(), date_utc(), dateobj_to_date_string(), day_from_month(), fill_systime_struct(), Global_MonthName(), HTTP_ParseDateAsAsctime(), HTTP_ParseMonth(), HTTP_ParseRfc1123Date(), HTTP_ParseRfc850Date(), make_day(), MONTHCAL_GetDayRect(), MONTHCAL_MonthLength(), MONTHCAL_SetCurSel(), MONTHCAL_SetSelRange(), test_GetDateFormatA(), test_strdate(), test_wstrdate(), VARIANT_DMYFromJulian(), VARIANT_IsValidMonthDay(), VARIANT_JulianFromDMY(), vsyslog(), WinHttpTimeFromSystemTime(), and WinHttpTimeToSystemTime().
Definition at line 1702 of file session.c.
Referenced by WinHttpGetDefaultProxyConfiguration(), WinHttpGetIEProxyConfigForCurrentUser(), and WinHttpSetDefaultProxyConfiguration().
Definition at line 1710 of file session.c.
Referenced by WinHttpGetIEProxyConfigForCurrentUser().
Definition at line 1707 of file session.c.
Referenced by WinHttpSetDefaultProxyConfiguration().
Definition at line 1708 of file session.c.
Referenced by WinHttpGetDefaultProxyConfiguration(), WinHttpGetIEProxyConfigForCurrentUser(), and WinHttpSetDefaultProxyConfiguration().
Definition at line 1709 of file session.c.
Referenced by WinHttpGetIEProxyConfigForCurrentUser().
|
static |
Definition at line 1240 of file session.c.
Referenced by WinHttpOpenRequest().
|
static |
Definition at line 289 of file session.c.
Referenced by WinHttpOpen().
Definition at line 1705 of file session.c.
Referenced by WinHttpGetDefaultProxyConfiguration(), and WinHttpSetDefaultProxyConfiguration().
Definition at line 1706 of file session.c.
Referenced by WinHttpGetIEProxyConfigForCurrentUser().