Hans Leidekker
2fa86fd661
winhttp: Always drain content before sending the next request.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-12 19:03:50 +02:00
Alistair Leslie-Hughes
ae4ad49c75
winhttp/tests: Test when large amount of data is returned from a 401.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-12 19:03:41 +02:00
Hans Leidekker
6b6ffb399a
winhttp: Ignore unknown schemes in WinHttpQueryAuthSchemes.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-06 11:43:50 +02:00
Alistair Leslie-Hughes
eb3cb33820
winhttp/tests: Added multi Authenticate header test.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-05 16:39:55 +02:00
Hans Leidekker
08603e565b
winhttp: Fix a memory leak in insert_header (Valgrind).
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 20:51:52 +01:00
Hans Leidekker
2786df2373
winhttp/tests: Fix two memory leaks.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-21 12:03:18 +01:00
Hans Leidekker
be78574632
winhttp: Cookie attributes are case-insensitive.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-21 12:03:15 +01:00
Hans Leidekker
8595cc5386
winhttp: Parse cookie attributes.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-21 12:03:10 +01:00
Francois Gouget
c43dd195de
winhttp: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-15 16:16:40 +01:00
André Hentschel
5b9beca162
winhttp: Fix some spec file entries.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 12:20:31 +01:00
Hans Leidekker
542998ee24
winhttp: Accept NULL buffer for size queries in WinHttpCreateUrl.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-27 16:31:44 +01:00
Hans Leidekker
ec35394570
winhttp: Handle EINTR from connect and poll.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-13 13:13:50 +01:00
Hans Leidekker
2b09cfe928
winhttp/tests: Properly restore proxy settings on 64-bit.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-30 13:22:55 +01:00
Hans Leidekker
bfa0e4b840
winhttp/tests: Fix test failures on Windows XP.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-16 16:55:21 -06:00
Carlo Bramini
613e23976e
winhttp: Use return value of sprintf() instead of calling strlen() and simplify code.
...
Signed-off-by: Carlo Bramini <carlo_bramini@users.sourceforge.net>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-15 14:14:59 -06:00
Jacek Caban
e27ff36fc6
winhttp: Added WINHTTP_OPTION_CLIENT_CERT_CONTEXT option stub.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-06 19:17:40 +02:00
Jacek Caban
9bc3e9614f
winhttp: Added WINHTTP_OPTION_MAX_CONNS_PER_SERVER and WINHTTP_OPTION_MAX_CONNS_PER_1_0_SERVER options stub.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-08 19:44:24 +09:00
Andrew Eikum
c8b166e3bf
winhttp: Also pass hostname to jsproxy.
...
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 21:21:32 +09:00
Andrew Eikum
668d4299b0
winhttp: Indicate that WinHttpCrackUrl should return string pointers.
...
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 21:21:31 +09:00
Jacek Caban
985443ed87
winhttp: Don't perform buffer size tests for components that don't pass buffer in WinHttpCrackUrl.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-31 22:22:58 +09:00
Hans Leidekker
17b4abf47f
winhttp: Validate the port number in WinHttpCrackUrl.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-16 22:38:38 +09:00
Hans Leidekker
1d07f89879
winhttp: Set required buffer length for all components in WinHttpCrackUrl.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-16 22:38:35 +09:00
Nikolay Sivov
1895345df8
winhttp/tests: Fix indentation warning on GCC 6.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-10 22:22:41 +09:00
Jeremy Audiger
6c0fdc0516
winhttp: Prevent console spamming in get_system_proxy_autoconfig_url.
...
Signed-off-by: Jérémy Audiger <audiger@live.fr>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-08 18:42:00 +09:00
Thomas Faber
87c05c8779
winhttp: Return NULL on failure in alloc_handle.
...
Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:09:20 +09:00
Thomas Faber
834137517a
winhttp: Avoid buffer overrun in alloc_handle.
...
Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:09:12 +09:00
Andrey Gusev
a66f08db46
winhttp/tests: Fix a typo in ok() message.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-23 22:01:53 +09:00
Hans Leidekker
05a13fb155
winhttp/tests: Fix test failures.
...
These were introduced with the web server upgrade.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-17 19:44:02 +09:00
Hans Leidekker
d3f7519035
winhttp: Don't drain content until authorization is handled successfully.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-23 16:32:14 +01:00
Dmitry Timoshkov
97ac9d410f
winhttp/tests: Add an authentication test using IWinHttpRequest.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-10 23:27:05 +09:00
Dmitry Timoshkov
12c983a628
winhttp/tests: Send a not empty payload in the server authorization response, check the received data on the client side.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-08 17:23:07 +09:00
Dmitry Timoshkov
545a41750e
winhttp/tests: Use symbolic names for http status codes.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-08 17:23:04 +09:00
Dmitry Timoshkov
c599a0f6b0
winhttp/tests: Fix a typo.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-07 21:29:35 +09:00
Dmitry Timoshkov
fb31a0f7e0
winhttp/tests: Fix spurious crashes under Windows.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-07 21:29:35 +09:00
Dmitry Timoshkov
7dc055f897
winhttp/tests: Add a test for data returned by IWinHttpRequest::get_ResponseText() using an https connection.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-04 21:56:19 +09:00
Dmitry Timoshkov
34e88a4a76
winhttp/tests: Add a test for data returned by IWinHttpRequest::get_ResponseText().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-04 21:56:19 +09:00
Dmitry Timoshkov
4b1eae9fac
winhttp/tests: For a secure connection check what WinHttpQueryDataAvailable() returns as well as first chunk of actual data.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-04 21:56:18 +09:00
Dmitry Timoshkov
42d42daa2e
winhttp/tests: Accept Windows7 return value for WinHttpQueryOption(WINHTTP_OPTION_CONNECTION_INFO).
...
Windows7 doesn't include the size of info.cbSize field in the returned
'size' value.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-04 21:56:18 +09:00
Dmitry Timoshkov
fb5293f0ce
widl: Do not create duplicate type info entries when tag and typedef names are the same.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2015-10-06 14:28:23 +09:00
Dmitry Timoshkov
6f97e1a30c
winhttp/tests: Add another test for IWinHttpRequest_Invoke.
...
This test intentionally uses fallback path of IWinHttpRequest_Invoke
implementation that passes the call to typelib marshaller.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2015-10-02 15:39:05 +09:00
Dmitry Timoshkov
01bfb3d6a6
winhttp: Add custom implementation of IWinHttpRequest::Invoke(DISPID_HTTPREQUEST_OPTION).
2015-10-01 00:04:06 +09:00
Hans Leidekker
29967d63bb
winhttp/tests: Handle timeout errors.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
2015-09-25 21:01:23 +02:00
Hans Leidekker
42a8a3e74b
winhttp/tests: Fix a test failure.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
2015-09-25 21:01:21 +02:00
Hans Leidekker
4eb2807bd4
winhttp/tests: Never use a proxy for connections to localhost.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
2015-09-25 21:01:18 +02:00
Hans Leidekker
d22e21f96d
winhttp: Verify certificates against the hostname instead of the server name.
...
The server name is different when connections are made through a proxy server.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
2015-09-25 21:01:15 +02:00
Dmitry Timoshkov
25c78aac08
winhttp/tests: Add more IWinHttpRequest_Invoke tests.
2015-09-02 18:21:50 +09:00
Dmitry Timoshkov
f46868fe30
winhttp/tests: Add a test for IWinHttpRequest::Invoke.
2015-08-28 13:14:20 +09:00
Hans Leidekker
58bf3ca17f
winhttp: Add support for retrieving the URL codepage.
2015-08-26 23:15:26 +09:00
Dmitry Timoshkov
d6e1e710ee
winhttp: Add support for WinHttpRequestOption_URLCodePage.
2015-08-24 18:41:35 +09:00
Michael Müller
d2890778f9
winhttp: Raw request headers need to be terminated with double \r\n.
2015-08-18 17:30:48 +09:00