Commit Graph

2099 Commits

Author SHA1 Message Date
Michael Müller 05a10d5fc8 wininet/tests: Add more tests for INTERNET_INVALID_PORT_NUMBER.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-27 19:42:27 +09:00
Sebastian Lackner 076189c762 wininet: Remove unused 'sync' argument from HTTPREQ_Read.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-22 21:04:37 +09:00
Alistair Leslie-Hughes 5ee82583f7 wininet: Free socket when connection is freed.
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>
2016-04-12 12:03:17 +09:00
Alexandre Julliard 61d1c95ea4 wininet/tests: Remove todo from a succeeding test.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-18 02:03:22 +09:00
Nikolay Sivov 1b06662f0b wininet/tests: Use todo_wine_if() in tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-17 13:08:25 +09:00
André Hentschel 676e615613 wininet/tests: Use todo_wine_if() in tests.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 12:09:39 +09:00
Hans Leidekker 05eae360d7 wininet/tests: Fix test failures.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-26 22:37:28 +09:00
André Hentschel f3e3c895c7 wininet: Return the correct error code (Clang).
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-23 09:12:45 +01:00
Jacek Caban 6790d825d1 wininet: Improved debug traces.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 01:08:50 +09:00
Nikolay Sivov bb59c3f77e wininet: Remove a bit of dead code (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:14 +09:00
Piotr Caban 493d414cad wininet: Create file with correct file name in test_trailing_slash tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-13 11:53:25 +09:00
Alistair Leslie-Hughes 7e7519d1f5 wininet: Free critical section (Valgrind).
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>
2015-11-11 19:39:28 +09:00
Sebastian Lackner e609b39818 wininet/tests: Add test for using NULL as proxy server.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-09 19:26:36 +09:00
Michael Müller 54a390b4ac wininet: Disabling proxy should return success when no proxy was enabled.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-09 19:26:27 +09:00
Hans Leidekker d050343c50 wininet: Set Content-Length header to zero if the verb is CONNECT.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
2015-10-06 00:08:25 +09:00
Hans Leidekker 1a74ccc8c5 wininet/tests: Fix a couple of test failures.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
2015-10-01 16:23:08 +09:00
Hans Leidekker d8ddf1b0e1 wininet/tests: Never use a proxy for connections to localhost.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
2015-10-01 16:23:06 +09:00
Andrey Gusev d3177504b1 Assorted spelling and typos fixes. 2015-08-31 20:18:46 +09:00
Hans Leidekker e5ce90ed1b wininet: Don't trace the password in InternetConnectW. 2015-08-27 22:14:05 +09:00
Michael Müller 7bed453481 wininet: Set Host header in HttpSendRequestW instead of HttpOpenRequestW. 2015-08-25 17:43:12 +09:00
Daniel Lehman 1cab27e960 wininet: Use stored server name in HTTP_ProcessCookies. 2015-08-24 14:41:51 +09:00
Sebastian Lackner 9a7ce56145 wininet/tests: Print the correct function name in ok() messages. 2015-08-12 22:53:30 +09:00
Hans Leidekker f7538bfe47 wininet: Add a stub implementation of INTERNET_OPTION_SUPPRESS_BEHAVIOR. 2015-07-29 21:44:02 +02: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 efd41e4f2b wininet: Fix arguments of HttpAddRequestHeaders. 2015-06-25 22:04:54 +09:00
Michael Müller 1b53917ece wininet/tests: Add tests for overriding host header. 2015-06-25 21:01:16 +09:00
Jacek Caban 9d3fda008f wininet: Cache blocking state in netconn_t. 2015-06-22 19:16:49 +09:00
Jacek Caban eef89b5070 wininet: Call set_socket_blocking always and only when needed. 2015-06-22 19:16:49 +09:00
Piotr Caban 1a738a556c wininet: Improve handling of long URLs in CreateUrlCacheEntry function. 2015-06-19 17:02:24 +09:00
Jacek Caban 9d7d27ea7f wininet: Don't use blocking_mode_t in netconn.c. 2015-06-19 17:00:05 +09:00
Jacek Caban 6fe5546210 wininet: Get rid of unneeded MSG_WAITALL support in NETCON_recv. 2015-06-18 21:41:03 +09:00
Jacek Caban 049a3ba401 wininet: Don't pass BLOCKING_WAITALL to NETCON_recv in netconn_read. 2015-06-16 20:00:37 +09:00
Michael Müller 9564940461 wininet: Use random names when caching very long urls. 2015-06-15 15:29:05 +09:00
Jacek Caban 7fa7e9bd3b wininet: Get rid of no longer needed read_chunked field. 2015-06-15 14:46:49 +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
Michael Müller 81b136fe1c wininet: Fix memory leak by not calling get_cookie_header twice. 2015-05-18 14:06:12 +09:00
Nikolay Sivov b2cb6b3e26 wininet: Make sure we pass strictly 0/1 to a helper as BOOL value. 2015-05-14 14:20:56 +09:00
Hans Leidekker 0b69c706b9 wininet: Reuse cached basic authorization across sessions. 2015-05-01 15:15:02 +09:00
Jacek Caban 07520fbf12 wininet: Initialize send and receive timeouts to 0. 2015-04-24 22:03:53 +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
Marcus Meissner c1c06a9093 wininet: Avoid memory leak in error exit (Coverity). 2015-04-10 15:21:19 +09:00
Daniel Lehman a57c91ed39 wininet: Trace loaded proxy settings. 2015-04-07 15:11:37 +09:00
Francois Gouget ef0b22aabb wininet; Mark internal symbols with hidden visibility. 2015-04-03 00:33:30 +09:00
Francois Gouget a1e90facf8 wininet: Remove an unneeded NONAMELESSSTRUCT directive. 2015-04-01 14:13:12 +09:00
Jacek Caban b720e42fcf wininet: Pass timeout as DWORD in setsockopt calls. 2015-03-25 21:17:44 +09:00
Daniel Lehman e889dd8eaa wininet: Accept Version in cookies. 2015-03-13 21:52:15 +09:00
Jacek Caban 8ef78d068f wininet: Get rid of no longer needed sock_get_error. 2015-03-12 13:54:16 +09:00
Daniel Lehman c921deebf1 wininet: Eat terminator on last chunk. 2015-03-06 12:56:29 +09:00
Michael Stefaniuc 745a549972 wininet: Remove unused code, sizeof(void*)%4 is always false (PVS-Studio). 2015-03-05 21:22:01 +09:00
Alexandre Julliard 5bf29fb897 wininet: Hardcode the base64 table to avoid ugly macros. 2015-03-04 21:50:35 +09:00
Jacek Caban 6d4abc78d0 wininet: Call WSACleanup only if WSAStartup was previously called successfully.
Spotted by Piotr.
2015-02-24 21:55:49 +09:00
Michael Müller 7c8df7eb5e wininet: Allow Accept-Encoding for HTTP/1.0 requests. 2015-02-24 21:55:48 +09:00
Thomas Faber d742f6e821 wininet: Avoid empty initializer braces. 2015-02-17 22:04:17 +09:00
Jacek Caban 6a0eb2ddd7 wininet: Don't include ws2tcpip.h after zlib.h. 2015-02-16 19:19:25 +09:00
Jacek Caban 47778f95fa wininet: Moved inet_ntop call to GetAddress. 2015-02-16 19:19:10 +09:00
Jacek Caban 100bd11ae5 wininet: Use GetAddrInfoW in GetAddress. 2015-02-16 19:19:06 +09:00
Jacek Caban 11d09f1fe7 wininet: Don't strip port part from server name in GetAddress.
Callers take care of that already.
2015-02-16 19:19:00 +09:00
Jacek Caban 5436fef807 wininet: Always use winsock sockets. 2015-02-13 21:47:13 +09:00
Jacek Caban 5d6d2fda7b wininet: Use set_socket_blocking helper in a few more places. 2015-02-13 21:46:50 +09:00
Jacek Caban 7410bf5896 wininet: Moved INTERNET_GetNextLine to ftp.c. 2015-02-13 21:46:43 +09:00
Jacek Caban fdf50ba883 wininet: Removed direct errno usage in ftp.c. 2015-02-13 21:46:36 +09:00
Jacek Caban de5c1fb8e9 wininet: Initialize winsock before creating socket in Windows builds. 2015-02-12 22:12:04 +09:00
Jacek Caban 4fe1be148e wininet: Properly handle EWOULDBLOCK return from connect(). 2015-02-12 17:58:01 +09:00
Jacek Caban f3e02c2fc0 wininet: Properly check for ioctlsocket failure in NETCON_is_alive. 2015-02-12 17:57:57 +09:00
Jacek Caban c815baf899 wininet: Use sock_get_error in a few more places. 2015-02-12 17:57:49 +09:00
Jacek Caban cafbd54457 wininet: Use WSAGetLastError in sock_get_error in Windows builds. 2015-02-12 17:57:25 +09:00
Jacek Caban 8efedaf045 wininet: Use proper argument type for ioctlsocket argument. 2015-02-12 17:56:55 +09:00
Michael Stefaniuc b32d93a10b wininet: Remove an unused assignment (PVS-Studio). 2015-01-23 15:33:03 +01: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
Bruno Jesus d654ff6dfc wininet: Handle CERT_TRUST_IS_NOT_SIGNATURE_VALID in netconn_verify_cert(). 2014-12-31 11:38:45 +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
Hans Leidekker de64feaa5c wininet: Use a helper function to remove request headers. 2014-12-19 22:36:14 +01:00
André Hentschel cdf2412203 wininet: Remove unused strings (Clang). 2014-12-04 14:03:28 +01:00
Michael Stefaniuc 51302e011a wininet: Simplify the check for an empty string (PVS-Studio). 2014-11-11 14:22:08 +09:00
Michael Stefaniuc 06afdda617 wininet: Simplify while loop conditions (PVS-Studio). 2014-10-31 10:50:38 +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
Daniel Lehman f3455da6ff wininet: Remove custom port handling in HTTP_HandleRedirect. 2014-10-28 13:43:54 +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 1f12306144 wininet: Properly clean up in InternetGetCookieExW if no cookies were found. 2014-09-18 13:06:42 +02:00
Jacek Caban c639e757d5 wininet: Moved critical section locking to get_cookie callers so that cookie_set_t is also protected. 2014-09-17 12:55:01 +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 55e3ec650e wininet: Fixed buffer size rising in get_cookie. 2014-09-02 20:54:45 +02:00
Jacek Caban 1cfee7da6e wininet: Moved DllInstall to internet.c. 2014-07-24 13:02:09 +02:00
Jacek Caban e1dbfb762c wininet: Fixed leak in InternetGetConnectedStateExA. 2014-07-24 13:01:17 +02:00
Jacek Caban 2aaff6e19f wininet: Include trailing slash in URL cache hashes. 2014-07-16 14:01:05 +02:00
Jacek Caban e24ce4c128 wininet: Added new cookie_set_t type and use it in get_cookie. 2014-07-15 22:39:09 +02:00
Thomas Faber 9609df86e3 wininet: Do not omit mandatory argument to WriteFile. 2014-07-14 17:22:25 +02:00
Jacek Caban 4707b4483b wininet: Rewrite structs storing cookies to represent domains as a tree. 2014-07-14 17:21:38 +02:00
Jacek Caban ffec675b4f wininet: Use stored server name in HTTP_InsertCookies. 2014-07-14 17:21:35 +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
Jacek Caban db441cf58f wininet: Added support for INTERNET_COOKIE_HTTPONLY flag to InternetGetCookieEx. 2014-07-04 14:51:44 +02:00
Jacek Caban 314e295820 wininet: Added support for INTERNET_COOKIE_HTTPONLY flag to InternetSetCookieEx. 2014-07-04 14:51:40 +02:00
Jacek Caban b3cfae8108 wininet: Fixed InternetSetCookieExW return type and forward InternetSetCookieW to InternetSetCookieExW instead of the other way around. 2014-07-04 14:51:30 +02:00
Jacek Caban 9228a3be52 wininet: Forward InternetSetCookieExA to InternetSetCookieExW instead of InternetSetCookieA. 2014-07-04 14:51:17 +02:00
Jacek Caban 69c4115c10 wininet: Forward InternetGetCookieW to InternetGetCookieExW, not the other way around. 2014-07-03 18:17:50 +02:00
Jacek Caban 2551f09203 wininet: Forward InternetGetCookieA to InternetGetCookieExA, not the other way around. 2014-07-03 18:17:48 +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
Frédéric Delanoy 2ab8729020 Assorted spelling/grammar fixes. 2014-06-20 12:19:31 +02:00
Jacek Caban 153abe0fa7 wininet: Use current server in HTTP_GetRedirectURL. 2014-06-19 17:08:57 +02:00
Jacek Caban a33ae13f7f wininet: Update hostPort in HTTP_HandleRedirect. 2014-06-19 17:08:55 +02:00
Jacek Caban 7ab99b5c48 wininet: Don't change hostPort in HTTP_HttpOpenRequestW. 2014-06-19 17:08:53 +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 8a15ea1190 wininet: Use a helper to receive data and take care of EINTR. 2014-06-12 18:05:06 +02:00
Bruno Jesus 1b8d8ef372 wininet: Use a helper to send data and take care of EINTR. 2014-06-11 16:11:44 +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
Hans Leidekker 654bef8f37 wininet: Fix build on Mac OS X 10.5.8. 2014-05-19 11:33:24 +02:00
Huw Davies fec1ed454c wininet/tests: Don't test GetLastError() on success. 2014-05-15 19:04:53 +02:00
Hans Leidekker e49ebbe953 wininet: Fix a memory leak (valgrind). 2014-05-13 13:47:11 +02:00
Hans Leidekker 89d40b3de1 wininet: Add support for retrieving the proxy automatic configuration URL on Mac OS X. 2014-05-06 13:49:47 +02:00
Hans Leidekker 5b56624a1b wininet: Handle secure proxy connections inside the main loop.
This adds support for authenticated secure proxy connections.
2014-05-06 13:49:09 +02:00
Hans Leidekker 4036475dc6 wininet: Only parse proxy URLs taken from the environment.
Proxy server strings stored in the registry use a different format.
2014-05-06 13:49:05 +02:00
Hans Leidekker 9946e8a87e wininet: Fix a couple of memory leaks. 2014-05-06 13:49:00 +02:00
Hans Leidekker 282b9c7bb7 wininet: Use a semicolon to delimit registered proxy servers. 2014-05-06 13:48:57 +02:00
Nikolay Sivov d87724e626 wininet: Remove some dead code (Coverity). 2014-04-15 21:03:54 +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 22e75c69ab wininet: Added support for raw deflate content encoding. 2014-03-05 19:17:00 +01:00
Jacek Caban 2667a5376c wininet: Get rid of no longer needed hack in gzip_read that prevents consuming the whole input buffer until we're at the end of stream. 2014-03-05 19:16:58 +01:00
Jacek Caban b7c47c033c wininet: Use non-blocking reads in netconn_drain_content. 2014-03-05 19:16:55 +01:00
Jacek Caban f9a16d70e2 wininet: Get rid of no longer needed size calculation in netconn_read. 2014-03-05 19:16:53 +01:00
Jacek Caban d8948da1b4 wininet: Improved non-blocking mode in secure NETCON_recv. 2014-03-05 19:16:50 +01:00
Jacek Caban 0767e06044 wininet: Use blocking_mode_t instead of flags in NETCON_recv. 2014-03-05 19:16:46 +01:00
Jacek Caban ac58c3e8bc wininet: Renamed read_mode_t to blocking_mode_t. 2014-03-05 19:16:41 +01:00
Jacek Caban fd3563b2b9 wininet/tests: Fixed tests for the new winehq.org cert. 2014-03-03 17:02:54 +01:00
Nikolay Sivov 1f1d404832 wininet: Update module version. 2014-02-10 10:42:07 +01:00
Bruno Jesus 7f97339208 wininet/tests: Add tests for InternetGetConnectedStateEx[A|W]. 2014-02-05 13:49:25 +01:00
André Hentschel c8426495fc wininet: Use boolean return value in boolean function. 2014-02-04 11:15:30 +01:00
Alexandre Julliard cf0e96c6d0 configure: Rename substituted variables to a standard _CFLAGS and _LIBS format. 2014-01-30 14:51:33 +01:00
Bruno Jesus 2ef27a2322 wininet: InternetGetConnectedStateExW must return TRUE for success. 2014-01-30 10:31:42 +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
Frédéric Delanoy 0e7e87875c wininet/tests: Constify some character strings. 2013-12-31 12:25:04 +01:00
Frédéric Delanoy 43d6a45c4e wininet: Constify some character strings. 2013-12-19 17:09:14 +01:00
Alexandre Julliard 4f3d71cef3 makefiles: Get rid of the no longer used PO_SRCS variables. 2013-12-15 10:23: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
Hans Leidekker 6c7c15059a wininet: Separate socket destruction from destruction of the connection object. 2013-12-11 12:57:01 +01:00
Hans Leidekker 9373d4c578 wininet: Return an error when ensure_cred_handle fails. 2013-12-11 12:56:57 +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
Frédéric Delanoy 21618deb40 wininet: Use BOOL type where appropriate. 2013-11-27 10:54:22 +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 12e6c14e7c wininet: Move handling of existing request connections to open_http_connection. 2013-11-26 10:21:03 +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
Frédéric Delanoy 57d7f74d34 Assorted spelling fixes. 2013-11-21 19:44:46 +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
Alexandre Julliard 5756ee09f3 makefiles: Add makedep pragmas for rc files that contain translations. 2013-11-05 20:38:19 +01:00
Vijay Kiran Kamuju ebe121e360 wininet: Implement setting INTERNET_PER_CONN_PROXY_BYPASS. 2013-10-30 10:13:35 +01:00
Jacek Caban e857a70ae2 wininet: Compile tests with -D__WINESRC__. 2013-10-24 19:01:55 +02:00
Frédéric Delanoy b4e4831d1b wininet: Use BOOL type where appropriate. 2013-10-10 10:44:49 +02:00
Jacek Caban 1458856c63 wininet: Added InternetLockRequestFile tests. 2013-10-04 17:46:23 +02:00
Jacek Caban 47f490e1f6 wininet: Added support for locking HTTP request files. 2013-10-04 17:46:23 +02:00
Jacek Caban 817d6625a8 wininet: Added InternetUnlockRequestFile implementation. 2013-10-04 17:46:23 +02:00
Jacek Caban c1bab59e81 wininet: Forward InternetLockRequestFile to handle-specific functions. 2013-10-04 17:46:23 +02:00
Jacek Caban c58317b5b4 wininet: Moved request file info to separated struct. 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 daa0acdbcf wininet: Fix calculation of content length from chunk size. 2013-09-03 17:00:40 +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
Alexandre Julliard d6b9b00c02 wininet: Use neutral language for the version resource. 2013-07-09 22:21:58 +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
Alexandre Julliard a9175e6a65 wininet: Don't bother to free memory at process exit. 2013-05-15 10:32:40 +02:00
Daniel Lehman 2d89a140b2 wininet: Free local proxyinfo in INTERNET_ConfigureProxy. 2013-05-08 20:43:23 +02:00
Daniel Lehman d853009ef8 wininet: Remove old FIXME about bypassing proxy. 2013-05-08 20:43:23 +02:00
Daniel Lehman cbeb11b5f8 wininet: Copy should_bypass_proxy and domain_matches from winhttp. 2013-05-08 20:43:22 +02:00
Daniel Lehman 438be70838 wininet: Copy and pass along proxyBypass in INTERNET_ConfigureProxy. 2013-05-08 20:43:22 +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
Daniel Lehman 73895b3279 wininet: Accept ProxyBypass from environment or registry. 2013-05-08 20:43:21 +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
Piotr Caban 422fb313d3 wininet: Get rid of rawHeaders field in request_t structure. 2013-04-30 18:44:47 +02:00
Piotr Caban 566b14479c wininet: Add current raw headers to cache. 2013-04-30 18:44:47 +02:00
Piotr Caban 7883976722 wininet: Delete Content-Encoding header when uncompressing data. 2013-04-30 18:44:46 +02:00
Piotr Caban 259ffa2a1a wininet: Take HTTP_QUERY_FLAG_REQUEST_HEADERS flag into account when creating HTTP_QUERY_RAW_HEADERS data information. 2013-04-30 18:44:46 +02:00
Piotr Caban e092233396 wininet: Create raw HTTP headers dynamically. 2013-04-30 18:44:46 +02:00
Hans Leidekker 736a4239a0 wininet: Always return errors from NETCON_recv. 2013-04-25 13:40:02 +02:00
Hans Leidekker 2145b637fd wininet: Get rid of the clear parameter to HTTP_GetResponseHeaders. 2013-04-25 13:40:01 +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 103693e43b wininet: Load persistent cookies from other paths in get_cookie function. 2013-04-24 19:42:19 +02:00
Piotr Caban cf227b5f23 wininet: Fix cache container prefix initialization. 2013-04-24 14:32:37 +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 54df9c9101 wininet: Include the Proxy-Connection header in the keep-alive check. 2013-04-22 12:37:51 +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 6f78a63b5b wininet: Don't strip the port from URLs returned by InternetQueryOption(INTERNET_OPTION_URL). 2013-04-22 12:37:51 +02:00
Hans Leidekker 578a1a6b26 wininet: Fix a request string leak. 2013-04-22 12:37:51 +02:00
Marcus Meissner d762b284d8 wininet: Added missing return (Coverity). 2013-04-22 12:32:07 +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
Francois Gouget cabbc4d983 wininet: Make urlcache_{entry_create,get_entry_info}() static. 2013-04-10 19:47:28 +02:00
Jacek Caban 77ed56cffb wininet: Don't bother reconnecting to server for compat secure mode if we don't have compat cred handle. 2013-04-08 19:49:07 +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
Jacek Caban cb1998afd2 wininet: Added NETCON_get_data_available support for schannel-based connections. 2013-04-03 17:49:50 +02:00
Jacek Caban 7d386bfcd8 wininet: Added NETCON_GetCert support for schannel-based connections. 2013-04-03 17:49:45 +02:00
Jacek Caban 6c6e084a7d wininet: Added NETCON_recv support for schannel-based connections. 2013-04-03 17:49:41 +02:00
Jacek Caban 71ba6fcb9f wininet: Added NETCON_send support for schannel-based connections. 2013-04-03 17:49:37 +02:00
Jacek Caban d473803765 wininet: Use schannel in NETCON_GetCipherStrength if OpenSSL is not available. 2013-04-03 17:49:29 +02:00
Jacek Caban 952588eac4 wininet: Use schannel in NETCON_secure_connect if OpenSSL is not available. 2013-04-03 17:49:18 +02:00
Jacek Caban 083500caf2 wininet: Moved more compat logic to netcon_secure_connect_setup. 2013-04-02 12:47:27 +02:00
Piotr Caban f08246c25f wininet: Added urlcache Unicode functions tests. 2013-04-01 19:28:59 +02:00
Piotr Caban 802387f82a wininet: Use InternetCrackUrl in urlcache_entry_create. 2013-04-01 19:28:53 +02:00
Piotr Caban a56fbf336e wininet: Support Punycode in RetrieveUrlCacheEntryStream. 2013-04-01 19:28:44 +02:00
Piotr Caban c5346085ae wininet: Support Punycode in urlcache_copy_entry. 2013-04-01 19:28:38 +02:00
Piotr Caban c0df87ba30 wininet: Support Punycode in CommitUrlCacheEntryW. 2013-04-01 19:28:31 +02:00
Piotr Caban d40867121f wininet: Support Punycode in CreateUrlCacheEntryW. 2013-04-01 19:28:08 +02:00
Piotr Caban 41b582beff wininet: Support Punycode in IsUrlCacheEntryExpiredW. 2013-04-01 19:27:47 +02:00
Piotr Caban 2f3f973923 wininet: Support Punycode in DeleteUrlCacheEntryW. 2013-04-01 19:27:42 +02:00
Piotr Caban 6f35d68f42 wininet: Support Punycode in UnlockUrlCacheEntryFileW. 2013-04-01 19:27:37 +02:00
Piotr Caban 4345e44dbb wininet: Support Punycode in RetrieveUrlCacheEntryFileW. 2013-04-01 19:27:32 +02:00
Piotr Caban f08e79ce92 wininet: Support Punycode in SetUrlCacheEntryInfoW. 2013-04-01 19:27:25 +02:00
Piotr Caban 940176d8cb wininet: Support Punycode in GetUrlCacheEntryInfoExW. 2013-04-01 19:27:17 +02:00
Piotr Caban ef4db477f0 wininet: Correctly set SYSTEMTIME year in HTTP_HttpQueryInfoW. 2013-04-01 18:17:28 +02:00
Piotr Caban a59210a6e8 wininet: Fixed buffer size check in urlcache_create_file_pathA. 2013-04-01 14:10:43 +02:00
Piotr Caban 96fb659ba9 wininet: Use short path name when container path can't be converted to CP_ACP. 2013-04-01 14:10:40 +02:00
Piotr Caban e4e79e7183 wininet: Store urlcache container prefix as ANSI string. 2013-04-01 14:10:37 +02:00
Piotr Caban 97e0cf9f5f wininet: Fixed memory leak in load_persistent_cookie. 2013-04-01 14:08:02 +02:00
Piotr Caban c8d1d76909 wininet: Do case-insensitive compare when looking for scheme. 2013-04-01 14:07:57 +02:00
Piotr Caban 2bcd8a3fae wininet: Reorder functions to avoid urlcache_create_hash_table forward declaration. 2013-03-26 12:14:39 +01:00
Piotr Caban 21b84e7ac9 wininet: Rename URLCacheContainers_* functions to cache_containers_*. 2013-03-26 12:14:32 +01:00
Piotr Caban 4e624561ca wininet: Rename URLCache_* functions to urlcache_*. 2013-03-26 12:14:16 +01:00
Piotr Caban 33725537c1 wininet: Rename URLCacheFindEntryHandle to find_handle. 2013-03-26 12:14:07 +01:00