Alexandre Julliard
3c31cc5836
wininet: Build with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-25 20:47:43 +01:00
Alexandre Julliard
cee281a036
wininet: Import zlib inflate code.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-25 20:47:43 +01:00
Dmitry Timoshkov
6a976801b1
wininet: Fix off by 1 error when parsing time.
...
This patch makes HTTP_ParseRfc1123Date() work for dates without space
before "GMT".
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-15 17:51:25 +02:00
Alistair Leslie-Hughes
f40aa5552c
wininet: Use username/password parameters over cached credentials.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-20 12:50:33 +02:00
Alistair Leslie-Hughes
f8f98e6edc
wininet: Clear cached credentials in INTERNET_OPTION_END_BROWSER_SESSION.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-19 12:56:59 +02:00
Alistair Leslie-Hughes
03d19f4be2
wininet: Update session username/password when cached credentials are used.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-17 18:52:32 +02:00
Daniel Lehman
e07efbd919
wininet: Support large downloads.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 16:25:55 +02:00
Huw Davies
f5a3d43f45
wininet: Include limits.h to define UINT_MAX and ULONG_MAX.
...
Fixes build error on macOS introduced by commit 968201424d
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-05 11:14:52 +02:00
Daniel Lehman
968201424d
wininet: Return error from HttpQueryInfo if number argument is invalid.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-04 17:27:37 +02:00
Michael Müller
6e97461580
wininet: Allow to set INTERNET_OPTION_HTTP_DECODING on sessions and connections.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-26 23:08:56 +02:00
Alistair Leslie-Hughes
3522b127a3
wininet: Always set last error in HttpQueryInfoW.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-24 11:36:40 +02:00
Alistair Leslie-Hughes
223c3b4538
wininet: Support QueryOption INTERNET_OPTION_ERROR_MASK for http.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-24 11:36:36 +02:00
Alistair Leslie-Hughes
bf5b8ae8af
wininet: Remove unsued flag HTTP_ADDHDR_FLAG_COALESCE.
...
This flag has the same value as HTTP_ADDHDR_FLAG_COALESCE_WITH_COMMA
which is used in multiple places.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-17 21:34:13 +02:00
Hans Leidekker
25b10ea4cc
wininet: Trace modifiers in hexadecimal in HttpAddRequestHeaders.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-08 12:11:54 +01:00
Michael Stefaniuc
b1a3b9e5ce
wininet: Use the ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-20 19:44:17 +02:00
Michael Stefaniuc
717a17b24f
wininet: Avoid an ARRAY_SIZE-like macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-20 19:44:17 +02:00
Dmitry Timoshkov
24f3d50ccc
wininet: Remove unused parameter from create_netconn().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-07 19:27:22 +02:00
Alistair Leslie-Hughes
6552ddaaa5
wininet: Always copy the password even if blank.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-20 19:36:08 +02:00
Michael Stefaniuc
d870d4105d
wininet: Use the more common ARRAY_SIZE spelling.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-06 19:44:26 +02:00
Jacek Caban
54b414b121
wininet: Simplify header string handling in HTTP_HttpSendRequestW.
...
Spotted by Mark Jansen, avoids potential double-free.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 16:51:19 +02:00
André Hentschel
be002fd92b
wininet: Fix negated check for drain_content result (clang).
...
Introduced with 4f40039cd7
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-28 23:39:20 +02:00
Piotr Caban
ea0dae6db2
wininet: Fix https connections over proxy.
...
Successful CONNECT request switch to tunnel instead of having a message
body.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-16 00:59:42 +01:00
Wei Xie
6d6dd78e5d
wininet: Don't release connection too early.
...
Signed-off-by: Wei Xie <xiewei@linuxdeepin.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-19 16:40:55 +01:00
Daniel Lehman
b84ba52248
wininet: Use case-insensitive comparison for server name.
...
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-29 21:30:02 +01:00
Daniel Lehman
1b25de7d57
wininet: Fix proxy bypass with wildcard if domain length matches with server.
...
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-08 16:23:15 +02:00
Jacek Caban
085ce269b1
wininet: Drain content before reusing connection in open_http_connection.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-18 08:09:47 +09:00
Jacek Caban
59395d8845
wininet: Never do blocking reads in chunked_read if zero chunk size is aready read.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-18 08:09:44 +09:00
Jacek Caban
4f40039cd7
wininet: Release connection in HTTPREQ_Read only if remaining control data may be drainad without blocking.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-18 08:09:40 +09:00
Jacek Caban
8090d169ab
wininet: Store error state separately from end of stream in chunked stream.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-18 08:09:36 +09:00
Jacek Caban
752d078a42
wininet: Always use drain_content specific to stream type.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-18 08:09:32 +09:00
Jacek Caban
90b936f0b2
wininet: Try to read reamaining data in chunked_drain_content.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-18 08:09:29 +09:00
Jacek Caban
2ecdac8846
wininet: Return error codes from HTTP streams.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-18 08:09:25 +09:00
Jacek Caban
7949a22b43
wininet: Correctly pass URL length to InternetCrackUrlW in get_redirect_url.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-08 20:13:57 +09:00
Nikolay Sivov
f55a116101
wininet: Fix potential use-after-free (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-10 20:51:11 +02:00
Jacek Caban
89f1d8c58a
wininet: Fixed connection_pool_cs declaration.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-07 19:49:46 +02:00
Jacek Caban
cee99826b6
wininet: Return an error on redirect with no host name specified.
...
Inspired by Michael Müller's patch.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-26 18:18:56 +02:00
Jacek Caban
61e28c01c6
wininet: Moved INTERNET_STATUS_REDIRECT notification to HTTP_HandleRedirect.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-26 18:18:54 +02:00
Jacek Caban
9c959154f6
wininet: Correctly handle redirects to non-http URLs.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-31 20:51:47 +02:00
Akihiro Sagawa
05c23c95f8
wininet: Use isspaceW() instead of isspace() for WCHARs.
...
Found with Coccinelle.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-17 16:11:26 +02:00
Jacek Caban
7d8cf318a4
wininet: Don't use returned read size if read failed in gzip_read.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-07 18:05:48 +02:00
Jacek Caban
2952c637e3
wininet: Get rid of no longer needed get_avail_data from data stream implementations.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-13 19:28:54 +01:00
Jacek Caban
295291b4be
wininet: Always use non-blocking reads in HTTP_ReceiveRequestData.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-13 19:28:52 +01:00
Jacek Caban
fd0ac40798
wininet: Get rid of no longer needed blocking_mode_t.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-10 23:21:23 +01:00
Jacek Caban
18f9d0303a
wininet: Get rid of no longer needed BLOCKING_WAITALL.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-10 23:21:23 +01:00
Jacek Caban
7eaadabc5c
wininet: Merge InternetReadFile and InternetReadFileEx implementations.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-10 23:21:23 +01:00
Jacek Caban
a546e8acaa
wininet: Reimplemented InternetQueryDataAvailable on top of async_read.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-10 23:21:23 +01:00
Jacek Caban
08808747b2
wininet: Rewrite InternetReadFileEx for http protocol to make use of non-blocking reads.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-10 23:21:23 +01:00
Jacek Caban
98bcd00e21
wininet: Rewrite asynchronous read to try to fill whole buffer and not buffer additional data unless requested.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-10 23:21:22 +01:00
Jacek Caban
c140a70425
wininet: Propagate WSAEWOULDBLOCK from read_http_stream.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-10 23:21:22 +01:00
Jacek Caban
f42a2ccad1
wininet: Pass blocking mode to HTTPREQ_Read.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-10 23:21:22 +01:00