Commit Graph

644 Commits

Author SHA1 Message Date
Jacek Caban a9a6948b79 wininet: Include stdlib.h before winsock2.h in http.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:54:18 +09:00
Jacek Caban fff5dca787 wininet: Correctly handle the last proxy override in HTTP_ShouldBypassProxy.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-01 01:04:45 +09:00
Jacek Caban 9a85a84765 wininet: Fixed leak in HTTP_DealWithProxy (coverity).
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-30 11:10:12 +09:00
Jacek Caban e73f5782ff wininet: Moved more redirect URL handling to a helper function and get rid of its maximum size assumption.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-19 11:57:57 +09:00
Jacek Caban 5141c911ff wininet: Don't assume maximal URL length in HTTP_GetRedirectURL.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-19 11:57:55 +09:00
Jacek Caban 216474c24e wininet: Use compose_request_url in INTERNET_OPTION_URL implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-19 11:57:52 +09:00
Jacek Caban 453e0e1112 wininet: Don't use host header in compose_request_url.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-19 11:57:45 +09:00
Jacek Caban 7528f4d533 wininet: Use scheme id instead of string in HTTP_HandleRedirect.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-19 11:57:41 +09:00
Jacek Caban 228c06086a wininet: Get rid of INTERNET_INVALID_PORT_NUMBER fixups after InternetCrackUrl calls.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 10:34:10 +09:00
Jacek Caban dfa014a572 wininet: Don't assume maximum URL length in HTTP_DealWithProxy.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 10:34:08 +09:00
Jacek Caban 3413d01764 wininet: Pass host name as substring to get_server.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 10:34:06 +09:00
Jacek Caban bd1f39ea27 wininet: Don't assume maximal URL length in HTTP_ShouldBypassProxy.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 10:34:04 +09:00
Jacek Caban 4227dfaa94 wininet: Store request URL in req_file_t.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 10:33:50 +09:00
Jacek Caban 18a31e49bc wininet: Pass arguments as substrings to set_cookie.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-17 11:51:24 +09:00
Sebastian Lackner a3a572beb0 wininet: Return synchronously from InternetReadFile if there is no more data to read.
Similar to 87fffa1ebf.

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-05-17 11:49:50 +09:00
Jacek Caban 9e08c55187 wininet: Added support for IRF_NO_WAIT flag.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 01:27:52 +09:00
Jacek Caban 87fffa1ebf wininet: Return synchronously from InternetReadFileEx if there is no more data to read.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 01:27:51 +09:00
Michael Müller 221590213e wininet: Handle async mode in HTTPREQ_ReadFile.
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-29 00:54:13 +09:00
Sebastian Lackner 45459965aa wininet: Send INTERNET_STATUS_RESPONSE_RECEIVED notification in async handler.
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-29 00:54:13 +09:00
Michael Müller d332ff7445 wininet: Fix async check in HTTPREQ_ReadFileEx.
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-29 00:54:12 +09:00
Jacek Caban d282a64280 wininet: Added new heap_strndupAtoW helper and use it in HttpAddRequestHeadersA.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-27 23:57:44 +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
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
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
Michael Müller efd41e4f2b wininet: Fix arguments of HttpAddRequestHeaders. 2015-06-25 22:04:54 +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
Jacek Caban 7fa7e9bd3b wininet: Get rid of no longer needed read_chunked field. 2015-06-15 14:46:49 +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
Daniel Lehman c921deebf1 wininet: Eat terminator on last chunk. 2015-03-06 12:56:29 +09:00
Alexandre Julliard 5bf29fb897 wininet: Hardcode the base64 table to avoid ugly macros. 2015-03-04 21:50:35 +09:00
Michael Müller 7c8df7eb5e wininet: Allow Accept-Encoding for HTTP/1.0 requests. 2015-02-24 21:55:48 +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 5436fef807 wininet: Always use winsock sockets. 2015-02-13 21:47:13 +09: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 06afdda617 wininet: Simplify while loop conditions (PVS-Studio). 2014-10-31 10:50:38 +09:00
Daniel Lehman f3455da6ff wininet: Remove custom port handling in HTTP_HandleRedirect. 2014-10-28 13:43:54 +09:00
Hans Leidekker 462f56d468 wininet: Protect the request headers array with a critical section. 2014-09-25 15:20:19 +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
Jacek Caban ffec675b4f wininet: Use stored server name in HTTP_InsertCookies. 2014-07-14 17:21:35 +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
Sebastian Lackner 8fd44a3d2b wininet: Fix invalid memory access in HTTP_QUERY_RAW_HEADERS (Valgrind). 2014-07-02 19:57:14 +02:00