Commit Graph

189 Commits

Author SHA1 Message Date
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
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
Michael Müller d2890778f9 winhttp: Raw request headers need to be terminated with double \r\n. 2015-08-18 17:30:48 +09:00
Hans Leidekker 1def0982f1 winhttp: Always clear last error on success. 2015-08-03 20:50:33 +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 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 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 5505413a81 winhttp: Implement IWinHttpRequest::get_ResponseStream. 2015-02-16 23:28:34 +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
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 647abcafb6 winhttp: Convert the async parameter to VT_BOOL if necessary in IWinHttpRequest::Open. 2014-12-09 13:16:36 +01:00
Hans Leidekker 0d50168570 winhttp/tests: Handle more potential connection failures. 2014-12-09 13:16:24 +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
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
Austin English 9665d5a409 winhttp: Skip tests on broken ISPs. 2014-03-24 11:40:51 +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 0e9f46d074 winhttp/tests: Fix a test that fails on Windows. 2014-01-28 19:38:40 +01:00
Frédéric Delanoy e7f8e9e81d winhttp/tests: Constify a character string. 2013-12-31 12:25:01 +01:00
Andrew Eikum 04f0426fe6 winhttp: Attempt to refill empty buffer before answering QueryDataAvailable. 2013-10-17 20:29:40 +02:00
Hans Leidekker ceeff119a2 winhttp/tests: Compile with -D__WINESRC__. 2013-10-14 17:26:15 +02:00
Hans Leidekker 8946346f51 winhttp: Fix a test failure on Windows 8 and conform to the more recent behavior. 2013-10-14 17:26:15 +02:00
Hans Leidekker fe678927dd winhttp: Fix invalid parameter handling in WinHttpQueryAuthSchemes. 2013-08-19 19:04:23 +02:00
Hans Leidekker 78fc21cdb5 winhttp: Allow setting NULL username and password for NTLM, Passport and Negotiate. 2013-08-19 19:04:17 +02:00
Hans Leidekker d285629cf4 winhttp/tests: Add some tests for WinHttpDetectAutoProxyConfigUrl. 2013-06-25 18:12:11 +02:00
Hans Leidekker 50febc4888 winhttp/tests: Test query schemes. 2013-06-12 15:52:53 +02:00
Hans Leidekker 4df4339f8e winhttp/tests: Trace certificate errors. 2013-06-10 19:30:47 +02:00
Hans Leidekker bb3097f01e winhttp: Add a read-ahead buffer to allow WinHttpQueryDataAvailable to return the right values in chunked mode.
This is a port of wininet commit 3d02c42b39.
2013-03-25 16:27:34 +01:00
Hans Leidekker 02f2ab9437 winhttp: Implement WINHTTP_OPTION_CONNECTION_INFO. 2013-03-15 11:45:09 +01:00
Jacek Caban 0ebbd991c1 winhttp: Test that the data is really read in test_secure_connection. 2013-01-23 20:47:29 +01:00
Hans Leidekker 8d0551b98d winhttp/tests: Accept another error from WinHttpGetProxyForUrl. 2013-01-02 13:15:18 +01:00
Hans Leidekker ec1ae3b6e6 winhttp/tests: Make sure proxy settings are restored. 2012-12-21 14:15:36 +01:00
Francois Gouget 3951cb660f winhttp/tests: Make some traces more explicit. 2012-12-14 17:37:42 +01:00
Hans Leidekker 8ca3e80ddd winhttp: Fix the error returned from WinHttpGetProxyForUrl when autodetection fails. 2012-11-01 15:42:39 +01:00
Heiko Hund 1ba968821a winhttp: Make strings in WINHTTP_PROXY_INFO non-const. 2012-07-19 16:01:18 +02:00
Hans Leidekker 189c1ca5d9 winhttp: Fix up headers with wrong termination. 2012-03-12 16:37:21 +01:00
Hans Leidekker 3a204f50ae winhttp/tests: Avoid crashes on some win2k systems. 2011-12-19 20:15:50 +01:00
Hans Leidekker 768300c8aa winhttp: Implement WinHttpGetProxyForUrl. 2011-11-18 15:37:05 +01:00
Hans Leidekker f6c46dd074 winhttp: Implement WinHttpGetIEProxyConfigForCurrentUser. 2011-11-16 16:59:37 +01:00
Hans Leidekker 96f2e7139c winhttp: Implement WinHttpDetectAutoProxyConfigUrl. 2011-11-15 19:37:30 +01:00
Hans Leidekker 3c9d356bc4 winhttp: Convert string data to UTF-8 and add a corresponding content type header. 2011-11-14 13:10:18 +01:00
Marcus Meissner 8648c13140 winhttp: Fixed sizeof calls (Coverity). 2011-10-17 17:45:02 +02:00
Hans Leidekker 3762de9d8c winhttp/tests: Initialize a variant with a known value. 2011-09-05 17:17:11 +02:00
Hans Leidekker 40bf74107f winhttp: Implement IWinHttpRequest::SetAutoLogonPolicy. 2011-08-02 11:51:05 +02:00
Hans Leidekker c54772c114 winhttp: Fix some valgrind warnings. 2011-07-29 13:32:41 +02:00
Hans Leidekker 114bc2b856 winhttp: Implement IWinHttpRequest::SetRequestHeader. 2011-07-26 10:24:10 +02:00
Hans Leidekker 2c8765e7fb winhttp: Implement IWinHttpRequest::GetResponseHeader. 2011-07-26 10:24:05 +02:00
Hans Leidekker 3638908039 winhttp: Add some parameter checks. 2011-07-26 10:23:59 +02:00
Hans Leidekker 9237479d22 winhttp: Implement IWinHttpRequest::SetProxy. 2011-07-26 10:23:20 +02:00
Hans Leidekker 694d43a910 winhttp: Set last error if the server didn't return a valid response. 2011-07-24 12:33:59 +02:00
Hans Leidekker b218ed1a69 winhttp: Implement IWinHttpRequest::SetCredentials. 2011-07-24 12:33:54 +02:00
Hans Leidekker a25c865cb8 winhttp: Implement IWinHttpRequest::get_ResponseBody. 2011-07-24 12:33:49 +02:00
Hans Leidekker 116160f4ef winhttp: Add tests for IWinHttpRequest. 2011-07-21 15:36:39 +02:00
Austin English 3455c78042 winhttp/tests: Make sure a return value is used (LLVM/Clang). 2011-02-09 09:29:30 -06:00
Greg Geldorp 4745c567f5 winhttp/tests: Fix tests when connecting via proxy. 2011-01-17 17:33:23 +01:00
Hans Leidekker 5fc17a2800 winhttp: Handle errors from SSL_read. 2010-07-22 12:52:39 +02:00
Hans Leidekker be37038090 winhttp: Add a partial implementation of WINHTTP_OPTION_SECURITY_CERTIFICATE_STRUCT. 2010-07-22 12:52:36 +02:00
Juan Lang f3968fdf80 winhttp/tests: Skip tests when a connection fails. 2010-06-08 12:59:09 +02:00
Paul Vriens f8470fe408 winhttp/tests: Show the correct error. 2010-05-08 13:12:58 +02:00
Hans Leidekker 15daa84b28 winhttp/tests: Avoid test failures caused by broken DNS server configurations.
Reported by Stefan Dösinger.
2010-04-22 18:11:42 +02:00
Hans Leidekker 6842c7d8a8 winhttp/tests: Use the right handle type. 2010-04-22 18:11:42 +02:00
Hans Leidekker cd79874cee winhttp: Add tests for basic authentication. 2010-04-22 18:11:42 +02:00
Hans Leidekker 24e1fcc7a0 winhttp: Support setting and querying credentials on request handles. 2010-04-22 18:11:42 +02:00
Hans Leidekker b467efb5c8 winhttp: Add support for resolve timeouts. 2010-02-22 13:15:56 +01:00
Matijn Woudt 3ed5df1e3c winhttp: Implement WINHTTP_OPTION_{CONNECT, SEND, RECEIVE}_TIMEOUT. 2010-01-29 17:28:18 +01:00
Matijn Woudt d0983e9ec2 winhttp: Add timeout for session handles and implement for WinHttpSetTimeouts. 2010-01-29 17:28:03 +01:00
Matijn Woudt a09e659a37 winhttp/tests: Add timeout tests for WinHttp{Set, Query}Option. 2010-01-29 17:27:30 +01:00
Matijn Woudt 5a712037af winhttp/tests: Add tests for WinHttpSetTimeouts. 2010-01-28 12:13:27 +01:00
Marcus Meissner a01d392153 winhttp: On NULL request, skip the other tests (Coverity). 2010-01-28 11:09:10 +01:00
Hans Leidekker e4471d5f80 winhttp: Store the context passed to WinHttpSendRequest. 2010-01-25 14:05:11 +01:00
Juan Lang c02ee18869 winhttp/tests: Skip secure connection tests if the request fails. 2009-12-14 12:04:03 +01:00
Juan Lang b0f5b96efe winhttp/tests: Only free a certificate context if retrieving it succeeded. 2009-12-09 13:13:49 +01:00