Commit Graph

604 Commits

Author SHA1 Message Date
Sebastian Lackner 9a7ce56145 wininet/tests: Print the correct function name in ok() messages. 2015-08-12 22:53:30 +09:00
Hans Leidekker 6ab6c23707 wininet/tests: Include the error code in a failure message. 2015-07-17 20:19:47 +09:00
Michael Müller 1b53917ece wininet/tests: Add tests for overriding host header. 2015-06-25 21:01:16 +09:00
Piotr Caban 1a738a556c wininet: Improve handling of long URLs in CreateUrlCacheEntry function. 2015-06-19 17:02:24 +09:00
Huw Davies 53dbffd314 wininet/tests: Fix tests on Win 2k. 2015-06-12 21:22:43 +09:00
Piotr Caban 5306ce9d4a wininet/tests: Test if content is read from cache in INTERNET_FLAG_FROM_CACHE tests. 2015-05-28 22:06:38 +09:00
Hans Leidekker 0b69c706b9 wininet: Reuse cached basic authorization across sessions. 2015-05-01 15:15:02 +09:00
Gerald Pfeifer 4415171ab6 wininet: Avoid four instances of "logical not is only applied to the to the left hand side". 2015-04-17 17:33:45 +09:00
Michael Müller 7c8df7eb5e wininet: Allow Accept-Encoding for HTTP/1.0 requests. 2015-02-24 21:55:48 +09:00
Sebastian Lackner 2ce1650968 wininet: Fix handling of subdirectory in FtpFindFirstFile.
Based on a patch by Mike Ruprecht.
2015-01-14 18:32:00 +01:00
Hans Leidekker 3d9ba21d2f wininet/tests: Add a test to show that the Content-Length header is not updated when a request is reused. 2014-12-19 22:36:16 +01:00
Michael Stefaniuc 51302e011a wininet: Simplify the check for an empty string (PVS-Studio). 2014-11-11 14:22:08 +09:00
Alexandre Julliard d883281806 wininet/tests: Fix a test failure on Windows. 2014-10-30 13:16:42 +09:00
Bruno Jesus 5e13e7f809 wininet: Fix InternetGetConnectedStateEx[A|W]. 2014-10-28 13:53:44 +09:00
Bruno Jesus 3beee00a99 wininet: Add more tests to InternetGetConnectedStateEx. 2014-10-27 14:36:26 +09:00
Hans Leidekker 462f56d468 wininet: Protect the request headers array with a critical section. 2014-09-25 15:20:19 +02:00
Hans Leidekker bbfae5be4b wininet/tests: Update test data to match the new certificate on winehq.org. 2014-09-25 15:20:18 +02:00
Jacek Caban 3241d8450a wininet/tests: Fixed more tests on IE11. 2014-09-05 17:41:28 +02:00
Jacek Caban 4cda419575 wininet/tests: Fixed security flags tests on IE11. 2014-09-04 13:44:42 +02:00
Jacek Caban 7c3364621f wininet/tests: Always use test.winehq.org instead of www.codeweavers.com in tests. 2014-09-03 16:29:36 +02:00
Jacek Caban 8e8eef940a wininet/tests: Fixed most tests on IE11. 2014-09-03 16:29:31 +02:00
Jacek Caban 2aaff6e19f wininet: Include trailing slash in URL cache hashes. 2014-07-16 14:01:05 +02:00
Jacek Caban f72975d811 wininet: Don't allow overriding httponly cookies with non-httponly ones. 2014-07-11 16:59:47 +02:00
Jacek Caban b4ce0760e5 wininet/tests: Added INTERNET_COOKIE_HTTPONLY tests. 2014-07-04 14:52:04 +02:00
Sebastian Lackner 8fd44a3d2b wininet: Fix invalid memory access in HTTP_QUERY_RAW_HEADERS (Valgrind). 2014-07-02 19:57:14 +02:00
Jacek Caban 4e53f0caa0 wininet: Don't try to read content in response to HEAD request. 2014-06-25 14:41:47 +02:00
Bruno Jesus f3b0f488b8 wininet/tests: Add more HTTP_QUERY_RAW_HEADERS tests. 2014-06-25 10:58:13 +02:00
Sebastian Lackner 2e0921d065 wininet: Don't update *lpdwIndex if HttpQueryInfoW fails with ERROR_INSUFFICIENT_BUFFER. 2014-06-18 16:31:42 +02:00
Bruno Jesus 1f713cc567 wininet/tests: Fix a memory leak (valgrind). 2014-06-11 16:11:04 +02:00
Hans Leidekker d6a59f755e wininet: Only set the content length header if it's not explicitly set by the user. 2014-05-26 21:15:37 +09:00
Hans Leidekker 4e340c0a7f wininet/tests: Fix a couple of test failures on Internet Explorer 11. 2014-05-24 11:01:04 +09:00
Huw Davies fec1ed454c wininet/tests: Don't test GetLastError() on success. 2014-05-15 19:04:53 +02:00
Jacek Caban cfb4b0a305 wininet: Fixed tests on some old Windows versions. 2014-03-24 20:20:07 +01:00
Jacek Caban 858caa9aa0 wininet: Merge GetLastError() test into other request tests. 2014-03-24 20:20:06 +01:00
Jacek Caban fd3563b2b9 wininet/tests: Fixed tests for the new winehq.org cert. 2014-03-03 17:02:54 +01:00
Bruno Jesus 7f97339208 wininet/tests: Add tests for InternetGetConnectedStateEx[A|W]. 2014-02-05 13:49:25 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Frédéric Delanoy 0e7e87875c wininet/tests: Constify some character strings. 2013-12-31 12:25:04 +01:00
Hans Leidekker 7ba776532d wininet: Always store the SSL context.
This allows applications to query certificate properties when verification has failed.
2013-12-11 12:57:04 +01:00
Frédéric Delanoy e1ef0d1174 wininet/tests: Use BOOL type where appropriate. 2013-12-05 10:58:20 +01:00
Frédéric Delanoy 0940037301 wininet/tests: Use BOOL type where appropriate. 2013-11-27 10:54:28 +01:00
Ričardas Barkauskas 05396f18e4 wininet/tests: Mark successful query of status before sending request as broken. 2013-11-26 10:22:10 +01:00
Ričardas Barkauskas 992c2bd3e5 wininet: Reset data stream for existing request connections. 2013-11-26 10:20:58 +01:00
Ričardas Barkauskas 920a261d35 wininet/tests: Test successive HttpSendRequest calls. 2013-11-26 10:20:54 +01:00
André Hentschel f34ba03277 wininet/tests: Fix boolean checks. 2013-11-26 10:17:31 +01:00
Hans Leidekker a448bbf880 wininet: Reading past end-of-file in chunked mode returns success.
Found by Andrew Eikum.
2013-11-21 19:39:02 +01:00
Piotr Caban 69b8c97c1d wininet/tests: Fix urlcache tests on IE10. 2013-11-18 11:20:30 +01:00
Ričardas Barkauskas 6c0ee62d7a wininet: Check if connection is alive before sending request. 2013-11-07 13:15:50 +01:00
Jacek Caban e857a70ae2 wininet: Compile tests with -D__WINESRC__. 2013-10-24 19:01:55 +02:00
Jacek Caban 1458856c63 wininet: Added InternetLockRequestFile tests. 2013-10-04 17:46:23 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Michael Stefaniuc 2a39cb377a dlls: Replace the remaining CONSTs. 2013-09-25 11:49:20 +02:00
André Hentschel 7e65578b7c wininet/tests: Don't test function directly when reporting GetLastError(). 2013-09-23 11:53:44 +02:00
Hans Leidekker c0e1dda04c wininet: Don't assume that end of chunk means end of stream. 2013-09-20 11:11:54 +02:00
Hans Leidekker 1bf936c900 wininet: Replacing a header with an empty value deletes it. 2013-08-29 19:56:18 +02:00
Hans Leidekker 0c9321eb0f wininet: Handle NULL input string in str_to_buffer. 2013-07-31 22:26:57 +02:00
Hans Leidekker 5f346f63ba wininet: Ignore INTERNET_FLAG_NO_CACHE_WRITE only for GET requests. 2013-07-31 22:26:57 +02:00
Jacek Caban 10389b272d wininet: Ignore missing status text in response headers. 2013-07-19 16:27:31 +02:00
Jacek Caban 65f9b540a5 wininet/tests: Added HTTP status header tests. 2013-07-12 18:04:26 +02:00
Jacek Caban 2782f36b1d wininet/tests: Added more cert struct tests. 2013-06-14 16:44:06 +02:00
Alexandre Julliard df17007af7 wininet/tests: Use test.winehq.com for invalid certs tests. 2013-06-13 17:10:04 +02:00
Hans Leidekker 697cbc3605 wininet/tests: Avoid proxy test failures on old wininet. 2013-06-12 12:08:24 +02:00
Ričardas Barkauskas 188b39ab2b wininet/tests: Test some connection closing specifics. 2013-06-05 19:39:38 +02:00
Marcus Meissner 038e3d3773 wininet: Avoid one-byte overflows (Coverity). 2013-05-31 11:57:19 +02:00
Marcus Meissner 4c20fec045 wininet/tests: Avoid overflowing the buffer (Coverity). 2013-05-28 14:33:15 +02:00
Alexandre Julliard 147ffa0ccd wininet/tests: Use test.winehq.org for all certificate tests. 2013-05-23 20:03:17 +02:00
Daniel Lehman d3308e6f09 wininet: Only accept proxy and proxy bypass if type is INTERNET_OPEN_TYPE_PROXY. 2013-05-08 20:43:22 +02:00
Piotr Caban 33d62f3f17 wininet: Handle NULL req->netconn in INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT query. 2013-05-03 21:39:25 +02:00
Piotr Caban dd35601b07 wininet: Handle NULL req->netconn in INTERNET_DIAGNOSTIC_SOCKET_INFO query. 2013-05-03 21:39:24 +02:00
Hans Leidekker d8c92b6294 wininet/tests: Skip proxy tests on broken wininet. 2013-05-01 16:01:07 +02:00
Piotr Caban 8dfd89c2e0 wininet: Add test of reading gzipped content from cache. 2013-04-30 18:44:47 +02:00
Hans Leidekker 669a1b3562 wininet/tests: Improve error reporting in a couple of tests. 2013-04-25 13:40:01 +02:00
Piotr Caban 4c4a922e27 wininet: Improve searching for no-store header in HTTP response. 2013-04-24 14:32:34 +02:00
Hans Leidekker bedf296a27 wininet: Add support for INTERNET_OPTION_PROXY_USERNAME and INTERNET_OPTION_PROXY_PASSWORD. 2013-04-22 12:37:51 +02:00
Hans Leidekker 26b59bf8e5 wininet/tests: Add tests for a prematurely closed connection. 2013-04-17 16:31:09 +02:00
Piotr Caban 0d50e86f6a wininet: Fixed Cache-Content: no-cache tests. 2013-04-15 15:17:21 +02:00
Piotr Caban b0ef7b401c wininet: Skip some urlcache Unicode tests if ANSI version of URL is not known. 2013-04-08 19:49:07 +02:00
Jacek Caban cde372700c wininet: Use schannel for HTTPS connection by defaul and get rid of OpenSSL dependency. 2013-04-03 17:50:03 +02:00
Piotr Caban f08246c25f wininet: Added urlcache Unicode functions tests. 2013-04-01 19:28:59 +02:00
Piotr Caban c8d1d76909 wininet: Do case-insensitive compare when looking for scheme. 2013-04-01 14:07:57 +02:00
Piotr Caban 0e0f06412a wininet: Added tests for Cache-Control: no-cache and no-store HTTP headers. 2013-03-13 17:12:11 +01:00
Piotr Caban 9d6843a8c1 wininet: Test if cache entry is created when INTERNET_FLAG_NO_CACHE_WRITE flag is used. 2013-03-13 17:12:06 +01:00
Jacek Caban 3157534347 wininet: Skip test_open_url_async on IEs older than 7. 2013-03-11 10:42:18 +01:00
Jacek Caban 9d11eee03d wininet: Added a test of request reading from cache. 2013-03-08 18:11:05 +01:00
Hans Leidekker 6a609c21bb wininet: Port resolution doesn't depend on the secure flag. 2013-03-06 15:10:44 +01:00
Jacek Caban aa4ccd807d wininet: Removed broken cache tests. 2013-02-18 17:02:18 +01:00
Jacek Caban 3098e3c355 wininet: Address string should never be converted to UNICODE in status notifications. 2013-02-18 17:02:14 +01:00
Jacek Caban 851866e22a wininet: Set available bytes in InternetQueryDataAvailable even if it ends up in async call. 2013-02-14 20:05:05 +01:00
Hans Leidekker c68bb8da7f wininet/tests: Fix a test failure. 2013-02-12 19:56:42 +01:00
Detlef Riekenberg 097dee606e wininet: Don't depend on user settings. 2013-01-28 19:43:32 +01:00
Detlef Riekenberg 2a66b25e6d wininet: Remove most GetLastError tests for IsDomainLegalCookieDomainW. 2013-01-28 19:43:32 +01:00
Detlef Riekenberg e1c2f18ab1 wininet: Fix a test failure on w2k. 2013-01-28 19:43:32 +01:00
Jacek Caban 81edd2acfc wininet: Fixed handling NULL buffer in INTERNET_OPTION_PROXY queries. 2013-01-08 12:18:06 +01:00
Andrew Eikum d6c0e8159b wininet: Fail on URLs without a scheme. 2013-01-02 13:10:51 +01:00
Jacek Caban f877fe9ba4 wininet: Properly handle output buffer size in InternetGetCookieA. 2012-12-28 11:26:56 +01:00
Jacek Caban 0c02e35841 wininet: Properly handle output buffer size in InternetGetCookieW. 2012-12-28 11:26:52 +01:00
Hans Leidekker f33f7a5df1 wininet: Map socket errors to ERROR_INTERNET_CANNOT_CONNECT in create_netconn_socket. 2012-12-19 14:38:59 +01:00
Jacek Caban 21e7e28d64 wininet: Fixed NULL cookie data pointer handling in InternetGetCookieA. 2012-12-03 19:13:23 +01:00
Erich Hoover 499c53175b wininet: Fix InternetCrackUrl parsing URLs containing a semicolon. 2012-11-16 19:25:11 +01:00
Jacek Caban 54639c5dc5 wininet: Commit cache file as soon as all data is written. 2012-11-02 19:47:19 +01:00
Jacek Caban b012765e91 wininet: Write received data to cache before notifying progress. 2012-11-02 19:47:18 +01:00
Piotr Caban 8e6d2bab37 wininet: Fixed failing test. 2012-10-03 13:14:29 +02:00
Piotr Caban fc219b0ab3 wininet: Added basic cookie domain validation in set_cookie function. 2012-10-01 14:32:24 +02:00
Piotr Caban c34bc977a0 wininet: Added basic persistent cookie tests. 2012-10-01 14:32:17 +02:00
Piotr Caban 306f53cbf2 wininet: Added more GetUrlCacheEntryInfo tests with GET_INSTALLED_ENTRY flag. 2012-09-25 21:13:08 +02:00
Piotr Caban 71511c9fc5 wininet: Added tests for entries with identical hash key. 2012-09-24 22:27:28 +02:00
Piotr Caban 95a4f3dd6d wininet/tests: Remove all temporary files. 2012-09-18 14:51:29 +02:00
Piotr Caban 65034ce2a4 wininet: Set entry type based on container type. 2012-09-18 14:51:21 +02:00
Piotr Caban 8f2b0fdf52 wininet: Added support for cache entries overwriting. 2012-09-18 14:51:05 +02:00
Piotr Caban 359ed33824 wininet: Delete file when cache entry is deleted. 2012-09-18 14:50:54 +02:00
Piotr Caban 7967f8beec wininet: Don't define DELETED_CACHE_ENTRY in public headers. 2012-09-18 14:50:49 +02:00
Jacek Caban c4c3ff47e7 wininet: Set last error for invalid URL argument. 2012-09-04 17:32:31 +02:00
Gerald Pfeifer 44953d7003 wininet: Fix initialization in test_cert_struct. 2012-08-20 20:18:11 +02:00
Bruno Jesus dc9f5becd1 wininet/tests: Add invalid index test for HttpQueryInfo. 2012-08-17 09:56:39 +02:00
Alex Henrie 0b64d319c9 wininet: Support ICU_ENCODE_PERCENT, ICU_ENCODE_SPACES_ONLY, and ICU_NO_META. 2012-07-31 10:53:54 +02:00
Jacek Caban 120c413f39 wininet: Fixed returned buffer size in HttpQueryInfo(HTTP_QUERY_STATUS_CODE) when insufficient buffer is passed. 2012-06-15 20:29:28 +02:00
Jacek Caban 1325c400c1 wininet: Added InternetGetSecurityInfoByURL tests. 2012-06-11 12:19:07 +02:00
Jacek Caban e3dfbe33f6 wininet: Skip security flags tests on too old wininet versions. 2012-06-08 19:35:08 +02:00
Jacek Caban f6fc1e3cac wininet: Added more security flags and errors tests. 2012-06-07 16:07:13 +02:00
Jacek Caban 448f2452c4 wininet: Added support for ERROR_INTERNET_SEC_CERT_REV_FAILED in InternetErrorDlg. 2012-06-07 16:07:13 +02:00
Jacek Caban b5fec3c033 wininet: Store request object instead of handle in error dialog. 2012-06-07 16:07:12 +02:00
Jacek Caban 0133683c46 wininet: Added support for undocumented InternetQueryOption(98). 2012-06-05 10:23:54 +02:00
Jacek Caban 37e483d567 wininet: Use CRLF separator in INTERNET_CERTIFICATE_INFO. 2012-05-30 17:17:56 +02:00
Jacek Caban 79259064c9 wininet: Handle error flags only for masked-error mode. 2012-05-29 10:43:50 +02:00
Jacek Caban 22e25ea006 wininet: Added INTERNET_OPTION_SECURITY_FLAGS tests. 2012-05-25 16:59:01 +02:00
Jacek Caban 17d683b0f4 wininet: Added INTERNET_OPTION_REQUEST_FLAGS tests. 2012-05-24 20:08:47 +02:00
Jacek Caban c0400560b5 wininet: Moved querying INTERNET_OPTION_REQUEST_FLAGS implementation to HTTPREQ_QueryOption. 2012-05-23 19:12:11 +02:00
Michael Stefaniuc 92c97c1710 wininet/tests: Remove wrong check for 'len'. 2012-05-22 17:44:02 +02:00
Francois Gouget fac36c55e9 Assorted typo, spelling, wording and case fixes. 2012-05-15 16:26:43 +02:00
Piotr Caban d5913b5c45 wininet/tests: Added INTERNET_OPTION_CONNECT_TIMEOUT setting tests. 2012-05-14 17:46:37 +02:00
Jacek Caban 07e5b87feb wininet: Fixed typo in tests and accompanying implementation. 2012-05-14 17:42:13 +02:00
Alexandre Julliard 0b3b6ba26d wininet/tests: Mark a failing test as broken. 2012-05-09 23:20:51 +02:00
Alexandre Julliard 80376eacd5 wininet/tests: Add even more optional COOKIE_SENT messages. 2012-05-03 23:40:21 +02:00
Jacek Caban 2aa3d697a3 wininet: Set status code OK for responses without headers. 2012-05-03 20:44:14 +02:00
Jacek Caban 0d76489353 wininet: Added special case for HTTP_QUERY_STATUS_CODE in HttpQueryInfo. 2012-05-03 20:44:13 +02:00
Jacek Caban ebf406c163 wininet: Clean up HTTP_QUERY_STATUS_CODE tests. 2012-05-03 20:44:11 +02:00
Alexandre Julliard 9ec1f7ba1b wininet/tests: Add more optional COOKIE_SENT messages. 2012-05-03 10:11:28 +02:00
Alexandre Julliard 415d7a4401 wininet/tests: Add some optional COOKIE_SENT messages in various places. 2012-05-02 13:01:34 +02:00
Morten Rønne 4b3e4fa87b wininet/tests: Moved a test outside a loop to make numbers of tests run independent on the numbers of entries in the cache. 2012-04-09 18:10:32 +02:00
Piotr Caban d1ecb6d9ba wininet: Don't delete locked entry in DeleteUrlCacheEntry. 2012-04-06 20:12:40 +02:00
Morten Rønne e0f93874c8 wininet/tests: Added more tests for urlcache, including a new flag in CacheEntryType. 2012-04-05 17:53:14 +02:00
Morten Rønne fb81502a50 wininet/tests: Fixed text errors in tests. 2012-04-05 17:53:14 +02:00
Jacek Caban a3709badab wininet: Added more connection limit options tests. 2012-03-08 17:59:40 +01:00
Jacek Caban 7a1ad69869 wininet: Added more connection failure tests. 2011-12-08 18:04:31 +01:00
Jacek Caban 3dc2c3ca44 wininet: Use test.winehq.org instead of crossover.codeweavers.com in test_async_HttpSendRequestEx. 2011-12-08 18:04:30 +01:00
Andy Clayton da11075000 wininet: Avoid calling HTTP_ReceiveRequestData before reading headers. 2011-11-23 18:08:48 +01:00
Hans Leidekker 85e9e21929 wininet: Ignore the accept types array in HttpOpenRequestA if there are invalid pointers. 2011-09-27 16:24:26 +02:00
Alexandre Julliard 905d6844e3 wininet/tests: Avoid crash on test failure. 2011-09-09 15:57:59 +02:00
Alexandre Julliard 006bb26b8c wininet/tests: Remove an invalid FTP test. 2011-09-01 18:06:39 +02:00
André Hentschel 37cdf6bd26 wininet: Test and fix possible error situations for InternetQueryOption with INTERNET_OPTION_PROXY. 2011-08-24 12:14:46 +02:00