Francois Gouget
f410bbf098
wininet/tests: Dynamically load some functions so the test runs on Windows 98.
2007-02-20 20:29:46 +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
Francois Gouget
bf81fdc248
wininet/tests: Print GetLastError() in decimal with '%u'.
2007-01-08 12:06:27 +01:00
Jacek Caban
cdbab7ddf2
wininet: Fixed declaration of INTERNET_STATUS_CALLBACK.
2006-10-30 11:17:24 +01:00
Andrew Talbot
c54a2480ec
wininet/tests: Cast-qual warning fix.
2006-10-06 12:32:51 +02:00
Hans Leidekker
de3b5be338
wininet/tests: Win64 printf format warning fixes.
2006-10-05 17:45:09 +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
Andrew Talbot
5ea47faf8b
wininet/tests: Write-strings warnings fix.
2006-08-11 11:56:16 +02:00
Mike McCormack
8af1faec24
wininet: Add a test for basic authentication.
2006-05-30 19:29:48 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Mike McCormack
854808d9d4
wininet: Add a standalone http test.
2006-05-16 20:21:34 +02: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
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
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
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
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
Eric Pouech
e66e227dbe
Fixes for missing prototypes warnings.
2006-02-06 13:13:28 +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
Robert Shearman
03aea8c1b1
Test the behaviour of HttpSendRequestEx when putting data into the
...
lpvBuffer.
2005-11-30 12:31:38 +01:00
Robert Shearman
4350357634
HttpSendRequestExA/W doesn't touch lpBuffersIn->Next, so simplify the
...
code a bit.
Modify test case to demonstrate this.
2005-11-29 11:42:23 +01:00
Francois Gouget
6d442aeb34
Assorted spelling fixes.
2005-11-23 20:14:43 +01:00
Aric Stewart
9e68c651d6
Fix some logic to allow HTTP_ADDREQ_FLAG_ADD to replace existing
...
headers. Also adding a test for some header adding flags.
2005-11-22 14:53:30 +00:00
Robert Shearman
dece43d880
Test the sizes of some of the parameters passed into the callback.
2005-11-22 11:59:16 +00:00
Aric Stewart
be918f48b6
Implement HttpSendRequestEx and HttpEndRequest. Restructure, breaking
...
some things out of HTTP_SendRequestW to avoid duplicate code.
2005-11-21 15:17:55 +00:00
Robert Shearman
f5af18f05f
- Improve callback to give context sensitive information about the
...
different statuses and print the thread ID that it was called from.
- Replace the busy waiting on the "goon" flag with an event.
- Replace hard coded numbers with more informative constants
throughout the InternetReadFile test.
- Add tests for InternetReadFileExA.
- Fix the error value from calling InternetReadFile with a NULL handle
as indicated by the test.
2005-11-16 11:21:41 +00:00
Saulius Krasuckas
bc52612f77
Fix a test for InternetCreateUrlA as no Windows platform sets last
...
error here. Make InternetCreateUrlA pass the test.
2005-11-14 11:23:02 +00:00
James Hawkins
1928ee8804
Implement InternetCreateUrlW and test cases.
2005-10-31 14:06:35 +00:00
Vincent Béron
a0c185ee1b
Cast the result of strlen() to DWORD and print it via %ld to get rid
...
of warnings with gcc 3.2.
2005-09-29 10:33:20 +00:00
Saulius Krasuckas
69cf6a28f5
Correct failing test and transform it into a bunch of another tests.
2005-08-17 09:53:57 +00:00
Saulius Krasuckas
43e93117e3
Move repetitive code to two helper functions.
2005-08-16 15:56:42 +00:00
Alexandre Julliard
9c80ef3d85
Added missing LGPL header.
2005-06-30 20:49:27 +00:00
Mike McCormack
9b95bb526d
Fix some warnings.
2005-06-13 19:05:42 +00:00
Uwe Bonnes
29db8816b2
Handle more Escape situations.
2005-05-24 11:43:35 +00:00
Jason Edmeades
2f30d307df
Ensure A->W version of InternetCrackURL passes correct length values,
...
and associated tests.
2005-04-11 16:10:50 +00:00
Jakob Eriksson
461c830745
Eliminate HeapAlloc casts.
2005-03-22 18:26:06 +00:00
Hans Leidekker
e82731a3c7
Add more tests and fix InternetTimeToSystemTimeW accordingly.
2005-03-17 18:55:41 +00:00
Jakob Eriksson
b9fddc05de
Test failed before on 98, NT4, 2000 and XP.
2005-03-16 20:17:31 +00:00
Hans Leidekker
e9856f166b
Implement and test InternetTime{From,To}SystemTime{A,W}.
...
Correct spelling in InternetCheckConnectionA.
2005-01-18 11:43:40 +00:00
Rein Klazes
3714a39867
Correct cases where arguments of ok() calls depend on the order in
...
which they are evaluated.
2004-12-27 17:26:37 +00:00
Jakob Eriksson
2d54019bbd
Supposedly fix http test on Windows.
2004-10-28 21:01:04 +00:00
Robert Shearman
12df80a748
- Don't crash on double InternetCloseHandle.
...
- Test case for this.
2004-09-23 22:53:04 +00:00