Commit Graph

56 Commits

Author SHA1 Message Date
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
Mike McCormack c62317989a Add another test for InternetCrackUrlW. 2004-08-06 18:58:04 +00:00
Francois Gouget 72323cb6a9 Add trailing '\n's to ok() calls.
Fix a couple of spelling errors.
2004-01-23 22:44:26 +00:00
Sylvain Petreolle a53c884986 winehq.com -> winehq.org 2004-01-23 20:49:05 +00:00
Mike Hearn f3957f52cd Change URL used in http tests to be a #define so it can be changed
easily in future, and make it point to winehq.
2004-01-16 02:03:16 +00:00
Jon Griffiths 90535ce905 Various test fixes for XP/msvc. 2003-09-25 20:29:40 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Alexandre Julliard d8c5f2bd4b Use trace() instead of printf(). 2003-07-22 03:16:47 +00:00
Uwe Bonnes 1cd00dae50 InternetOpenUrlA (http/s case): Use client for HttpOpenRequestA, don't
insert HOST: twice.
HttpAddRequestHeadersA: allow lpszHeader == NULL.
2003-02-25 03:57:59 +00:00