Commit Graph

360 Commits

Author SHA1 Message Date
Mike McCormack c72d956b90 Make sure to insert the proxy authentication header if necessary. 2004-12-06 11:40:57 +00:00
Eric Pouech 5c2a891c43 Made some functions and variables static. 2004-11-29 18:00:10 +00:00
Tom Wickline 5c38e1b561 Version resources cleanup. 2004-11-23 13:59:34 +00:00
Robert Shearman 0500a7d993 - Make InternetGetConnectedStateExA not crash, by making
InternetGetConnectedStateExW fill in the buffer correctly.
- Remove the dumping of strings that will only contain garbage.
- Document function.
2004-11-21 15:42:57 +00:00
Robert Shearman b1e361a93e Pass the address of the handle rather than just the handle to fix a
crash with IE.
2004-11-19 17:54:48 +00:00
Aric Stewart 11f341cff1 Implemented InternetGetConnectedStateExA. 2004-11-04 21:05:03 +00:00
Jakob Eriksson 2d54019bbd Supposedly fix http test on Windows. 2004-10-28 21:01:04 +00:00
Vincent Béron 3875307d0c Remove #ifdef HAVE_SYS_TYPES_H. 2004-10-08 20:48:44 +00:00
Robert Shearman 07519aa1d0 Don't define GWL_USERDATA, GWL_ID, GWL_HWNDPARENT, GWL_HINSTANCE and
GWL_WNDPROC when compiling the Wine source.
2004-09-23 22:54:58 +00:00
Robert Shearman b72a682751 Use dynamically allocated heap allocated buffers in
HTTP_InterpretHTTPHeader to avoid buffer overflow on large headers.
2004-09-23 22:53:50 +00:00
Robert Shearman 12df80a748 - Don't crash on double InternetCloseHandle.
- Test case for this.
2004-09-23 22:53:04 +00:00
Robert Shearman 890977a18d Always replace whatever is already in the HTTP "Host" header. 2004-09-20 21:43:47 +00:00
Robert Shearman ed517f3a8b InternetSetStatusCallback can be used on any handle and callbacks are
inherited by derived handles.
2004-09-20 19:10:31 +00:00
Alexandre Julliard 60a8fcf4b0 Avoid using socklen_t. 2004-09-16 20:34:27 +00:00
Robert Shearman 0e74f851e8 Don't let applications add Connection header to request. 2004-09-14 19:38:59 +00:00
Robert Shearman 37f2cc8274 Store HTTP host header in the same way as most other headers. 2004-09-13 19:33:17 +00:00
Robert Shearman 898baf674e - Remove unused variable hIC.
- Remove check for HTTP signature in server reply.
- Fix stupid error with freeing the wrong buffer.
2004-09-13 19:17:47 +00:00
Uwe Bonnes 66af8b5f60 Strip dangling \r\n from HTTP_HttpSendRequest. 2004-09-10 21:11:22 +00:00
Krzysztof Foltman 80cfdd353d Make sure InternetReadFile returns full buffers. 2004-09-08 21:46:33 +00:00
Uwe Bonnes b50446216b Get full buffers in Internet_Readfile. 2004-09-08 01:25:21 +00:00
Francois Gouget 5512ae2685 Disable MSVC warning 4116 to avoid the 'unnamed type definition in
parentheses' warning caused by TYPE_ALIGNMENT().
2004-09-06 20:29:53 +00:00
Uwe Bonnes 5f289e766f Check for more standard headers. 2004-09-06 20:27:04 +00:00
Krzysztof Foltman 479ee52fda - Reversed the assertion causing InternetConnect to always fail.
- FTP_ConvertFileProp: WIN32_FIND_DATA contains proper modification
  and creation time.
