Commit Graph

29 Commits

Author SHA1 Message Date
Hans Leidekker 816d944c8f winhttp: Introduce a structure to describe URL components.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-20 15:52:41 +01:00
Hans Leidekker 18e17e8d36 winhttp: Include URL extra info in the path unless the caller asks for it separately.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-20 15:52:35 +01:00
Hans Leidekker 3fb5d2f98d winhttp: Get rid of get/set_last_error.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-22 23:55:58 +01:00
Hans Leidekker 7e5b5cb1aa winhttp: Properly handle request paths with Unicode characters.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46076
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-06 21:04:04 +01:00
Hans Leidekker ace7f05672 winhttp: Implement the WINHTTP_FLAG_ESCAPE_* flags.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=42677
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-04 09:11:26 -05:00
Michael Stefaniuc 9c1298a0e5 winhttp: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-26 16:50:27 +02:00
Hans Leidekker ca56f99280 winhttp: Use winsock sockets.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-27 17:35:00 +02:00
Hans Leidekker 498042e0ee winhttp: Escape untrusted URL paths.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-24 20:12:05 +02:00
Hans Leidekker 542998ee24 winhttp: Accept NULL buffer for size queries in WinHttpCreateUrl.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-27 16:31:44 +01:00
Carlo Bramini 613e23976e winhttp: Use return value of sprintf() instead of calling strlen() and simplify code.
Signed-off-by: Carlo Bramini <carlo_bramini@users.sourceforge.net>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-15 14:14:59 -06:00
Jacek Caban 985443ed87 winhttp: Don't perform buffer size tests for components that don't pass buffer in WinHttpCrackUrl.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-31 22:22:58 +09:00
Hans Leidekker 17b4abf47f winhttp: Validate the port number in WinHttpCrackUrl.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-16 22:38:38 +09:00
Hans Leidekker 1d07f89879 winhttp: Set required buffer length for all components in WinHttpCrackUrl.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-16 22:38:35 +09:00
Hans Leidekker 1def0982f1 winhttp: Always clear last error on success. 2015-08-03 20:50:33 +02:00
Hans Leidekker 069df69900 winhttp: Only set the scheme if we have a valid URL. 2014-05-24 11:00:39 +09:00
Hans Leidekker 465f85e89d winhttp: Ignore URL components if the buffer length is zero. 2014-05-24 11:00:28 +09:00
Hans Leidekker 9a5ad30225 winhttp: Support ICU_ESCAPE in WinHttpCrackUrl. 2011-12-01 14:17:58 +01:00
Hans Leidekker 9a2f3cb98a winhttp: Consistently use the allocation macros. 2011-12-01 14:17:51 +01:00
Hans Leidekker dcf1a81d8c winhttp: Accept a missing buffer when parsing a decoded URL. 2011-11-15 19:37:30 +01:00
Hans Leidekker 9432b8e796 winhttp: Don't depend on shlwapi for decoding a URL. 2011-08-05 15:26:12 +02:00
André Hentschel 1c7d45c093 winhttp: Port numbers are unsigned (more). 2011-03-29 12:34:26 +02:00
Maciej Borsz 2ca477c831 winhttp: Fix invalid behaviour of WinHttpCrackUrl. 2010-03-17 10:59:59 +01:00
Hans Leidekker 6cde75646a winhttp: Make tests pass on Win7. Conform to the more recent behavior. 2009-09-08 12:12:22 +02:00
Hans Leidekker c5fa3ec216 winhttp: Set last error for invalid URLs passed to WinHttpCrackUrl. 2009-01-05 16:37:40 +01:00
Paul TBBle Hampson 4876375ab8 winhttp: Correctly parse specified ports in WinHttpCrackUrl. 2008-12-31 14:07:05 +01:00
Hans Leidekker b527d9905c winhttp: Validate parameters per component in WinHttpCrackUrl. 2008-12-11 14:32:15 +01:00
Hans Leidekker 2c850276a0 winhttp: Reimplement WinHttpCrackUrl. 2008-11-18 11:52:54 +01:00
Aric Stewart 3590a4227f winhttp: Correct another difference between InternetCrackurl and WinHttpCrackUrl. 2008-11-12 13:41:10 +01:00
Hans Leidekker bba66c99b6 winhttp: Implement WinHttpCreateUrl. 2008-09-23 14:03:19 +02:00