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
Michael Müller
a533bf26ce
winhttp: Remove unused variable in read_reply().
2015-08-12 22:54:04 +09:00
Hans Leidekker
1def0982f1
winhttp: Always clear last error on success.
2015-08-03 20:50:33 +02:00
Huw Davies
1709635f29
winhttp: Implement WINHTTP_OPTION_UNLOAD_NOTIFY_EVENT.
2015-07-22 10:33:39 +02:00
Huw Davies
50d9d187c5
winhttp: Don't wait for the task thread to exit.
...
Instead, have the task thread call the destructor before it exits.
Previously, if the task thread held the final reference, it would call
request_destroy which would then wait for itself to finish.
2015-07-21 17:38:13 +02:00
Huw Davies
65319e811b
winhttp: Fix a reference leak.
2015-07-21 16:37:58 +02:00
Hans Leidekker
b9557e9227
winhttp: Store cookies in reverse order.
...
This matches more recent versions of Windows.
2015-06-24 22:56:46 +09:00
Hans Leidekker
3c5cb7f8dc
winhttp: Perform a case sensitive match on cookie names.
2015-06-24 22:56:34 +09:00
Hans Leidekker
7e121e4871
winhttp: Coalesce cookie headers.
2015-06-24 22:56:32 +09:00
Hans Leidekker
2516fb7807
winhttp: Fix a couple of corner cases in header processing.
2015-06-24 22:56:29 +09:00
Hans Leidekker
9e96beefae
winhttp: Fix handling of the headers length parameter in WinHttpAddRequestHeaders and WinHttpSendRequest.
2015-06-17 22:37:06 +09:00
Hans Leidekker
d9d8e6f031
winhttp/tests: Fix a test failure on win2k.
2015-06-17 22:37:04 +09:00
Hans Leidekker
b22ace7f7b
winhttp: Keep the session open in the request object.
...
Cookies have session scope in winhttp and they are not saved, so we
need to keep the session open to ensure that cookies are passed along
with subsequent requests.
2015-06-16 16:48:35 +09:00
Hans Leidekker
9736644ed5
winhttp: Correctly handle relative redirect paths.
2015-06-16 16:48:33 +09:00
Hans Leidekker
41cf9a8372
winhttp: Improve parsing of cookie values.
2015-06-16 16:48:30 +09:00
Hans Leidekker
3b8a8d31dc
winhttp: Store credentials set with WinHttpSetCredentials separately from username and password set through options.
2015-06-15 14:45:51 +09:00
Hans Leidekker
1c5e704af6
winhttp: Fix a memory leak (valgrind).
2015-04-21 22:21:43 +09:00
Hans Leidekker
d36f8d52cf
winhttp: Initialize some variables (valgrind).
2015-04-21 22:21:40 +09:00
Michael Stefaniuc
df97a0e85d
winhttp/tests: Test the correct return code.
2015-03-30 19:10:30 +09:00
Hans Leidekker
e27a9bc6bc
winhttp: Don't try to read more data than available in the current chunk in refill_buffer.
2015-03-17 00:19:53 +09:00
Alexandre Julliard
0d7613fc98
winhttp: Remove const to fix a warning with the Microsoft headers.
2015-03-17 00:19:37 +09:00
Hans Leidekker
5505413a81
winhttp: Implement IWinHttpRequest::get_ResponseStream.
2015-02-16 23:28:34 +09:00
Hans Leidekker
6f046e0f51
winhttp: Return an error from winhttp_request_get_ResponseBody if the request is not sent.
2015-02-16 23:28:27 +09:00
Hans Leidekker
d6c9c984e5
winhttp: Implement a task queue for asynchronous requests.
...
This ensures that asynchronous calls are completed in the right order.
2015-02-16 23:28:22 +09:00
Hans Leidekker
27ba8c8343
winhttp: Don't try to read data after a HEAD request.
2015-01-21 18:08:07 +01:00
Hans Leidekker
142ac82490
winhttp/tests: Keep the connection alive in a couple of tests.
2015-01-21 15:31:21 +01:00
Nikolay Sivov
e606551c21
winhttp: Release typeinfos and typelib on dll unload.
2015-01-14 13:18:59 +01:00
Nikolay Sivov
3816e44da1
winhttp: Fix typeinfo refcount in GetTypeInfo().
2015-01-14 13:18:54 +01:00
Hans Leidekker
823c037c9f
winhttp/tests: Use a wait event instead of an unconditional sleep in the server thread.
2015-01-05 20:15:05 +01:00
Hans Leidekker
bb89483397
winhttp/tests: Close the connection immediately after authentication.
2014-12-09 13:17:08 +01:00
Hans Leidekker
2087a9fbe9
winhttp: Don't try to read data when the server response is HTTP_STATUS_NO_CONTENT or HTTP_STATUS_NOT_MODIFIED.
...
Tests based on a patch by Bruno Jesus.
2014-12-09 13:17:03 +01:00
Hans Leidekker
97cd0291b0
winhttp: Check the return value of send_request.
2014-12-09 13:16:55 +01:00
Hans Leidekker
cd7806b223
winhttp: Double the size of the internal read buffer.
2014-12-09 13:16:52 +01:00
Hans Leidekker
2b6dacfdbe
winhttp: Don't report data pending in the socket.
...
Some installers make assumptions about the size of the internal buffer. We could
exceed that size when there's enough data pending in the socket.
2014-12-09 13:16:43 +01:00
Hans Leidekker
647abcafb6
winhttp: Convert the async parameter to VT_BOOL if necessary in IWinHttpRequest::Open.
2014-12-09 13:16:36 +01:00
Hans Leidekker
4ac817b6c0
winhttp: Fill the read buffer first in drain_content.
2014-12-09 13:16:32 +01:00
Hans Leidekker
1eb86e1fca
winhttp: Enable automatic authentication by default in the request object.
2014-12-09 13:16:28 +01:00
Hans Leidekker
0d50168570
winhttp/tests: Handle more potential connection failures.
2014-12-09 13:16:24 +01:00
André Hentschel
20cec93919
winhttp/tests: Remove unused string (Clang).
2014-12-05 20:48:09 +01:00
André Hentschel
19fe621dfd
winhttp/tests: Fix typo.
2014-10-15 11:36:34 +09:00
André Hentschel
6e4d52a752
winhttp/tests: Fix potential crash on BSD.
2014-10-07 20:22:14 +02:00
Hans Leidekker
0b366dca3c
winhttp: Verify the async parameter type in IWinHttpRequest::Open.
2014-09-15 16:41:10 +02:00
Hans Leidekker
e52bbd581d
winhttp/tests: Avoid test failures caused by connection errors.
2014-09-01 21:10:13 +02:00
Nikolay Sivov
8fb0fd77e5
winhttp: Fix return code check (PVS-Studio).
2014-08-18 12:46:19 +02:00
Bruno Jesus
1697eb6ee2
winhttp/tests: Add a no-content header test.
2014-07-30 11:50:05 -05:00
Gerald Pfeifer
25bf35243e
winhttp: Remove unused constant proxymsg.
2014-07-28 17:22:05 -05:00
Alexandre Julliard
97d8ae9e7e
winhttp/tests: Include winsock2.h before other headers.
2014-07-24 20:10:33 +02:00
Jacek Caban
d2886a05f9
wine/debug.h: Added debugstr_variant and debugstr_vt aliases and removed all duplicated implementations.
2014-07-24 17:05:55 +02:00
Bruno Jesus
53f8d78e57
winhttp: Use a helper to receive data and take care of EINTR.
2014-06-17 10:36:39 +02:00
Bruno Jesus
6db935a6f4
winhttp: Use a helper to send data and take care of EINTR.
2014-06-17 10:36:03 +02:00
Hans Leidekker
069df69900
winhttp: Only set the scheme if we have a valid URL.
2014-05-24 11:00:39 +09:00
Hans Leidekker
465f85e89d
winhttp: Ignore URL components if the buffer length is zero.
2014-05-24 11:00:28 +09:00
Hans Leidekker
fafbb34f1f
winhttp/tests: Mark some test results on Windows 8 as broken.
2014-05-24 11:00:16 +09:00
Hans Leidekker
9a25a59dc2
winhttp: Fix build on Mac OS X 10.5.8.
2014-05-19 11:33:26 +02:00
Hans Leidekker
50c710bd91
winhttp: Add support for retrieving the proxy automatic configuration URL on Mac OS X.
2014-05-15 19:04:45 +02:00
Hans Leidekker
5522256328
winhttp: Reimplement WinHttpGetProxyForUrl on top of jsproxy.
2014-05-15 19:04:44 +02:00
Hans Leidekker
6494c50ad7
winhttp: Fix a couple of memory leaks (valgrind).
2014-05-13 13:47:11 +02:00
Marcus Meissner
0fe44e1be6
winhttp: Avoid leaking authinfo on error (Coverity).
2014-04-17 10:45:11 +02:00
Nikolay Sivov
2c880e5271
winhttp: Use proper deallocator (Coverity).
2014-04-14 20:19:02 +02:00
Nikolay Sivov
e3a94656f2
winhttp: Move allocation after input validation to fix leaks (Coverity).
2014-03-25 10:56:50 +01:00
Austin English
9665d5a409
winhttp: Skip tests on broken ISPs.
2014-03-24 11:40:51 +01:00
Hans Leidekker
25eb10058c
winhttp/tests: Improve tracing.
2014-02-11 19:19:13 +01:00
Hans Leidekker
50feb7b708
winhttp/tests: Fix a couple of test failures.
2014-02-11 19:19:13 +01:00
Hans Leidekker
97505a7475
winhttp/tests: Move the remaining tests to test.winehq.org.
2014-02-05 15:53:58 +01:00
Hans Leidekker
5b409fb0d4
winhttp/tests: Move the status notification tests to test.winehq.org.
2014-02-05 15:53:56 +01:00
Alexandre Julliard
cf0e96c6d0
configure: Rename substituted variables to a standard _CFLAGS and _LIBS format.
2014-01-30 14:51:33 +01:00
Hans Leidekker
21ff413413
winhttp/tests: Only advance to the next notification test if the function is ok.
2014-01-29 14:50:49 +01:00
Hans Leidekker
513372f044
winhttp/tests: Ignore some missing notifications.
2014-01-29 14:50:48 +01:00
Hans Leidekker
0e9f46d074
winhttp/tests: Fix a test that fails on Windows.
2014-01-28 19:38:40 +01:00
Dmitry Timoshkov
f8d79c83b4
winhttp: Remove unused IUnknown *outer parameter from object constructor.
2014-01-07 15:22:24 +01:00
Alexandre Julliard
99ef0d6ff0
makefiles: Get rid of the MAKE_TEST_RULES variable.
2014-01-02 12:13:16 +01:00
Alexandre Julliard
5e7416e5c8
makefiles: Get rid of the MAKE_DLL_RULES variable.
2014-01-02 12:08:18 +01:00