2004-09-06 20:24:38 +00:00
Steven Edwards c91ae456b8 Use Windows sockets when building Wininet on Mingw. 2004-09-03 18:57:19 +00:00
Alexandre Julliard 754e7aa788 Added configure check for socklen_t. 2004-09-03 18:30:28 +00:00
Robert Shearman 765b92f9ed Don't use freed memory. 2004-08-26 18:22:43 +00:00
Francois Gouget 20b8b56d5f Enable the disabled tests in tests.data or add a comment describing
why the type cannot be tested.
Update the generated files, they compile and run successfully both on
Windows (with the Windows headers) and in Wine.
2004-08-25 00:42:50 +00:00
Huw Davies 174e6a5d28 Change dialogs to use MS Shell Dlg rather than Helv or MS Sans Serif. 2004-08-24 18:33:01 +00:00
Robert Shearman f625f4a071 Fix type of DeleteIE3Cache function. 2004-08-19 19:57:37 +00:00
Robert Shearman af353c0305 Better TRACE's for some Internet* functions. 2004-08-19 19:02:17 +00:00
Stefan Leichter ece5e478fe Added stub for DeleteIE3Cache. 2004-08-19 01:05:13 +00:00
David Kredba b45744c817 Added Czech resources. 2004-08-16 20:02:09 +00:00
Francois Gouget 0cc262c5bf Fix compilation of the wininet generated tests with the Windows
headers.
2004-08-13 23:19:37 +00:00
Mike McCormack 08c6c698dd Fix the processing of the lpszHeaders field in HttpSendRequest. 2004-08-10 23:41:35 +00:00
Mike McCormack 13b6ce6da8 Fix warnings generated with -Wsign-compare. 2004-08-09 18:54:23 +00:00
Mike McCormack c62317989a Add another test for InternetCrackUrlW. 2004-08-06 18:58:04 +00:00
Mike McCormack efbb50bc25 Fix the dwUrlPathLength returned by InternetCrackUrl when
lpszExtraInfo is null.
2004-08-06 18:57:53 +00:00
Robert Shearman 0bb7b50f3d Implement INTERNET_OPTION_CONNECTED_STATE. 2004-07-23 23:00:07 +00:00
Alexandre Julliard d7357a4956 Fixed a couple of off-by-one errors. 2004-07-22 20:36:36 +00:00
Robert Shearman 4385d305e1 HttpQueryInfo returns buffer length including null terminator on
insufficient buffer length and buffer length excluding null terminator
on success:
- Fix HTTP_HttpQueryInfoW for these semantics.
- Fix HttpQueryInfoA to correctly copy the null terminator in the call
  to WideCharToMultiByte.
2004-07-21 21:17:03 +00:00
Robert Shearman a584ffb951 Rewrite cookies to use shared list.h list code. 2004-07-21 19:36:53 +00:00
Mike McCormack f1d7b14bf8 Fix HTTP POST requests. 2004-07-21 19:36:34 +00:00
Robert Shearman 907ac44aa7 Fix string length return from HttpQueryInfoA. 2004-07-20 01:21:08 +00:00
Mike McCormack 3a1391b8dd Use pointers internally and refcount all objects. 2004-07-19 21:49:39 +00:00
Robert Shearman d6315926e6 Honour INTERNET_FLAG_NO_COOKIES. 2004-07-19 21:18:33 +00:00
Robert Shearman dee8751ca8 Fix HttpQueryInfo(HTTP_QUERY_RAW_HEADERS*) so that it returns the
actual headers received, not just reconstituting them from processed
data.
2004-07-19 20:09:20 +00:00
Robert Shearman e27ab315fd Fix size return from InternetGetCookieW. 2004-07-19 19:32:36 +00:00
Francois Gouget 817c520909 Assorted spelling fixes. 2004-07-16 19:15:40 +00:00
Alexandre Julliard 48243e32b9 Authors: Mike McCormack <mike@codeweavers.com>, Robert Shearman <rob@codeweavers.com>
- Change the way that the response headers are reconstructed to reduce
  the chance of memory being incorrectly allocated.
- Return the correct error when a header is not found.
- remove all the response headers before receiving new ones so that we
  don't merge headers from two responses.
- Add extra standard fields.
- Split the status line into http version, status code and status text
  and store those in the response data, without using use a fake
  field.
