Alistair Leslie-Hughes
f40aa5552c
wininet: Use username/password parameters over cached credentials.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-20 12:50:33 +02:00
Alistair Leslie-Hughes
f8f98e6edc
wininet: Clear cached credentials in INTERNET_OPTION_END_BROWSER_SESSION.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-19 12:56:59 +02:00
Alistair Leslie-Hughes
03d19f4be2
wininet: Update session username/password when cached credentials are used.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-17 18:52:32 +02:00
Alistair Leslie-Hughes
7d8d703d9b
wininet: Pass correct server name when retrieving username information.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-17 18:50:44 +02:00
Alistair Leslie-Hughes
be2c77e636
wininet/tests: InternetQueryOption should return a valid value for username/password when using cached credentials.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-12 22:47:45 +02:00
Daniel Lehman
e07efbd919
wininet: Support large downloads.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 16:25:55 +02:00
Huw Davies
f5a3d43f45
wininet: Include limits.h to define UINT_MAX and ULONG_MAX.
...
Fixes build error on macOS introduced by commit 968201424d
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-05 11:14:52 +02:00
Daniel Lehman
968201424d
wininet: Return error from HttpQueryInfo if number argument is invalid.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-04 17:27:37 +02:00
Andrey Gusev
a1d966e494
wininet/tests: Remove LPVOID cast.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-02 20:43:52 +02:00
Daniel Lehman
36bbea9e20
wininet/tests: Fix typo in error message.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-22 09:49:38 +02:00
Michael Müller
6e97461580
wininet: Allow to set INTERNET_OPTION_HTTP_DECODING on sessions and connections.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-26 23:08:56 +02:00
Alistair Leslie-Hughes
8f5b9f4d4b
wininet: Always set last error in InternetReadFile.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47352
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-24 11:36:43 +02:00
Alistair Leslie-Hughes
3522b127a3
wininet: Always set last error in HttpQueryInfoW.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-24 11:36:40 +02:00
Alistair Leslie-Hughes
223c3b4538
wininet: Support QueryOption INTERNET_OPTION_ERROR_MASK for http.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-24 11:36:36 +02:00
Jarkko Korpi
c9b2801c0d
wininet: Silence no support on this platform message.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-18 23:51:51 +02:00
Alistair Leslie-Hughes
bf5b8ae8af
wininet: Remove unsued flag HTTP_ADDHDR_FLAG_COALESCE.
...
This flag has the same value as HTTP_ADDHDR_FLAG_COALESCE_WITH_COMMA
which is used in multiple places.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-17 21:34:13 +02:00
Tim Schumacher
fb568344e6
wininet: Hide GetCookie flag fixme for HTTPONLY cookies.
...
Signed-off-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-17 12:28:32 +02:00
Alexandre Julliard
7ac6cdfa00
configure: Use pkg-config to check for zlib.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-04 19:23:11 +02:00
Jacek Caban
9fec2e0d95
wininet: Fix name and data allocation failure handling in alloc_cookie.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-27 20:52:38 +02:00
Alexandre Julliard
3d6febc997
include: Get rid of the DPRINTF() macro.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-08 19:34:44 +02:00
Piotr Caban
380d5dff85
wininet: Don't use strcasecmp.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 20:27:55 +02:00
Michael Stefaniuc
73e5347739
wininet: Remove redundant not-NULL check (coccinellery).
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-09 02:10:17 +01:00
Sven Baars
3f05534ca8
wininet/tests: Fix some memory leaks (Valgrind).
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-11 11:52:00 +01:00
Hans Leidekker
25b10ea4cc
wininet: Trace modifiers in hexadecimal in HttpAddRequestHeaders.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-08 12:11:54 +01:00
Dmitry Timoshkov
ca29ac4650
wininet: Make GetUrlCacheConfigInfo() return actual dwQuota and dwCacheSize.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-28 22:27:55 +01:00
Dmitry Timoshkov
0cdca521e9
wininet: Return proper cache path from GetUrlCacheConfigInfo.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-24 20:10:01 +01:00
Dmitry Timoshkov
848d422977
wininet/tests: Add some tests for GetUrlCacheConfigInfo.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-09 08:30:36 -06:00
Daniel Lehman
9678045056
wininet: Always check if context can be deleted when freeing netconn.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-03 22:27:05 +01:00
André Hentschel
065ab77fc1
wininet/tests: Skip tests when querying INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT fails (newer win10).
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-24 22:41:30 +02:00
Michael Stefaniuc
b1a3b9e5ce
wininet: Use the ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-20 19:44:17 +02:00
Michael Stefaniuc
717a17b24f
wininet: Avoid an ARRAY_SIZE-like macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-20 19:44:17 +02:00
Michael Müller
bfe8510ec0
wininet: Resize buffer when call to InternetCanonicalizeUrlW fails in InternetCrackUrlW.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=40598
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-07 19:27:29 +02:00
Dmitry Timoshkov
24f3d50ccc
wininet: Remove unused parameter from create_netconn().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-07 19:27:22 +02:00
Alistair Leslie-Hughes
6552ddaaa5
wininet: Always copy the password even if blank.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-20 19:36:08 +02:00
Michael Stefaniuc
d870d4105d
wininet: Use the more common ARRAY_SIZE spelling.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-06 19:44:26 +02:00
Michael Stefaniuc
8d876e740e
wininet/tests: Use the available ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-22 01:01:55 +02:00
Michael Stefaniuc
91c1fc2ff9
wininet/tests: Use the correct array size in a notification_data test.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-21 11:18:35 +02:00
Jacek Caban
54b414b121
wininet: Simplify header string handling in HTTP_HttpSendRequestW.
...
Spotted by Mark Jansen, avoids potential double-free.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 16:51:19 +02:00
Jacek Caban
2bba45765b
wininet: Add stub for INTERNET_OPTION_REFRESH.
...
Based on patch by Michael Müller.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-03 17:56:23 +02:00
Jacek Caban
d9dd9023fd
wininet: Allow INTERNET_OPTION_SETTINGS_CHANGED on all handle types.
...
Based on patch by Michael Müller.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-03 17:56:23 +02:00
Alistair Leslie-Hughes
bb41feacd4
wininet: Add support for FormatMessage.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-04 22:04:26 +02:00
Austin English
c8861df6d1
wininet: Add ParseX509EncodedCertificateForListBoxEntry stub.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-29 17:24:13 +02:00
André Hentschel
be002fd92b
wininet: Fix negated check for drain_content result (clang).
...
Introduced with 4f40039cd7
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-28 23:39:20 +02:00
Piotr Caban
ea0dae6db2
wininet: Fix https connections over proxy.
...
Successful CONNECT request switch to tunnel instead of having a message
body.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-16 00:59:42 +01:00
Alexandre Julliard
105b3dc816
wininet/tests: Update the winehq.org certificate data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-06 15:46:09 -06:00
Michael Stefaniuc
a6a059f802
wininet: Use the global HeapAlloc() wrappers.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 12:58:59 +01:00
Wei Xie
6d6dd78e5d
wininet: Don't release connection too early.
...
Signed-off-by: Wei Xie <xiewei@linuxdeepin.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-19 16:40:55 +01:00
Wei Xie
3f06a09604
wininet/tests: Check null pointer in InternetGetSecurityInfoByURLW.
...
Signed-off-by: Wei xie <xiewei@linuxdeepin.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-09 16:03:50 +01:00
Alex Henrie
7b2ead8da0
wininet/tests: Fix off-by-one errors in HTTP tests (Coverity).
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-08 19:26:54 +01:00
Andrey Gusev
dc9088b9eb
wininet/tests: Fix resource leak.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-05 17:33:41 +01:00