Lei Zhang
255eebe44d
wininet: Handle NULL input for FindCloseUrlCache.
2008-05-08 22:48:30 +02:00
Hans Leidekker
493b6915ca
wininet: Deal with bogus accept types array passed into HttpOpenRequestA.
2008-05-07 17:49:31 +02:00
Maarten Lankhorst
11a0e45304
wininet: Ignore INTERNET_STATUS_DETECTING_PROXY messages in the http test.
2008-05-07 12:11:08 +02:00
Hans Leidekker
e2f690a0ac
wininet: Don't add the user agent header until HttpSendRequest is called.
2008-05-05 12:51:56 +02:00
Rob Shearman
64806e642f
wininet: Add tests for GetUrlCacheEntryInfoExA.
...
Factorise out bits of the other tests so that the code is cleaner and
can be re-used.
2008-04-30 17:00:06 +02:00
Hans Leidekker
bbf5dae444
wininet: Use a direct connection for tests that connect to localhost.
2008-03-31 13:01:11 +02:00
Dan Hipschman
0929593b6c
wininet: InternetReadFileExA should check INTERNET_FLAG_ASYNC.
2008-03-28 09:50:42 +01:00
Hans Leidekker
26b38dc503
wininet: Avoid a crash with traces on.
2008-03-25 11:33:41 +01:00
Rob Shearman
716ecc42f9
wininet: Support the lpszFileExtension "reserved" parameter being passed into CommitUrlCacheEntryA.
...
Store it in the URL cache entry and allow it to be retrieved by
RetrieveUrlCacheEntryFile and other functions.
2008-03-12 17:58:37 +01:00
Rob Shearman
cdd135c2f3
wininet: Fix URLCache_LocalFileNameToPathA to return a full path, rather than just the container path.
...
This was caused by path_len including the nul-terminator and so the rest
of the string was being added after the nul-terminator, which is
incorrect. This is fixed by making path_len not include the nul-terminator.
Also fix a few other issues with the function, like not passing a
correct length into the second call to WideCharToMultiByte, nRequired
being calculated incorrectly and the string not always being nul-terminated.
Add a test for this function by testing the lpszLocalFileName field
obtained from RetrieveUrlCacheEntryFileA.
2008-03-12 17:58:20 +01:00
Rob Shearman
4041c2015b
wininet: Add tests for Find{First,Next}UrlCacheEntryA functions.
2008-03-12 17:57:56 +01:00
Rob Shearman
99e7f7ab6e
wininet: Add tests for some URL cache functions.
2008-03-12 17:55:41 +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
d3682dd33f
wininet: Fixed some tests.
2008-03-03 12:00:00 +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
928c9f0984
wininet: Fixed version returned by INTERNET_OPTION_VERSION.
2008-02-27 14:52: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
Hans Leidekker
2617fb6dea
wininet: Handle the "100 Continue" response by ignoring it.
2008-02-18 13:33:33 +01:00
Jacek Caban
e49e792849
wininet: Added cache test.
2008-02-15 10:00:10 +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
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
Marcus Meissner
45fbfbcef4
wininet: Check if buffer has overflowed potentially.
2008-01-24 11:41:22 +01:00
Francois Gouget
44b52b128c
Assorted spelling fixes.
2008-01-16 12:48:29 +01:00
Austin English
0e4adae973
Spelling fixes.
2008-01-07 13:41:01 +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
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
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
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
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
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
Detlef Riekenberg
f98b4507ba
wininet/tests: Initial tests for InternetCanonicalizeUrlA.
2007-10-11 16:24:28 +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
Alexandre Julliard
b20694e732
wininet/tests: Anonymous FTP can succeed without a password.
2007-09-14 16:59:06 +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