2004-07-15 18:57:32 +00:00
Robert Shearman 4cd38b4829 Accept headers without \r\n ending in HttpAddRequestHeaders. 2004-07-13 23:34:28 +00:00
Hajime Segawa a4ee7c5838 Added Japanese translation for msrle32, wininet, wcmd.
Fixed untranslated messages of regedit.
2004-07-12 20:46:10 +00:00
Henning Gerhardt 74cebde291 Translated some English resource files into German. 2004-07-12 19:55:59 +00:00
Mike McCormack a496906336 Build http requests in a more consistent way.
Fix the size of the request buffer.
Don't try converting the optional information from W to A.
2004-07-04 00:24:47 +00:00
Mike McCormack 1510cfc474 Allocate the correct size string in InternetCrackUrl. 2004-07-04 00:06:44 +00:00
Dimitrie O. Paun f3b681a2ad Fix the function names in some of the comments. 2004-06-28 20:28:38 +00:00
Mike McCormack b288f71e29 Pass pointers around internally instead of handles. 2004-06-14 17:57:26 +00:00
Mike McCormack afcf01ff92 Fixed ASCII redirect callbacks. 2004-06-14 16:56:10 +00:00
Mike McCormack a9b405cf9a Fix proxy support, remove typecasts. 2004-06-01 20:19:56 +00:00
Lionel Ulmer 378dec1519 Fix the case where lpszSearchFile is NULL in FtpFindFirstFile. 2004-06-01 19:42:43 +00:00
Ivan Leo Puoti 3e42f6953e Changed my name, so update copyright info. 2004-05-27 02:25:13 +00:00
Kevin Koltzau 1d2d2d6bf1 Move all FTP functions to unicode.
Improve FTP LIST parsing.
2004-05-25 04:02:05 +00:00
Patrik Stridvall 070db4e5de Fixed some issues found by winapi_check. 2004-05-17 21:08:31 +00:00
Kevin Koltzau 917df92356 Prevent memory leak and superfluous status notifications. 2004-05-13 05:17:25 +00:00
Kevin Koltzau 9debc40e66 Properly retrieve and release handles. 2004-05-12 23:02:40 +00:00
Kevin Koltzau 33972309f5 Cleanup conversion from A->W. 2004-05-10 19:59:05 +00:00
Alexandre Julliard a11b2bbafb Updated the auto-generated tests. 2004-05-04 00:41:11 +00:00
Francois Gouget 8fc374d8b4 Make Unicode strings 'static const'. 2004-04-20 02:14:00 +00:00
Francois Gouget 6a6c85c6d8 Make Unicode const strings static so they are not copied to the stack
each time we enter the function.
2004-04-19 20:12:14 +00:00
Alexandre Julliard 286fe0af18 Fixed a warning. 2004-04-13 00:19:58 +00:00
Mike McCormack 3462299c55 Convert unicode strings to const. 2004-04-12 23:13:53 +00:00
Alexandre Julliard a2bf4d009b Fixed length handling in HttpQueryInfoW. 2004-03-31 20:09:54 +00:00
Mike McCormack 44ef9a1f07 Unicodify the cookie handling code. 2004-03-30 20:38:08 +00:00
Mike McCormack 1baf39f95a Fix the HttpQueryInfoA function buffer size. 2004-03-30 20:37:49 +00:00
Mike McCormack a4e902cbe1 Convert the wininet HTTP functions to Unicode. 2004-03-30 04:36:09 +00:00
Mike McCormack 09d2d47721 Convert WININETAPPINFOA structure to unicode. 2004-03-25 05:29:47 +00:00
Alexandre Julliard 9e4ed6460c .spec.c files are no longer used for 32-bit dlls. 2004-03-24 03:36:44 +00:00
Marcus Meissner 9d61aee357 Allocate the correct nr of bytes for lpszCookies in HTTP_HttpOpenRequestA.
Allocate the correct nr of bytes for request stringlen without options.
2004-03-22 21:31:44 +00:00
Marcus Meissner 8624ef4ab3 Allocate correct number of pointers for szAcceptTypes, since we need
it NULL terminated.
HeapReAlloc will modify the pointer, so store it there.
2004-03-22 20:40:46 +00:00
Uwe Bonnes 25efbc9dbc HTTP_HttpSendRequestA: Remove \r and \n at the end of
lpwhr->lpszPath.
2004-03-16 01:06:30 +00:00
Alexandre Julliard 589e115233 We no longer use the .exe.spec.c files. 2004-03-02 21:16:37 +00:00
Patrik Stridvall 8f9b09e947 Fixed some issues found by winapi_check. 2004-02-27 21:32:54 +00:00
Lionel Ulmer 676e059c61 Store pointers in the internal structures and not handles. 2004-02-16 20:24:15 +00:00
Francois Gouget ad5ff7ceeb Assorted spelling and case fixes. 2004-02-09 22:07:42 +00:00
Lionel Ulmer 1d5e6b6725 Better TRACEing in some functions. 2004-02-09 22:01:49 +00:00
Lionel Ulmer e0e314780a Implemented proper asynchronous InternetOpenUrl handling. 2004-02-09 21:45:38 +00:00
Lionel Ulmer a29b4c7cde Report real handles to the application, not Wine internal ones. 2004-02-09 20:55:58 +00:00
Mike McCormack 7cc70c0a8f Implement proper HINTERNET handles. 2004-02-07 01:03:41 +00:00
Lionel Ulmer 6849466195 Properly handle asynchronous HttpSendRequestA. 2004-02-06 05:17:17 +00:00
Francois Gouget 6b6ed724ae Add missing '\n's to debug traces. 2004-01-27 00:01:43 +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
Francois Gouget 7494b5b980 Add trailing '\n's to ok() calls.
Check whether _MSC_VER is defined.
2004-01-23 02:11:12 +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
Gerald Pfeifer 6969a9b02d Remove URLCache_FindEntry() which is not used any longer. 2003-12-31 00:11:02 +00:00
Michael Stefaniuc 0bdf5d8c91 Fixed mem leak on error path. 2003-12-30 19:19:46 +00:00
Sylvain Petreolle fabfea59c7 Added stubs for options CONNECT_TIMEOUT and DATA_RECEIVE_TIMEOUT. 2003-12-30 19:16:37 +00:00
Uwe Bonnes 599c4522a8 HTTP_DealWithProxy: Only add http:// to proxy string when needed. 2003-12-15 19:47:31 +00:00
Robert Shearman fa7d78f118 - Url Cache improvements.
- In Internet{Set,Query}Option functions, hInternet can be NULL.
- Add traces to Internet* functions.
2003-12-12 06:01:20 +00:00
Jeremy Shaw 3cd1cfeaf9 Add a '\r\n' to lpszHeaders if it is not already terminated by
'\r\n'.
2003-12-11 04:25:41 +00:00
Alexandre Julliard 402b79a1e8 Porting fixes. 2003-11-27 00:59:36 +00:00
Vincent Béron f68ec6fc5d Undefine FAR to avoid conflict with ssl.h. 2003-11-25 01:48:01 +00:00
Francois Gouget 84540b4dc7 Assorted spelling fixes. 2003-11-18 20:41:24 +00:00
Ivan Leo Murray-Smith e51000f44f Added Italian translation. 2003-11-17 19:59:13 +00:00
Kirill Smelkov 8d0ac5574e Added gopher stubs. 2003-11-09 01:23:32 +00:00
Hans Leidekker a2977cf5b8 Added Dutch translations. 2003-10-27 22:04:36 +00:00
Alexandre Julliard b83789fdc3 Updated some of the generated tests. 2003-10-24 04:45:35 +00:00
Dmitry Timoshkov 2581db8f6a Fixed some problems found while compiling and linking Wine under
Cygwin.
2003-10-14 05:27:43 +00:00
Dimitrie O. Paun fbdfd910c1 Remove SYMBOLFILE and LDDLLFLAGS from Makefiles. 2003-10-11 01:09:15 +00:00
Francois Gouget 61ef356347 Some spelling fixes. 2003-10-08 19:09:44 +00:00
Jon Griffiths 90535ce905 Various test fixes for XP/msvc. 2003-09-25 20:29:40 +00:00
Mike McCormack b8921a24ab Use unions instead of defines in async work requests. 2003-09-25 20:25:22 +00:00
Mike McCormack e0fffb6c7c Fix more unicode/memory allocation errors. 2003-09-23 22:47:18 +00:00
Vincent Béron bf5f07a5b4 Yet another batch of French resources updates. 2003-09-22 21:16:56 +00:00
Mike McCormack 99f5a05555 Fix logic problems with NETCON_connected. 2003-09-22 21:15:34 +00:00
Mike McCormack 5fe38daee2 Fix a bunch of unicode/memory allocation errors. 2003-09-22 19:45:50 +00:00
Igor Stepin f638678830 Added a lot of Russian translations. 2003-09-17 20:08:20 +00:00
Francois Gouget ae50013017 Fix the case of product and company names. 2003-09-08 19:38:45 +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
Rok Mandeljc d4c1ebabdb Minor updates of Slovenian translations. 2003-08-29 22:21:43 +00:00
José Manuel Ferrer Ortiz 4a0dd81cf1 Some new Spanish translations and improvements to other existing
ones.
2003-08-22 05:03:19 +00:00
Mike McCormack 43629c9b5b Use WideByteToMultiChar not strlenW.
Use HeapAlloc, not malloc.
2003-08-15 03:47:30 +00:00
Patrik Stridvall ba78aac406 Fixed some issues found by winapi_check. 2003-08-08 21:07:23 +00:00
Robert Shearman 4450a61149 - Documentation of the index.dat files.
- Read support for "Temporary Internet Files".
- Limited write support for "Temporary Internet Files" (provided file
  does not need enlarging).
