Mike McCormack
92ddc1c851
wininet: Clean up HTTP_GetCustomHeaderIndex.
2006-03-30 12:41:04 +02:00
Mike McCormack
7f5e273214
wininet: Use a lookup table sorted by index so we don't need a loop to do lookups.
2006-03-30 12:40:47 +02:00
Mike McCormack
ae300883fa
WININET: Clean up HttpQueryInfo.
...
Fixes another return FALSE without SetLastError.
2006-03-30 12:40:05 +02:00
Mike McCormack
2571fa004a
wininet: Make sure to set LastError when returning FALSE in HttpQueryInfo.
2006-03-30 12:38:14 +02:00
Francois Gouget
6bddeb1cf7
Assorted spelling fixes.
2006-03-21 20:10:39 +01:00
Robert Shearman
dc03c0e3f3
wininet: Document InternetCrackUrlW.
2006-03-21 16:19:06 +01:00
Robert Shearman
80e4fb5975
wininet: InternetCreateUrlW should return the number of bytes needed.
...
InternetCreateUrlW should return the number of bytes needed to store
the URL, not the number of characters (reported by Sven Paschukat).
2006-03-21 16:19:06 +01:00
Robert Shearman
15a7d3b2b4
wininet: Copy from the start of the cookie name, not the cookie data.
...
Copy from the start of the cookie name, not the cookie data when
parsing cookies with a NULL cookie name.
2006-03-20 12:01:25 +01:00
András Kovács
a2a4029e40
wininet: Added Hungarian translation.
2006-03-15 11:34:10 +01:00
Robert Shearman
74cb03247d
wininet: Move URL-related tests to a separate file.
2006-03-14 18:49:19 +01:00
Robert Shearman
366fc247fc
wininet: Make InternetCrackUrlW set the components related to net_loc
...
to NULL when net_loc isn't present in the input URL.
2006-03-14 17:51:51 +01:00
Robert Shearman
153aac0194
wininet: Move cookie-related stubs to cookie.c
2006-03-14 17:51:31 +01:00
Robert Shearman
5b5d45586e
wininet: Implement setting of send and receive timeouts.
2006-03-14 17:50:41 +01:00
Robert Shearman
0252e5e875
wininet: Fix the conversion of NULL component values from InternetCreateUrlA.
2006-03-13 13:33:03 +01:00
Robert Shearman
f18305b176
wininet: Host name isn't present when two slashes aren't present in InternetCrackUrl.
...
The test for "about:" in InternetCrackUrlW should be more general so
that only URLs without double slashes should also be assumed not to
have a host name.
Add another test for this case and remove an unreliable
InternetCreateUrl test.
2006-03-13 13:32:45 +01:00
Robert Shearman
ae677d356c
wininet: InternetCrackUrl should set nPort to the default port if not specified.
2006-03-13 13:32:20 +01:00
Robert Shearman
ef20936c53
wininet: Don't duplicate empty strings.
2006-03-10 21:40:57 +01:00
Robert Shearman
1b8f7f0605
wininet: Fix InternetGetCookie with no matching cookies.
...
Return FALSE and an error of ERROR_NO_MORE_ITEMS from
InternetGetCookie when there are no cookies for the specified
domain. This fixes a bug in sending a blank cookie to HTTP servers.
2006-03-09 22:48:08 +01:00
Robert Shearman
e4adc07333
wininet: Fix an off-by-one error in InternetCreateUrlW.
...
Fix an off-by-one error in the size of buffer used to store the port
number in InternetCreateUrlW.
2006-03-09 22:47:50 +01:00
Robert Shearman
b0fcaf9d48
wininet: Further InternetCreateFileW fixes.
...
- Add the slash after the port number.
- Only add the port number if the host name is present.
2006-03-09 22:47:35 +01:00
Robert Shearman
d3047aaeba
wininet: If necessary, add a slash between the hostname and path in
...
InternetCreateUrlW.
2006-03-09 22:47:16 +01:00
Robert Shearman
8eab78c235
wininet: More InternetCreateUrlW fixes.
...
- Don't add double slashes for opaque URLs.
- The default port number for all other schemes is 0.
2006-03-09 22:47:00 +01:00
Robert Shearman
e58a448c4a
wininet: Parse the scheme the string in InternetCreateFileW.
...
Parse the scheme the string in InternetCreateFileW and rewrite
url_uses_default_port using schemes instead of strings.
2006-03-09 22:46:45 +01:00
Robert Shearman
02839948d2
wininet: Get the string for the scheme if specified only by the
...
INTERNET_SCHEME enumeration in InternetCreateUrlW.
2006-03-09 22:46:30 +01:00
Robert Shearman
01219c65aa
wininet: The host name is optional in InternetCreateUrlW.
2006-03-09 22:46:07 +01:00
Robert Shearman
ed90c868a9
wininet: Use an array of schemes for mapping from a string to an INTERNET_SCHEME.
...
Use an array of schemes so that it can be re-used for mapping from
INTERNET_SCHEME back to a string and simplify the code in
GetInternetSchemeW.
2006-03-09 22:45:56 +01:00
Robert Shearman
e2b7bc1efd
wininet: Fix Trace in InternetCreateUrl.
...
The url passed in to InternetCreateUrl is an out parameter, so don't
dump it.
2006-03-09 22:45:26 +01:00
Robert Shearman
0590025e3c
wininet: Fix redirects with relative URIs instead of absolute URIs.
2006-03-09 22:45:18 +01:00
Robert Shearman
414d1ddeb9
wininet: Rewrite InternetCreateUrlW.
...
- Rewrite InternetCreateUrlW to respect the lengths passed in via the
URL_COMPONENTS structure and fall back to a strlenW call when a
length is zero.
- Expand the number of protocols supported when determining whether
the port number should be added.
- Fix a test by passing in the correct length of scheme.
2006-03-06 20:00:53 +01:00
Robert Shearman
9981f337e3
wininet: Don't continue to connect to a secure server without SSL support since it won't work.
...
Don't continue to connect to a secure server without SSL support since
it won't work. Return an error back to the application instead.
2006-03-06 20:00:21 +01:00
Robert Shearman
8bfc85957a
wininet: More tests for InternetCreateUrl.
...
Fix an InternetCreateUrl test so that it correctly sets the scheme
length and add tests which show the behaviour when the lengths are set
to zero and when the https scheme is used.
2006-03-06 20:00:08 +01:00
Victor Pelt
472ad3a450
wininet: Add stub for missing InternetSetOption.
2006-03-06 19:56:21 +01:00
Juan Lang
89529f8a8e
wininet: Use CertNameToStr for INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT
...
and update comment.
2006-02-16 12:19:00 +01:00
Robert Shearman
7a2357a480
wininet: Documentation fixes.
2006-02-14 11:34:14 +01:00
Petr Tesarik
3a9b7b4b17
wininet: Czech language resources encoding fix.
2006-02-13 13:28:37 +01:00
Dmitry Timoshkov
03434c728e
wininet: Fix InternetQueryOption test to pass under Windows.
2006-02-06 20:59:21 +01:00
Vijay Kiran Kamuju
7660614b0d
wininet: Add tests for InternetQueryOption.
2006-02-06 14:12:22 +01:00
Eric Pouech
e66e227dbe
Fixes for missing prototypes warnings.
2006-02-06 13:13:28 +01:00
Fatih Aşıcı
7578e31735
wininet: Turkish translation.
2006-02-06 13:06:49 +01:00
Aric Stewart
8b0883576e
wininet: INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT work.
...
Beginning of framework to implement handling of InternetQueryOption
for INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT.
2006-01-20 20:16:56 +01:00
Aric Stewart
21712d3d15
wininet: Handle NULL lpBuffersIn in HttpSendRequestExW.
2006-01-13 13:52:38 +01:00
Jacek Caban
ad02317248
wininet: lpvStatusInfo in INTERNET_STATUS_NAME_RESOLVED,
...
INTERNET_STATUS_CONNECTING_TO_SERVER and
INTERNET_STATUS_CONNECTED_TO_SERVER should be strings, not
sockaddr_in.
2006-01-05 14:37:06 +01:00
Robert Shearman
7b4b4b7930
wininet: Handle the cache being full better in CommitUrlCacheEntryInternal.
...
Move the freeing of allocation blocks for an entry into
URLCache_DeleteEntry.
Call URLCache_DeleteEntry to rollback from failure in
CommitUrlCacheEntryInternal.
2005-12-31 13:21:19 +01:00
Robert Shearman
13f2ce26dd
wininet: Create new hash tables for URL cache on demand.
2005-12-31 13:20:54 +01:00
Robert Shearman
2ceb052496
wininet: Move URL cache hash table creation to a separate function.
2005-12-31 13:20:29 +01:00
Aric Stewart
1e946d3e14
wininet: HTTP headers reworking.
...
Redo how headers are handled, eliminating the concept of Standard
Headers and allow all headers to be added multiple times.
Allow querying of headers with an index to get the multiple headers.
Respect response vs request headers in HttpQueryInfo.
Add a number of tests to extensively test header adding and replacing.
2005-12-13 17:07:41 +01:00
Marcus Meissner
73893a74fd
wininet: Reinitialise NETCON on redirect.
2005-12-13 11:12:09 +01:00
Aric Stewart
7bca41a739
wininet: Handle HTTP_QUERY_CUSTOM.
...
In HttpQueryInfo if dwInfoLevel includes HTTP_QUERY_CUSTOM then
lpBuffer is In/Out because the header we are querying is there.
Additionally standard headers can be queried in this manner as well
(such as Set-Cookie).
2005-12-08 12:44:45 +01:00
Aric Stewart
d30cec77d3
wininet: A->W bugfix.
...
When converting SendRequestExA -> W we need to set the lpcszHeader
parameter to NULL if the original one is NULL.
2005-12-08 11:54:24 +01:00
Patrick Ammann
d437f37f58
wininet: compilation fix
...
- make netconnection.c compile when HAVE_OPENSSL_SSL_H or
HAVE_OPENSSL_ERR_H are not defined.
2005-12-05 12:01:56 +01:00