Rob Shearman
7fde7aef78
wininet: Implement FindFirstUrlCacheEntry{A, W}, FindNextUrlCacheEntryA and FindCloseUrlCache.
2008-03-12 17:57:25 +01:00
Rob Shearman
99e7f7ab6e
wininet: Add tests for some URL cache functions.
2008-03-12 17:55:41 +01:00
Rob Shearman
ebaa4d987d
wininet: Only clear authentication header if the connection has authentication information.
2008-03-12 17:55:21 +01:00
Rob Shearman
b8ad4dee86
wininet: Fix proxy authentication by using the data in lpwhr->pProxyAuthInfo in HTTP_InsertAuthorization instead of lpwhr->pAuthInfo when inserting the Proxy-Authentication header.
2008-03-12 17:55:12 +01:00
Jacek Caban
7e63f95326
wininet: Move InternetQueryOption(INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT) to vtbl.
2008-03-12 12:00:00 +01:00
Jacek Caban
ce6a2289c6
wininet: Move InternetQueryOption(INTERNET_OPTION_DATAFILE_NAME).
2008-03-12 11:59:54 +01:00
Jacek Caban
0e010d83a1
wininet: Move InternetQueryOption(INTERNET_OPTION_URL) to vtbl.
2008-03-12 11:59:47 +01:00
Jacek Caban
e2933c20d6
wininet: Move INTERNET_OPTION_HANDLE_TYPE to vtbl.
2008-03-12 11:59:41 +01:00
Rob Shearman
0be05ab6aa
wininet: Retrieve the maximum token length from the SSP and use a buffer of that length in calls to InitializeSecurityContextW.
...
Otherwise, InitializeSecurityContextW could run out of space with our
small, fixed buffer and fail.
2008-03-10 19:12:54 +01:00
Rob Shearman
7631bdf0c1
wininet: Allow HTTP_DoAuthorization to accept a NULL username/domain in the non-Basic case.
...
When using SSPI, pass in a NULL identity in this case so that the SSP
can try to use cached credentials.
2008-03-10 19:12:54 +01:00
Rob Shearman
8c6ac00820
wininet: Don't call DeleteSecurityContext and FreeCredentialsHandle on invalid handles.
2008-03-10 19:12:54 +01:00
Rob Shearman
bdc81d9963
wininet: Make the reference count of WININETHANDLEHEADER thread-safe by using InterlockedIncrement/InterlockedDecrement.
2008-03-10 19:12:54 +01:00
Rob Shearman
48000893f9
makefiles: Simplify the use of the IMPORTLIB variable in the DLL makefiles.
...
Only specify the root to keep platform-specifics out of the individual
DLL makefiles.
2008-03-04 20:55:01 +01:00
Rob Shearman
0aec3fcf86
wininet: Fix compile with MinGW.
2008-03-04 12:01:40 +01:00
Jacek Caban
d597fd12fc
wininet: Moved InternetReadFileExA to vtbl.
2008-03-03 20:45:31 +01:00
Francois Gouget
89bdd639df
wininet/tests: FtpCommandA() is not available on Win9x. So load it dynamically and skip some tests.
2008-03-03 12:04:10 +01:00
Jacek Caban
ca39a55e88
wininet: Don't use INTERNET_ReadFile in HTTP_DrainContent.
2008-03-03 12:00:32 +01:00
Jacek Caban
352b4212a1
wininet: Move FTP structs and functions declarations from internet.h.
2008-03-03 12:00:27 +01:00
Jacek Caban
3b4ca69e18
wininet: Move InternetReadFile to vtbl.
2008-03-03 12:00:20 +01:00
Jacek Caban
9a5c046129
wininet: Move INTERNET_STATUS_REQUEST_COMPLETE call from INTERNET_ReadFile.
2008-03-03 12:00:06 +01:00
Jacek Caban
d3682dd33f
wininet: Fixed some tests.
2008-03-03 12:00:00 +01:00
Jacek Caban
3314184597
wininet: Move InternetQueryDataAvailable to vtbl.
2008-02-29 20:07:13 +01:00
Jacek Caban
66259555ff
wininet: Move WININETFTPFINDNEXTW declaration to ftp.c.
2008-02-28 10:44:50 +01:00
Jacek Caban
8c45eecca7
wininet: Moved InternetFindNextFileW implementation to vtbl.
2008-02-28 10:44:42 +01:00
Jacek Caban
0e33eee9a2
wininet: Use vtbl for InternetSetOption(INTERNET_OPTION_[SEND|RECEIVE]_TIMEOUT) implementation.
2008-02-27 14:52:25 +01:00
Jacek Caban
1ffcfbce85
wininet: Use vtbl in InternetWriteFile implementation.
2008-02-27 14:52:24 +01:00
Jacek Caban
7dc9bf677b
wininet: Moved close_connection to vtbl.
2008-02-27 14:52:24 +01:00
Jacek Caban
5a535d6b23
wininet: Moved handle destructor to vtbl.
2008-02-27 14:52:24 +01:00
Jacek Caban
928c9f0984
wininet: Fixed version returned by INTERNET_OPTION_VERSION.
2008-02-27 14:52:24 +01:00
Maarten Lankhorst
5132fb4469
wininet: Fix retrieving raw headers.
2008-02-27 14:52:24 +01:00
Maarten Lankhorst
60401737c6
wininet: Add stub for INTERNET_OPTION_PER_CONNECTION.
2008-02-26 11:19:24 +01:00
Francois Gouget
1fa0e443e3
wininet/tests: Don't include the trailing '\0' in dwHeadersLength otherwise HttpSendRequestEx() sends it too which some servers object to.
2008-02-19 13:39:25 +01:00
Francois Gouget
abfa73b5c1
wininet: Document HttpAddRequestHeadersW()'s handling of the trailing '\0'. Fix tracing of the corresponding header strings as they may not be '\0' terminated.
2008-02-19 13:39:24 +01:00
Rob Shearman
719cd82f35
wininet: Fix potential buffer overrun in HttpQueryInfoA.
...
If HTTP_QUERY_CUSTOM is specified then the buffer contains a
null-terminated string on input and data of length len on output. The
code wasn't taking into account that the input len could be less than
the length of the string and thus could result in the allocated buffer
being overrun with the call to WideCharToMultiByte.
2008-02-19 13:39:24 +01:00
Hans Leidekker
9717113fcb
wininet: Rename a function to better match what it does.
2008-02-18 13:33:52 +01:00
Hans Leidekker
2617fb6dea
wininet: Handle the "100 Continue" response by ignoring it.
2008-02-18 13:33:33 +01:00
Hans Leidekker
d0033dbaed
wininet: Honour the version override in HttpOpenRequest.
2008-02-18 13:33:10 +01:00
Rob Shearman
2e99817a40
wininet: Fix the return value check of SHGetSpecialFolderPathW in URLCacheContainers_CreateDefaults.
...
It returns a BOOL, not an HRESULT.
2008-02-16 13:54:28 +01:00
Rob Shearman
f8f9dbbbe7
wininet: Fix an off-by-one error in the boundary checks in HTTP_DecodeBase64.
2008-02-16 13:54:17 +01:00
Jacek Caban
f979134270
wininet: Code clean up.
2008-02-15 10:00:12 +01:00
Jacek Caban
e49e792849
wininet: Added cache test.
2008-02-15 10:00:10 +01:00
Jacek Caban
6ce88e0aab
wininet: Added correct InternetQueryOption(INTERNET_OPTION_DATAFILE_NAME) implementation.
2008-02-15 10:00:06 +01:00
Jacek Caban
d7a49e8147
wininet: Added beginning support for HTTP cache files.
2008-02-15 10:00:03 +01:00
Andrew Talbot
45481db078
wininet: Remove unneeded casts.
2008-02-05 12:19:37 +01:00
Hans Leidekker
b0912d1151
wininet: Add zero value content length header to POST requests only.
2008-02-04 14:18:51 +01:00
Hans Leidekker
c132dd9360
wininet: Send HTTP/1.1 requests by default.
2008-02-04 14:18:20 +01:00
Hans Leidekker
b069ef4268
wininet: Make sure not to overwrite any caller supplied authorization header.
2008-02-04 14:18:20 +01:00
Rob Shearman
59ab0cf362
wininet: HTTP_Connect should fail if a NULL or empty hostname is passed in.
...
Add tests for these circumstances.
2008-02-04 13:04:34 +01:00
Rob Shearman
5edcf3ab6c
wininet: Pass the server name into InitializeSecurityContextW.
2008-01-25 12:30:08 +01:00
Marcus Meissner
45fbfbcef4
wininet: Check if buffer has overflowed potentially.
2008-01-24 11:41:22 +01:00
Andrey Esin
325649c3f8
wininet: One addition to Russian translation.
2008-01-23 11:31:42 +01:00
Francois Gouget
44b52b128c
Assorted spelling fixes.
2008-01-16 12:48:29 +01:00
Gerald Pfeifer
3f1a20b8b1
wininet: Fix type of a loop variable in HTTP_BuildHeaderRequestStr().
2008-01-14 15:31:37 +01:00
Austin English
0e4adae973
Spelling fixes.
2008-01-07 13:41:01 +01:00
Hans Leidekker
4d84eb26d0
wininet: Fix handling of host and referrer headers in HttpOpenRequest.
2008-01-07 12:02:12 +01:00
Marcus Meissner
fe475d9e88
wininet: Check return value of InternetCrackUrl when checking referrer host.
2008-01-03 13:30:26 +01:00
Michael Stefaniuc
d152d5ceeb
wininet: Fix typo in comparison with NULL. Found by Smatch.
2007-12-31 16:45:49 +01:00
Johannes Stezenbach
a3ae419594
wininet: Fix error return code in FindFirstUrlCacheEntryW() stub.
2007-12-23 14:17:12 +01:00
Johannes Stezenbach
7e18416e80
wininet: Implement support for INTERNET_OPTION_VERSION in InternetQueryOptionW.
2007-12-23 14:17:12 +01:00
Hans Leidekker
b529b3bb32
wininet: Make FtpGetCurrentDirectoryA pass all todo_wine tests.
2007-12-10 12:27:08 +01:00
Francois Gouget
6cdbb96b27
wininet/tests: Remove trailing spaces in ok() calls.
2007-12-07 14:53:25 +01:00
Roy Shea
91d07f6995
wininet: Added check of dwStructSize required by Windows in calls to InternetCrackUrlA.
2007-12-05 12:05:37 +01:00
Roy Shea
7903d7f3f4
wininet: Removed inline from copy_compsA and zero_compsA to allow Windows testing.
2007-12-05 12:05:10 +01:00
Zac Brown
6ad1ef7a28
wininet: Add test for FtpGetCurrentDirectoryA in wininet/tests/ftp.c.
2007-12-03 14:50:52 +01:00
Zac Brown
b9b900f4b8
wininet: Fix FtpGetCurrentDirectoryW to handle bad input.
2007-12-03 14:50:47 +01:00
Rob Shearman
01826e0c98
wininet: Don't clear the auth data for Basic authentication in HTTP_InsertAuthorizationForHeader.
...
It isn't tracked per connection, unlike NTLM authentication, and so the
server will return a 401 error and try to get us to authenticate again.
However, this doesn't work as the authentication information is assumed
by the code to be valid for the whole connection.
2007-11-27 16:42:26 +01:00
Michael Stefaniuc
6d8c2d744b
wininet/tests: Do not compare the return value of socket() with 0. Use INVALID_SOCKET instead.
2007-11-27 12:29:42 +01:00
Hans Leidekker
a0c3816dbf
wininet: Initialize path buffer in InternetSetCookie.
2007-11-19 13:52:26 +01:00
Hans Leidekker
5ccfec6428
wininet: Fix a number of problems with InternetGetCookie.
...
This version incorporates Lei Zhang's changes to the test, with his consent.
2007-11-15 11:07:46 +01:00
Hans Leidekker
b6ee3c1d6b
wininet: Fix a number of problems with InternetSetCookie.
2007-11-15 11:07:35 +01:00
Hans Leidekker
864db96626
wininet: Fix two handle leaks in the test.
2007-11-12 11:40:59 +01:00
Lei Zhang
83a4dbaa68
wininet: Skip strcmp() in a test if the returned value/len is wrong.
2007-11-09 12:56:11 +01:00
Juan Lang
f15bbdcd5a
wininet: Initialize length of values that aren't being requested.
2007-11-09 12:25:01 +01:00
Juan Lang
9adf83e90d
wininet: Don't use HEAP_ZERO_MEMORY on memory that's fully initialized.
2007-11-08 12:18:31 +01:00
Juan Lang
a1ab4a7eff
wininet: Fix another typo.
2007-11-08 12:18:30 +01:00
Juan Lang
b210e3a751
wininet: Fix typo.
2007-11-08 12:18:30 +01:00
Lei Zhang
f727e56d6d
wininet: Initialize ftp sockets.
2007-11-08 12:18:30 +01:00
EA Durbin
bc745fa4c4
wininet: Return true for case INTERNET_OPTION_SECURITY_FLAGS.
2007-11-07 12:02:30 +01:00
Nigel Liang
6f44627b04
wininet: Release object in HttpSendRequestExW before return on error.
2007-11-05 15:05:16 +01:00
Hans Leidekker
9e934ee178
wininet: Implement and test FtpCommand{A, W}.
2007-11-01 12:37:27 +01:00
Hans Leidekker
5270b429fa
wininet: Correct several ftp server response to error code mappings.
2007-11-01 12:37:18 +01:00
Hans Leidekker
1a8327468c
wininet: Don't release the parent object in FTP_Connect, the caller will do that.
2007-10-30 14:19:20 +01:00
Hans Leidekker
a844a38fad
wininet: Use a single connection for all ftp tests.
2007-10-30 11:30:15 +01:00
Hans Leidekker
64359c2432
wininet: Always send a content length header, even if there is no content.
2007-10-29 13:06:50 +01:00
Hans Leidekker
e8eaee4f6a
wininet: Always close the data connection before receiving a server response.
2007-10-29 12:03:15 +01:00
Hans Leidekker
e55531d694
wininet: Always return an error when a transfer is in progress.
2007-10-29 12:03:06 +01:00
Hwang YunSong(황윤성)
94ac6cdfd8
wininet: Updated Korean resource.
2007-10-25 13:57:54 +02:00
Francois Gouget
c4b1195c0c
Assorted spelling fixes.
2007-10-23 18:20:27 +02:00
Juan Lang
d857c04c95
wininet: Don't assume lpBuffersIn is not NULL.
2007-10-23 12:23:52 +02:00
Juan Lang
1b42c00789
wininet: Pass hash entry directly to URLCache_DeleteEntryFromHash.
2007-10-23 12:23:41 +02:00
Juan Lang
d448a2ad9b
wininet: Implement RetrieveUrlCacheEntryFileW.
2007-10-23 12:23:36 +02:00
Juan Lang
922dc7b627
wininet: Implement UnlockUrlCacheEntryFileW.
2007-10-23 12:23:32 +02:00
Juan Lang
9949926441
wininet: Pass hash entry directly to URLCache_HashEntrySetUse rather than searching for it again.
2007-10-23 12:23:25 +02:00
Juan Lang
601b6835ed
wininet: Introduce a URLCache_FindHashW, and use it rather than URLCache_FindEntryInHashW.
2007-10-23 12:23:19 +02:00
Juan Lang
af61cbdd03
wininet: Use URLCache_FindHash rather than URLCache_FindEntryInHash.
2007-10-23 12:23:10 +02:00
Hans Leidekker
533aa4dcd5
wininet: Use passive mode for the ftp tests.
2007-10-22 13:52:00 +02:00
Hans Leidekker
cc54dfe1e2
wininet: Fix some failing ftp tests on Windows and Wine.
2007-10-22 13:51:56 +02:00
Hans Leidekker
dd5347ee6a
wininet: Properly clean up ftp sessions.
2007-10-22 13:51:52 +02:00
Hans Leidekker
c33a51eaf2
wininet: Separate ftp session destruction from closing connections.
2007-10-22 13:51:47 +02:00
Juan Lang
c527c7611a
wininet: Implement DeleteUrlCacheEntryW.
2007-10-22 12:36:08 +02:00
Juan Lang
d155915861
wininet: Implement IsUrlCacheEntryExpiredW.
2007-10-22 12:36:08 +02:00
Juan Lang
6fdec3d501
wininet: Add a URLCache_FindEntryInHashW helper, and use it to simplify finding an entry in a hash with a wide-character URL string.
2007-10-22 12:36:08 +02:00
Juan Lang
1594b429f8
wininet: Implement IsUrlCacheEntryExpiredA.
2007-10-22 12:36:08 +02:00
Juan Lang
a6c252c122
wininet: Update comments to match function parameters.
2007-10-22 12:36:08 +02:00
Nigel Liang
7d2ac2039b
wininet: Release object in HttpEndRequestW after use.
2007-10-18 13:21:28 +02:00
Detlef Riekenberg
a53df53f2b
wininet/tests: Test NULL pointer for InternetCanonicalizeUrlA.
2007-10-16 13:55:13 +02:00
Detlef Riekenberg
9b43174f3f
wininet: Fix flags and SetLastError for InternetCanonicalizeUrlA/W.
2007-10-16 13:55:02 +02:00
Daniel Nylander
f53e196ed5
wininet: Add Swedish translation.
2007-10-16 12:41:13 +02:00
Andrew Talbot
2b8a6a3a06
wininet: Fix a memory leak.
2007-10-12 11:48:31 +02:00
Detlef Riekenberg
f98b4507ba
wininet/tests: Initial tests for InternetCanonicalizeUrlA.
2007-10-11 16:24:28 +02:00
Misha Koshelev
705b01c054
wininet: When sending INTERNET_STATUS_HANDLE_CLOSING make sure the freed handle is not yet available.
2007-09-25 13:51:34 +02:00
Misha Koshelev
01de104a75
wininet/tests: Add test to show that InternetCloseHandle closes open child handles too.
2007-09-21 11:53:09 +02:00
Misha Koshelev
728e5fa559
wininet: Track child handles, free all child handles on WININET_FreeHandle as native.
2007-09-21 11:53:04 +02:00
Juan Lang
ba45902daf
wininet: Create a TCP connection if FLAG_ICC_FORCE_CONNECTION is specified.
2007-09-18 10:42:35 +02:00
Alexandre Julliard
23c58d3a21
wininet/ftp: There's no need to query the file size before retrieving a file.
2007-09-17 12:56:48 +02:00
Alexandre Julliard
b20694e732
wininet/tests: Anonymous FTP can succeed without a password.
2007-09-14 16:59:06 +02:00
Americo Jose Melo
c5ba90131e
Update the Portuguese translation.
2007-09-13 13:28:26 +02:00
Francois Gouget
d4337f2b5e
wininet: Fix many wininet prototypes: the context is a DWORD_PTR now.
2007-08-30 17:02:49 +02:00
Misha Koshelev
2f3805a3bd
wininet: Send INTERNET_STATUS_HANDLE_CLOSING when object is being destroyed as native does.
2007-08-23 13:13:35 +02:00
Misha Koshelev
0f117e568f
wininet: Separate connection closing from object destruction.
2007-08-23 13:13:24 +02:00
Misha Koshelev
4b2f9af998
wininet: Rename WININET_object_destructor to a more general WININET_object_function.
2007-08-23 13:13:14 +02:00
Misha Koshelev
1ee9ea91a5
wininet: Fix reference count on internet handle for asynchronous InternetReadFileEx call.
2007-08-22 12:18:59 +02:00
Misha Koshelev
5320d3e3ea
wininet: Don't send INTERNET_STATUS_HANDLE_CLOSING when closing handle opened with InternetOpen for HTTP connection.
2007-08-22 12:18:59 +02:00
Paul Vriens
36e416b614
wininet/tests: Fix test failures for wininet.dll that comes with IE7.
2007-08-17 11:47:46 +02:00
Mikołaj Zalewski
5cdfee8153
wininet: A small test for HttpQueryInfoA.
2007-08-16 11:52:12 +02:00
Mikołaj Zalewski
3fa49f0f02
wininet: Make HttpQueryInfo[AW] work for lpBuffer == NULL and len > 0.
2007-08-16 11:52:06 +02:00
Mikołaj Zalewski
ab7d17727c
wininet: Support HTTP_QUERY_RAW_HEADER_CRLF|HTTP_QUERY_FLAG_REQUEST_HEADERS.
2007-08-16 11:51:52 +02:00
Misha Koshelev
9aac2fcf55
wininet/tests: Test that for an open HTTP connection InternetQueryDataAvailable succeeds or returns ERROR_IO_PENDING.
2007-08-13 12:36:25 +02:00
Misha Koshelev
6ea2441ff9
wininet: InternetQueryDataAvailable does not return ERROR_NO_MORE_FILES when no more HTTP data is available.
2007-08-13 12:36:19 +02:00
Misha Koshelev
662f44a619
wininet: Don't peek data in InternetQueryDataAvailable if there is no more to be expected.
2007-08-13 12:36:09 +02:00
Hans Leidekker
bb9413d77a
wininet: Process caller supplied headers after inserting connection and authorization headers, not before.
2007-08-10 12:58:17 +02:00
Hans Leidekker
4332f418a5
wininet: Implement INTERNET_OPTION_CALLBACK in InternetSetOption{A, W}.
2007-08-10 12:58:17 +02:00
Hans Leidekker
c1c6f4ad6b
wininet: Also set last error on NULL first parameter in InternetCreateUrl{A, W}.
2007-08-10 12:58:17 +02:00
Hans Leidekker
d10891eab9
wininet: Don't crash on NULL first or last parameter in InternetCrackUrlW.
2007-08-10 12:58:17 +02:00
Francois Gouget
f33abb6d96
wininet: Add a skeleton winineti.h header with fixed prototypes for [GS]etUrlCacheConfigInfo*(), DeleteIE3Cache() and IsUrlCacheEntryExpired*().
...
Remove SetUrlCacheConfigInfo*() from wininet.h, it's supposed to be declared in winineti.h.
Update win32.api to fix the winapi_check warnings.
2007-08-09 14:11:56 +02:00
Francois Gouget
36d98a32eb
wininet: #undef some macros to avoid a conflict between openssl/ssl.h and wincrypt.h.
2007-08-09 14:11:35 +02:00
Huw Davies
dc881a258e
wininet: Fix the case when Proxy or ProxyBypass is NULL.
2007-08-07 12:42:31 +02:00
Aric Stewart
c8dfc02bfb
wininet: Strip Accept-Encoding from http/1.0 requests.
2007-07-27 12:47:51 +02:00
Huw Davies
00631b2480
wininet: Stub for InternetQueryFortezzaStatus().
2007-07-19 14:38:42 +02:00
Huw Davies
3f2d93b512
wininet: Stubs for IsUrlCacheEntryExpired[AW].
2007-07-19 11:54:10 +02:00
Huw Davies
d9bdf793fe
wininet: Certain options of InternetQueryOption can take a NULL handle, so don't do the NULL handle check at the beginning.
2007-07-19 11:54:04 +02:00
Misha Koshelev
663c0146a5
wininet: Fix behavior of InternetQueryDataAvailable if INTERNET_FLAG_ASYNC is set.
2007-07-16 14:59:16 +02:00
Misha Koshelev
4e0371f322
wininet/tests: Add testing framework and tests for internet status callbacks.
2007-07-16 14:59:04 +02:00
Misha Koshelev
0d1f2bf526
wininet/tests: Properly handle ERROR_IO_PENDING from InternetQueryDataAvailable.
2007-07-16 14:58:58 +02:00
Alexandre Julliard
f91909b3b0
configure: Make the libssl soname check depend on the header check.
2007-07-02 19:42:53 +02:00
Alexandre Julliard
5a95cfbd9c
configure: Export the shared library extension instead of hardcoding .so.
2007-07-02 14:35:05 +02:00
Michael Stefaniuc
c576803f6d
wininet: Remove superfluous casts of void pointers to other pointer types.
2007-06-27 12:53:42 +02:00
Hans Leidekker
9a6ba225e2
wininet: More lenient parsing of the passive mode server response.
2007-06-07 19:24:00 +02:00
Rob Shearman
cb28969c2a
wininet: Implement NTLM support for proxy authentication.
2007-06-06 12:11:34 +02:00
Rob Shearman
c16bb07186
wininet: Send the correct callbacks during InternetReadFileExA calls.
2007-06-06 12:10:55 +02:00
Jeremy White
7ad691a5ee
wininet: Mark Proxy Authorization header as a request header, so it actually gets sent.
2007-06-01 12:40:22 +02:00
Alexandre Julliard
1ada7ba20e
wininet: Fixed compilation without SSL.
2007-05-29 23:27:08 +02:00
Rob Shearman
56267608f1
wininet: Add a new NETCON_query_data_available function.
...
Use it to implement the behaviour where InternetReadFileExA does a
synchronous request if the data is available and asynchronous otherwise.
2007-05-29 14:00:20 +02:00
Rob Shearman
76507d475b
wininet: Don't close the connection if the caller passes in zero for the number of bytes to be read.
...
Only close the connection when the bytes read equals the content length.
Fixup HTTP_DrainContent, which relied on the previous incorrect
behaviour to instead close connections with no content length manually.
2007-05-29 13:49:02 +02:00
Rob Shearman
2e21d090cb
wininet: Cope with non-nul-terminated header strings being passed to HttpSendRequestW.
2007-05-29 13:44:36 +02:00
Rob Shearman
4d1b8b1a4e
wininet: Fix basic authentication by putting Basic directing into the scheme field, as the pszAuthValue can have an optional realm string appended.
2007-05-29 13:44:35 +02:00
Andrew Talbot
8ee390f6f5
wininet: Exclude unused headers.
2007-05-29 12:10:17 +02:00
Rob Shearman
7b94871c9f
wininet: Pass context to InitializeSecurityContext in second parameter.
...
Otherwise, the call will now fail with SEC_E_INVALID_HANDLE.
2007-05-29 11:54:42 +02:00
Alexandre Julliard
be59e2bb53
Fix a couple of overflowing heap allocations revealed by the previous change.
2007-05-22 11:59:36 +02:00
Rob Shearman
847cc51d3b
wininet: Implement basic non-proxy authentication.
2007-05-21 16:52:21 +02:00
Rob Shearman
4b507685e8
wininet: Add support for SSPI authentication for HTTP.
2007-05-21 16:52:10 +02:00
Michael Stefaniuc
5f62da109e
janitorial: Pass HEAP_ZERO_MEMORY as flag to HeapAlloc() instead of zeroing out the allocated memory in a later call.
2007-04-25 12:26:07 +02:00
Alban Browaeys
3d79f1b80b
wininet: Fix szCacheContent in URLCacheContainer_OpenIndex.
2007-04-16 13:20:54 +02:00
Andrew Talbot
57746f9592
wininet: Replace inline static with static inline.
2007-03-26 12:20:03 +02:00
Paul Vriens
611acf5201
wininet/ftp: Fix potential memory leak.
2007-03-21 22:51:45 +01:00
Paul Vriens
5f9d7745dc
wininet/ftp: Remove unneeded check.
2007-03-21 22:51:38 +01:00
Paul Vriens
e3d7274727
wininet/tests: Expose a problem with FtpGetFile.
2007-03-21 11:55:05 +01:00
Paul Vriens
b6f92f10c6
wininet/ftp: Move a definition in FTP_FtpFindFirstFileW (Coverity).
2007-03-21 11:54:56 +01:00
Paul Vriens
9a7fb5f1e7
wininet/ftp: Simplify FTP_FtpGetFileW a bit.
2007-03-21 11:54:42 +01:00
Hans Leidekker
13a04ac0a8
wininet: Fix buffer size calculation in INTERNET_InternetOpenUrlW.
...
Spotted by Ron Yorston.
2007-03-13 20:31:22 +01:00
Francois Gouget
fa41be3fdb
wininet: Fix a couple of reversed checks that could result in leaked socket handles.
2007-03-08 22:16:41 +01:00
Francois Gouget
53e76f8370
wininet: Check file handles against INVALID_HANDLE_VALUE, not NULL.
...
Simplify the file handle handling in FTP_FtpPutFileW().
2007-03-08 22:16:36 +01:00
Rob Shearman
07daeff8f4
wininet: Always make copies of strings passed to INTERNET_SendCallback.
...
This ensures that applications that change the strings received in
status callbacks don't affect the data needed to successfully connect to
the correct server.
2007-03-05 16:43:26 +01:00
Paul Vriens
23473ccc9e
wininet/ftp: Let CreateFile deal with last error.
2007-03-01 12:17:47 +01:00
Ken Thomases
b33057986a
wininet: Use "ping -c 1" instead of "ping -w 1" for InternetCheckConnection.
2007-02-28 21:29:43 +01:00
Paul Vriens
443ae2290a
wininet/tests: Add another test.
2007-02-27 12:23:49 +01:00
Andrew Talbot
46fc9c2e11
wininet: Constify some variables.
2007-02-26 13:38:37 +01:00
Paul Vriens
63806a94b5
wininet/tests: Add a few more tests.
2007-02-22 11:26:51 +01:00
Rob Shearman
ba590a185a
wininet: Fix the case of partial SSL reads from the peek buffer.
...
Don't return FALSE for a partial read. Fall through to SSL_read and use
the logic for partial reads there instead of having separate logic and
recursively calling NETCON_recv. Based on a patch by Michael Moss.
2007-02-21 19:49:50 +01:00
Francois Gouget
56da1eeadc
wininet/tests: Fix some tests so they succeed on Windows 98.
2007-02-21 19:48:25 +01:00
Paul Vriens
8bc9bc2e29
wininet/ftp.c: Fix some typos.
2007-02-21 10:54:14 +01:00
Francois Gouget
93494f2ac0
Assorted spelling fixes.
2007-02-20 20:30:51 +01:00
Francois Gouget
eb2bf541f2
wininet/tests: Tell the user which ftp server we're using for the tests so he can try to connect to it manually in case of trouble.
2007-02-20 20:29:51 +01:00
Francois Gouget
f410bbf098
wininet/tests: Dynamically load some functions so the test runs on Windows 98.
2007-02-20 20:29:46 +01:00
Francois Gouget
da64fe5d56
wininet: Move a bunch of misplaced API documentation.
2007-02-20 20:29:38 +01:00
Paul Vriens
8316b93386
wininet/ftp.c: Fix some returned error codes.
2007-02-20 11:40:09 +01:00
Hans Leidekker
316383dd49
wininet: Don't discard the extra info part of a URL in InternetOpenUrl.
2007-02-20 11:39:00 +01:00
Paul Vriens
5b04d3d67d
wininet/ftp.c: Fix some returned error codes.
2007-02-19 12:04:42 +01:00
Hans Leidekker
890f63a1d8
wininet: Fix a test that fails on Windows.
2007-02-13 11:50:07 +01:00
Hans Leidekker
2024f68753
wininet: Skip empty accept type strings in HttpOpenRequest.
2007-02-13 11:50:01 +01:00
Paul Vriens
f0f3e15ac2
wininet/ftp.c: Fix some returned error codes.
2007-02-13 11:49:40 +01:00
Paul Vriens
00b7b29c3a
wininet/ftp.c: Add tests to show the order of parameter checking.
2007-02-13 11:49:22 +01:00
Paul Vriens
2ba1cdad69
wininet/ftp.c: Add another test.
2007-02-12 13:58:56 +01:00
Paul Vriens
d20833fc52
wininet/ftp.c: Fix some returned error codes.
2007-02-12 13:47:11 +01:00
Paul Vriens
54c80612ac
wininet/ftp.c: Fix some returned error codes.
2007-02-12 13:47:03 +01:00
Paul Vriens
6c05048756
wininet/ftp.c: Fix some returned error codes.
2007-02-12 13:46:52 +01:00
Paul Vriens
1f5e5a2b75
wininet/ftp.c: Fix some returned error codes.
2007-02-09 11:50:09 +01:00
Paul Vriens
37eb0955cd
wininet/tests: Add a few more tests.
2007-02-07 21:41:58 +01:00
Paul Vriens
70be65b76e
wininet/ftp: Remove unneeded (double) checks.
2007-02-07 21:41:53 +01:00
Paul Vriens
ce8ededf3b
wininet/ftp: Remove unneeded (double) checks.
2007-02-07 21:41:44 +01:00
Paul Vriens
e849f758ba
wininet/ftp: Remove unneeded (double) checks.
2007-02-07 21:41:37 +01:00
Paul Vriens
00ff67ef09
wininet/ftp: Remove unneeded (double) checks.
2007-02-07 21:41:30 +01:00
Paul Vriens
a571476a74
wininet/ftp: Remove unneeded (double) checks.
2007-02-07 21:41:23 +01:00
Paul Vriens
7a1ef2c1ef
wininet/ftp: Remove unneeded (double) checks.
2007-02-07 21:41:16 +01:00
Paul Vriens
7c7271d465
wininet/ftp: Remove unneeded (double) checks.
2007-02-07 21:41:07 +01:00
Paul Vriens
2831cf5d3e
wininet/ftp: Remove unneeded (double) checks.
2007-02-07 21:41:00 +01:00
Paul Vriens
0e8ad3019a
wininet/ftp: Remove unneeded (double) checks.
2007-02-07 21:40:52 +01:00
Paul Vriens
0cc5a68e2c
wininet/ftp.c: Remove unneeded check.
2007-02-07 11:03:59 +01:00
Paul Vriens
46812a4bba
wininet: Remove unused function.
2007-02-06 12:30:45 +01:00
Paul Vriens
8e9a81ea08
wininet/tests: Add ftp tests.
2007-02-05 21:04:26 +01:00
Bang Jun-Young
b71e42b794
wininet: config.h police.
2007-02-05 12:25:55 +01:00
Francois Gouget
aab5e5856e
Don't put single quotes around '%s' when using the debugstr_*() functions.
2007-01-18 12:55:50 +01:00
Rob Shearman
1ec14b0b25
wininet: Fix HTTP_EncodeBasicAuth by passing an out buffer to the second set of character set conversion calls.
2007-01-17 11:24:09 +01:00
Mikołaj Zalewski
b8e1dcb374
wininet: Add Polish translation.
2007-01-15 12:42:29 +01:00
Rob Shearman
a9ebc706e3
wininet: Change HTTP_EncodeBase64 to operate on a series of bytes, instead of text.
...
Change HTTP_EncodeBasicAuth to convert the username and password into
utf8 before base64 encoding.
2007-01-15 12:31:11 +01:00
Rob Shearman
9efe083ec5
wininet: HTTP_HttpQueryInfoW deals with bytes, not characters so update the callers that have this wrong assumption.
2007-01-15 12:30:53 +01:00
Rob Shearman
7b002a39b8
wininet: Allow a NULL value to be passed into HTTP_ProcessHeader
...
instead of crashing so that when used with the replace flag it will
delete an existing value.
2007-01-15 12:30:46 +01:00
Rob Shearman
392ceba61f
wininet: Don't try to read anything if 0 bytes are to be read.
2007-01-10 22:25:44 +01:00
Francois Gouget
e66d1cd5e9
wininet: Consistenly use INTERNET_SetLastError().
2007-01-10 11:58:47 +01:00
Rob Shearman
47a8b86b53
wininet: Use Keep-Alive for HTTP requests if specified by the flags passed into HttpOpenRequest.
2007-01-08 12:39:50 +01:00
Rob Shearman
a9c2cfa8d9
wininet: Fix the handling of Accept types passed into HttpOpenRequest
...
by properly coalescing all the types into the Accept header value,
rather than just adding the first.
2007-01-08 12:39:47 +01:00
Rob Shearman
7e8ef764b8
wininet: Rename HTTP_Base64 to HTTP_EncodeBase64 to more accurately reflect what it does.
2007-01-08 12:39:42 +01:00
Francois Gouget
bf81fdc248
wininet/tests: Print GetLastError() in decimal with '%u'.
2007-01-08 12:06:27 +01:00
Jeff Latimer
d7697bd55e
wininet: Ensure null check before dereference.
2007-01-05 20:26:30 +01:00
Rob Shearman
06b19b018a
wininet: Fix the releasing of the wrong reference count in HTTP_CloseHTTPRequestHandle.
...
lpwhr obviously already has a reference count of 0 because it is being destroyed.
2007-01-04 21:17:53 +01:00
Rob Shearman
272954bd81
wininet: Change the HTTP code to not assume that the connection will be closed at the end of every request.
2007-01-04 21:17:34 +01:00
Rob Shearman
f0163ae7d6
wininet: Don't send callbacks in HTTP_CloseConnection if not connected.
2007-01-04 21:17:19 +01:00
Rob Shearman
ac1b527498
wininet: Use the Content-Length header to work out how much HTTP data there is left to be read
...
and don't try to read any more than what is available.
2007-01-04 21:17:12 +01:00
Rob Shearman
cf43b16036
wininet: Always send a Connection header set to "close" because that is what we expect for the moment.
2007-01-04 21:16:38 +01:00
Rob Shearman
09dbb1b5a0
wininet: Use correct types for socket functions to avoid warnings when compiling on BSD-based systems.
2007-01-04 21:16:30 +01:00
Rob Shearman
14fb418942
wininet: Fix HTTP redirects by reseting loop_next after one loop.
2007-01-04 21:14:54 +01:00
Rob Shearman
02c89e5c6f
wininet: Remove the custom thread pool implementation and use QueueUserWorkItem instead.
2007-01-04 21:13:53 +01:00
Louis Lenders
e39a3be860
wininet: Update Dutch resource.
2007-01-04 09:53:23 +01:00
Jacek Caban
49f5ee746c
wininet: Get rid of ASYNC_FUNC enum.
2006-12-26 12:50:19 +01:00
Jacek Caban
f08ff892be
wininet: Use proc instead of enum in FTPFINDNEXTW request.
2006-12-26 12:50:09 +01:00
Jacek Caban
3a08f1f656
wininet: Use proc instead of enum in FTPRENAMEFILEW request.
2006-12-26 12:50:00 +01:00
Jacek Caban
97157ccee0
wininet: Use proc instead of enum in FTPREMOVEDIRECTORYW request.
2006-12-26 12:49:53 +01:00
Jacek Caban
ee99b3f0c5
wininet: Use proc instead of enum in FTPDELETEFILEW request.
2006-12-26 12:49:47 +01:00
Jacek Caban
054108368e
wininet: Use proc instead of enum in FTPGETFILEW request.
2006-12-26 12:49:41 +01:00
Jacek Caban
3c90016f2f
wininet: Use proc instead of enum in FTPOPENFILEW request.
2006-12-26 12:49:32 +01:00
Jacek Caban
3b77ff24c2
wininet: Use proc instead of enum in FTPGETCURRENTDIRECTORYW request.
2006-12-26 12:49:27 +01:00
Jacek Caban
0d464ba8db
wininet: Use proc instead of enum in FTPFINDFIRSTFILEW request.
2006-12-26 12:49:19 +01:00
Jacek Caban
c4aa47badd
wininet: Use proc instead of enum in FTPCREATEDIRECTORY request.
2006-12-26 12:49:08 +01:00
Jacek Caban
f28b0e3b10
wininet: Use proc instead of enum in FTPSETCURRENTDIRECTORY request.
2006-12-26 12:49:01 +01:00
Jacek Caban
4adce67cf6
wininet: Use proc instead of enum in FTPUTFILE request.
2006-12-26 12:48:53 +01:00
Jacek Caban
662c885a0b
wininet: Use proc instead of enum in INTERNETREADFILEEXA request.
2006-12-26 12:48:40 +01:00
Jacek Caban
8c3ca8d817
wininet: Use proc instead of enum in INTERNETOPENURLW request.
2006-12-26 12:48:30 +01:00
Jacek Caban
5dd5536a9a
wininet: Remove not used HTTPOPENREQUESTW request.
2006-12-26 12:48:21 +01:00
Jacek Caban
c156845560
wininet: Use proc instead of enum in HTTPSENDREQUESTW request.
2006-12-26 12:48:09 +01:00
Jacek Caban
e30037f0d5
wininet: Use proc instead of enum in SENDCALLBACK request.
2006-12-26 12:47:57 +01:00
Rob Shearman
72575a06ca
wininet: Make a function for resolving the server name for an HTTP request
...
and sending the appropriate callbacks and use it to remove some duplicated code.
2006-12-07 11:42:51 +01:00
Rob Shearman
4319ec6b83
wininet: Make HTTP_HandleRedirect no longer call HTTP_HttpSendRequestW.
...
Make the redirect handling in HTTP_HttpSendRequestW iterate instead of recurse.
2006-12-07 11:42:38 +01:00
Paul Vriens
cae03f7658
wininet/test: Free memory after use.
2006-12-06 11:26:52 +01:00
Francois Gouget
c66628b73f
Consistently use SUBLANG_NEUTRAL for Italian resources.
2006-12-05 11:28:38 +01:00
Francois Gouget
89f4cd9336
wininet: Add a Portuguese translation (contributed by Americo Jose Melo).
2006-11-28 12:13:22 +01:00
Francois Gouget
b5f104d05b
Replace SUBLANG_DEFAULT with the specific SUBLANG_XXX constant for languages that have multiple sublanguages.
2006-11-24 11:49:32 +01:00
Andrew Talbot
4ef6043a57
wininet: Cast-qual warnings fix.
2006-11-22 11:45:05 +01:00
Rob Shearman
01425f603a
wininet: Don't return an error for INTERNET_OPTION_SEND/RECEIVE_TIMEOUT not being implemented
...
on protocols other than HTTP, just print a FIXME. Reported by Michael Moss.
2006-11-02 21:57:17 +01:00
Jacek Caban
1031c5f9c6
wininet: Revert commit 760043c245
.
...
After more testing I've checked that current code is bad, but my patch
was also wrong and causes regression in WoW.
2006-11-02 21:01:05 +01:00
Jacek Caban
5c53baac8d
wininet: Inherit INET_CALLBACKW from parent handler.
2006-10-31 11:46:49 +01:00
Jacek Caban
7bd385b714
wininet: Use handle stored in WININETHANDLEHEADER instead of WININET_FindHandle.
2006-10-31 11:46:47 +01:00
Jacek Caban
760043c245
wininet: Call SendCallback in destructor instead of InternetCloseHandle.
2006-10-30 11:36:16 +01:00
Jacek Caban
ae430f9323
wininet: Store handle in WININETHANDLEHEADER and use it in SendCallback.
2006-10-30 11:36:09 +01:00
Jacek Caban
957516f8e6
wininet: Remove lpwhparent from WININETHANDLERHEADER.
2006-10-30 11:36:02 +01:00
Jacek Caban
550ffef212
wininet: Store WININETFTPSESSIONW pointer in WININETFTPFILEW.
2006-10-30 11:35:56 +01:00
Jacek Caban
51ba292716
wininet: Store WININETFTPSESSIONW pointer in WININETFTPFINDNEXTW.
2006-10-30 11:35:43 +01:00
Jacek Caban
91312d7d57
wininet: Move ftp FindNextFile implementation to ftp.c.
2006-10-30 11:35:36 +01:00
Jacek Caban
2a50d52c04
wininet: Use lpAppInfo instead of lpwhparent where possible.
2006-10-30 11:35:18 +01:00
Jacek Caban
96c0c6c5d9
wininet: Store WININETAPPINFOW pointer in WININETFTPSESSIONW.
2006-10-30 11:35:09 +01:00
Jacek Caban
61a1cef6f6
wininet: Use lpHttpSession instead of lpwhcalback where possible.
2006-10-30 11:34:58 +01:00
Jacek Caban
a9bdc01e19
wininet: Store pointer to WININETHTTPSESSIONW in WININETHTTPREQUESTW.
2006-10-30 11:34:51 +01:00
Jacek Caban
a541a44f51
wininet: Use lpAppInfo instead of lpwhparent where possible.
2006-10-30 11:34:41 +01:00
Jacek Caban
c250617d88
wininet: Store WININETAPPINFOW pointer in WININETHTTPSESSIONW.
2006-10-30 11:34:21 +01:00
Jacek Caban
cdbab7ddf2
wininet: Fixed declaration of INTERNET_STATUS_CALLBACK.
2006-10-30 11:17:24 +01:00
Francois Gouget
9fe4673347
Don't include windows.h & co in the Wine sources.
...
Remove uneeded COM_NO_WINDOWS_H defines.
2006-10-24 17:47:09 +02:00
Mikołaj Zalewski
58bd35c8c5
resources: Change Dutch sublanguage code to SUBLANG_NEUTRAL.
2006-10-24 17:45:51 +02:00
Mikołaj Zalewski
e32aa55703
resources: Change German sublanguage code to SUBLANG_NEUTRAL.
2006-10-24 11:45:12 +02:00
Jacek Caban
cc7a86ec7e
wininet: Use HTTP_ADDHDR_FLAG_REPLACE flag in HTTP_HttpSendRequest to add Content-Length header.
2006-10-23 12:28:58 +02:00
Francois Gouget
0a20f18a80
wininet: HttpSendRequestW() returns ERROR_IO_PENDING when called on an async socket. But that does not mean that it failed.
2006-10-20 14:10:41 +02:00
Byeong-Sik Jeon
e1fd734c97
Korean: Use SUBLANG_NEUTRAL in Korean resources.
2006-10-20 13:49:39 +02:00
Hans Leidekker
781f3f78a0
wininet: Cast-qual warnings fix.
2006-10-14 20:16:49 +02:00
Andrew Talbot
c54a2480ec
wininet/tests: Cast-qual warning fix.
2006-10-06 12:32:51 +02:00
Hans Leidekker
cd2c458588
wininet: Win64 printf format warning fixes.
2006-10-05 17:45:14 +02:00
Hans Leidekker
de3b5be338
wininet/tests: Win64 printf format warning fixes.
2006-10-05 17:45:09 +02:00
Michael Stefaniuc
85ce5117c5
Add a WINE_NO_LONG_INT define to many makefiles to ease the transition of DWORD/LONG/ULONG from long to int.
2006-09-29 16:08:30 +02:00
Alexandre Julliard
c56eec22e2
wininet/tests: Don't fail the tests if the network is unreachable.
2006-09-21 12:44:56 +02:00
Alexandre Julliard
32ab895e46
makefiles: Generate the dependencies line to avoid some code duplication.
2006-09-14 09:38:16 +02:00
Jan Zerebecki
91bbec013b
wininet: Fix fd leak on failure case.
2006-09-07 16:11:15 +02:00
Alexandre Julliard
5cf75e615a
makefiles: Only run test and documentation targets in directories that need them.
2006-08-28 13:37:44 +02:00
Andrew Talbot
5ea47faf8b
wininet/tests: Write-strings warnings fix.
2006-08-11 11:56:16 +02:00
Paul Chitescu
8b1b381872
wininet: MSG_WAITALL support in NETCON_recv with SSL.
2006-08-10 10:54:12 +02:00
Ulrich Czekalla
f6c0a461ec
wininet: Add INTERNET_OPTION_SECURITY_FLAGS stub to InternetSetOptionW.
2006-08-07 20:00:03 +02:00
James Hawkins
8c6040fccc
wininet: Only copy the relative filename into the UrlEntry structure.
2006-07-29 11:51:21 +02:00
Paul Vriens
5a086a5210
wininet: FTP_FtpDeleteFileW expects a LPWININETFTPSESSIONW.
2006-07-20 12:11:34 +02:00
Paul Vriens
5ede40ab5d
wininet: FTP_FtpRenameFileW expects a LPWININETFTPSESSIONW.
2006-07-19 18:16:02 +02:00
James Hawkins
a1544731db
wininet: Add more tests for InternetCrackurl.
2006-07-17 13:46:11 +02:00
Alexandre Julliard
eb8a40c368
libs: Merged libwine_unicode into libwine.
...
Most dlls use libwine_unicode at this point, so there's nothing to
gain by having two separate libraries.
2006-07-11 19:33:22 +02:00
Alexandre Julliard
77dc0d9be5
.gitignore: Added wildcards to ignore generated resource files.
2006-07-10 21:39:00 +02:00
Alexandre Julliard
0fa8baafcb
make_dlls: Recursively ignore .ok files in all tests directories.
2006-07-10 21:26:50 +02:00
Alexandre Julliard
edd100b899
make_dlls: Recursively ignore testlist.c in all tests directories.
2006-07-10 21:19:42 +02:00