- Delete support (untested on anything other than Temporary Internet
  Files).
2003-08-05 19:21:38 +00:00
Alexandre Julliard a3cba5235d Avoid DSA type conflict between ssl.h and commctrl.h. 2003-08-05 19:21:08 +00:00
David Hammerton 6226f3f26a Added support for http-POST (well, any kind of http request that sends
data in the lpOptional field).
2003-08-05 18:31:02 +00:00
Marcelo Duarte 8b644f86bf - lesser adjustments in cdlg_Pt.rc (better visual)
- localization to the Portuguese of Brazil of wininet resource.
2003-07-24 00:02:06 +00:00
Mike McCormack a1c16d28fa Implement support for proxies with usernames and passwords. 2003-07-22 03:17:52 +00:00
Alexandre Julliard d8c5f2bd4b Use trace() instead of printf(). 2003-07-22 03:16:47 +00:00
Lionel Ulmer a1852bff23 - fix multiple consecutive downloads (by flushing when needed the
command socket)
- detect attempts to download multiple files at the same time
- fix size / date reporting when enumerating files
- fix Y2K problem in NT parsing of files
2003-07-21 22:04:14 +00:00
Lionel Ulmer 2429d51ff2 - use SIZE command to retrieve the file size (as the file size is not
part of the WinNT acknowledgement string)
- free the handle / close the socket on end of download
- fix InternetReadFile in the FTP case
- fix FTP_ReceiveResponse
2003-07-21 19:59:03 +00:00
Mike McCormack 9bca6c6d4f Stubs for InternetCreateUrlA/W and CreateUrlCacheEntryA. 2003-07-19 03:08:05 +00:00
Mike McCormack dce0829913 Only call wininet callbacks if dwContext is non-zero. 2003-07-18 22:59:25 +00:00
Lionel Ulmer 877f323161 - fix spec file for FTPFindFirstFileA/W functions
- implement parsing of NT directory format
2003-07-15 20:51:02 +00:00
Alexandre Julliard ea6863c182 Fixed a couple of buffer overflows. 2003-07-09 22:15:33 +00:00
Francois Gouget 14a5d168e9 Fixed some common spelling errors. 2003-07-02 04:37:26 +00:00
Dmitry Timoshkov a97ed621bb Add inclusion of <sys/time.h> needed for struct timeval declaration.
Protect some optional headers from inclusion.
2003-06-27 04:04:00 +00:00
David Hammerton 852c7ae404 - implemented support for https protocol
- fixes to the http protocol
2003-06-20 23:26:56 +00:00
Francois Gouget 9591836ffb 'sizeof type' is best avoided as it won't always compile (e.g. 'int
main() {return sizeof int;}'). Use 'sizeof(type)' instead.
2003-06-18 19:45:22 +00:00
Mike Hearn 8e6ae023e5 Stub out SetUrlCacheEntryInfoA/W. 2003-06-16 19:40:27 +00:00
Sylvain Petreolle cc02ef89c4 Implemented wininet.InternetGetConnectedStateEx. 2003-06-06 18:17:00 +00:00
Uwe Bonnes 908ef2b290 HTTP_HttpOpenRequestA: Calculate size from the right argument. 2003-05-16 20:12:03 +00:00
Mike McCormack 31c9b82411 Implemented InternetSetOptionExA/W. 2003-05-11 02:59:52 +00:00
Uwe Bonnes 7c578ab349 Some UrlCache stubs. 2003-04-27 20:35:38 +00:00
Dan Wolf b39c35457a Implemented a stub for DetectAutoProxyUrl. 2003-04-21 23:24:46 +00:00
Dominik Strasser 94c02fef1a Partially implement proxy support. 2003-04-14 21:32:36 +00:00
Dmitry Timoshkov 2d55e0484c Fix some problems found while compiling and linking Wine under
Cygwin.
2003-03-31 23:58:27 +00:00
Alberto Massari c36faaaa24 Added InternetSetStatusCallbackA and a stub for
InternetSetStatusCallbackW.
2003-03-28 19:30:55 +00:00
Alexandre Julliard 114a31a2a8 Take advantage of new winebuild syntax to remove redundant function
names in spec files.
2003-03-20 03:53:12 +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
Michael Stefaniuc 745a78f490 Remove some unreachable code. 2003-02-24 20:48:45 +00:00