Commit Graph

283 Commits

Author SHA1 Message Date
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
Andreas Mohr 056d2a4421 "InternetAutoDial" should be "InternetAutodial". 2003-01-28 00:17:15 +00:00
Francois Gouget 9b0b1e078a Remove (POINTER)NULL casts. 2003-01-14 23:43:41 +00:00
Alberto Massari 4ab2eac2cd - Implemented InternetCrackUrlW and re-implemented InternetCrackUrlA
by using the Unicode version.
- InternetCrackUrlW now parses URL having the "about" and "res"
  schemes.
2003-01-02 23:08:22 +00:00
Alexandre Julliard 3121fdac41 Fixed warnings. 2002-12-17 21:03:33 +00:00
Dimitrie O. Paun 737d4be892 Move excpt.h out of include/msvcrt/ as it does not conflict with any
standard Unix header.
2002-12-12 23:34:01 +00:00
Alexandre Julliard dbf8b78acd Added .spec.def files. 2002-12-12 22:04:04 +00:00
Alberto Massari eddf9a02d2 Added stubs for FtpCommand[A|W]. 2002-12-12 02:16:54 +00:00
Alexandre Julliard ba2f2acc86 Fixed the list of accepted types passed to HttpOpenRequestA. 2002-12-06 23:21:35 +00:00
Alberto Massari bc8bd72297 - When sending a request using HttpOpenRequest/HttpSendRequest, send the
User-Agent header; fixed the Accept and the Referer header handling to
   really work.
 - Fixed bug in the HTTP_ProcessHeader: when a second value was supposed to be
   added to an existing one, the buffer was reduced to be 1 char long instead
   of being expanded, due to the precedence rules of the operator '?'.
 - Added support for opening URLs that redirect to a different place.
2002-12-06 23:20:31 +00:00
Alberto Massari adae4350d2 - Moved GetUrlCacheEntryInfoA and CommitUrlCacheEntryA to urlcache.c.
- Added stub implementation of GetUrlCacheEntryInfoExW.
 - Implemented InternetQueryOptionW, InternetCombineUrl[A|W].
 - InternetSetOptionW prints FIXMEs with more informations.
 - INTERNET_SetLastError was crashing if called after the thread
   local storage area had already been deleted (it happens if you
   close Internet Explorer while the download is still in progress).
2002-12-05 19:54:40 +00:00
Alexandre Julliard 14a22702ac Added definitions for a couple of stub functions that we import so
that we don't import stubs directly.
2002-11-27 20:25:12 +00:00
Huw Davies a3f03e1cd2 Add a counter to keep track of the number of outstanding async
requests.  This gets around a problem where a SetEvent could be called
before a previous event had been dealt with.
2002-11-13 19:40:50 +00:00
Alberto Massari b09eef23b3 Added stubs for IsHostInProxyBypassList and GetUrlCacheEntryInfoExA. 2002-11-13 04:08:26 +00:00
Alberto Massari d476a5ad31 Added HttpOpenRequestW, HttpQueryInfoW, HttpSendRequestW. 2002-11-12 02:13:04 +00:00
Patrik Stridvall 9398d9c129 Updated the generated tests. 2002-11-12 01:13:10 +00:00
Alexandre Julliard 1e1313d54c Made the dll entry point default to DllMain and removed most of the
'init' spec file declarations.
2002-11-04 23:53:41 +00:00
Patrik Stridvall c72255c715 Fixed some issues found by winapi_check. 2002-10-29 21:31:26 +00:00
Patrik Stridvall fc832f0fcf Fixed tests to compile with MS C on Windows. 2002-10-29 21:24:35 +00:00
Jaco Greeff aeef9b4f71 - Implementation of [Internet|Ftp]*W functions to extend (almost)
non-existant wide-character support.
- Moved some functions from "stub in wininet.spec" to "FIXME("STUB")"
  to allow for testing of changes.
2002-10-28 18:48:24 +00:00
Alexandre Julliard b34fb35b31 Fixed warnings caused by conversion to -DSTRICT. 2002-10-18 23:48:57 +00:00
Patrik Stridvall 137fa2be84 Fixed test to not fail behind firewalls or without an internet
connection.
2002-10-09 18:12:20 +00:00
Chris Morgan a8b3216670 Added stubs for HttpEndRequestA/W, InternetReadFileExA/W,
SetUrlCacheEntryGroup, CreateUrlCacheGroup, DeleteUrlCacheGroup.
2002-09-27 22:05:23 +00:00
Francois Gouget 5e5f7bbb02 Change the #include order so that these tests compile on Windows. 2002-09-17 00:04:35 +00:00
Patrik Stridvall 1ee88a2bfb Removed trailing white space. 2002-08-28 23:43:43 +00:00
Patrik Stridvall d016f819f1 Added include protection for unistd.h and sys/time.h. 2002-08-17 00:43:16 +00:00
Alexandre Julliard edeee89c3e Create separate makefiles for tests for more flexibility. 2002-08-09 01:22:40 +00:00
Patrik Stridvall 4325554aef Fixed some issues found by winapi_check. 2002-08-09 01:07:29 +00:00
Roderick Colenbrander fec6930127 Simple implementation of InternetAutodial. 2002-07-22 20:34:41 +00:00
Marcus Meissner 3635056577 Protect InternetCloseHandle() against invalid handles. 2002-07-19 03:12:18 +00:00
Gregg Mattinson 7c4cb515b6 Cast void* to char* for pointer arithmetic. 2002-07-03 21:10:43 +00:00
Aric Stewart ff9b9d4ef8 Reworking of http and asyncronous calls to get IE6 to install.
Added a version resource.
Added unit test for http.
2002-06-21 23:59:49 +00:00
Alexandre Julliard 77afd6c47e Made some more spec file entries optional or unnecessary.
Fixed a few DLLName/DLLFileName mismatches.
2002-06-21 19:15:45 +00:00
Alexandre Julliard 7cae558bdc Removed some more trailing whitespace. 2002-06-01 02:55:48 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard 2ab7625934 Removed most imports of ntdll since we no longer import Wine internal
functions from there.
2002-05-17 03:37:12 +00:00
Alexandre Julliard ad53383f9b Added winebuild support for generating a .dbg.c file containing the
debug channels definitions.
Made win32 the default type for spec files.
Ignore C compiler in winebuild so we can simply pass it $(DEFS).
Removed type win32 and debug_channels from spec files.
Fixed winebuild to always generate correct C identifiers (reported by
Vincent Béron).
2002-05-14 20:54:58 +00:00
Alexandre Julliard 67371bcc8d Added -res option to specify resources on winebuild command-line.
Added -exe mode to generate a .spec.c for an exe without having to
provide a .spec.
Removed some no longer needed spec files.
Removed .dll extension in makefiles import specifications.
2002-05-11 23:06:32 +00:00
Alexandre Julliard 32459912dc Moved imports specification from the .spec into the Makefile so that
it can be used on platforms that don't build a .spec.c file.
2002-05-09 00:05:48 +00:00
Patrik Stridvall fc2be7edcc Fixed some issues found by winapi_check. 2002-04-29 18:48:56 +00:00
Alexandre Julliard 5769d1de00 Better support for configure detection of missing types, added check
for ssize_t.
Removed a couple of no longer used portability functions.
Various portability fixes in port.h.
2002-04-26 19:05:15 +00:00
Patrik Stridvall f89d4a8673 Fixed some issues found by winapi_check. 2002-03-23 21:39:05 +00:00
Alexandre Julliard c1bfca04e1 Changed builtin dlls file names to make it clear they are not normal
Unix libraries, and install them in $libdir/wine instead of $libdir to
avoid name conflicts in /usr/lib.
2002-03-20 22:19:06 +00:00
Bernhard Rosenkraenzer e00aca0298 Added InternetOpenURLA implementation. 2002-03-20 00:56:49 +00:00
Andriy Palamarchuk b8805b6bf0 Created dummy implementation of InternetSetOption function. 2002-03-11 01:09:25 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Patrik Stridvall 651a8ba880 Added some defines for compatibility with Windows headers. 2002-02-15 19:12:35 +00:00
Eric Kohl 5320a42a9c Added FindFirstUrlCacheEntry[AW] stubs. 2002-01-29 18:12:28 +00:00
Francois Gouget 8aceb00c52 Fix invalid C code (undefined behavior). 2002-01-21 18:00:05 +00:00
Dmitry Timoshkov ca737fa478 Fix definition of BY_HANDLE_FILE_INFORMATION structure. 2001-12-26 19:50:58 +00:00
Gerard Patel d83dfd0173 Trivial fixes for shlwapi and Internet routines. 2001-12-24 20:24:36 +00:00
Johan Dahlin 664b9bbb67 Add a few extra fields to HTTP_GetStdHeaderIndex. 2001-12-17 20:50:53 +00:00
Jon Griffiths 603f20fc0e Add exclusion defs & remaining funcs, remove internal types &
obj_base.h (sync with win version), fixed a number of function
prototypes.
2001-12-11 00:30:17 +00:00
Guy Albertelli aafec98803 - Define rest of URL_ESCAPE... and other flags.
- Define implemented interfaces for reg.c and url.c.
2001-11-06 22:31:19 +00:00
Francois Gouget 3bb9a36ee0 Spelling, grammar and a bit of comment formatting fixes. 2001-10-22 19:04:32 +00:00
Nikolas Zimmermann 76598823d0 Skip port number before calling gethostbyname.
Fix non-absolute urls.
2001-10-04 18:12:41 +00:00
Andreas Mohr ee0c4f86f2 Rename "SystemTime" to "t" (this is *not* SYSTEMTIME - avoid
confusion).
2001-09-19 20:30:52 +00:00
Patrik Stridvall 3c0211f969 Cleanup code that is strange or difficult to parse. 2001-09-11 00:32:32 +00:00
Marcus Meissner 98343e325c More debug output for InternetGetCookie, added stub for InternetSetCookie. 2001-09-10 23:12:42 +00:00
Francois Gouget 909bcde294 Fix compilation errors on FreeBSD. 2001-09-10 23:07:39 +00:00
Francois Gouget a0f98f13d9 Made independent from winsock.
Include the needed headers directly in internet.h.
2001-08-24 19:13:36 +00:00
Alexandre Julliard 1922c72b8a Removed unnecessary inclusion of heap.h. 2001-07-25 00:43:29 +00:00
Marcus Meissner 22255b3256 Have InternetGetConnectedState always return 'LAN connection'. 2001-07-11 17:24:39 +00:00
Patrik Stridvall 01d5e5b071 Documentation fixes. 2001-07-02 19:59:40 +00:00
Patrik Stridvall 3ca9823941 Documentation ordinal fixes. 2001-06-20 23:03:14 +00:00
Patrik Stridvall 8b216b3d02 Documentation ordinal fixes. 2001-06-19 18:20:47 +00:00
Patrik Stridvall c01c1933bf Fixed some issues found by winapi_check. 2001-06-19 03:36:23 +00:00
Ulrich Czekalla 49dd3fb448 Stub for InternetGetCookieA. 2001-06-14 19:24:50 +00:00
Marcus Meissner 3f1ed52d8b Implemented 64bit file size handling.
Removed several unneeded sys/stat.h includes.
2001-05-14 20:09:37 +00:00
Francois Gouget e76218dd61 Add '\n' at the end of traces. 2001-05-09 17:31:31 +00:00
Chris Morgan b9807b405e Add includes for <time.h>. 2001-02-15 21:24:07 +00:00
Jon Griffiths 4ab1558d8a - Remove <string.h> from winnt.h.
- ntdll: complete crt functions, prevent libc imports, fix sscanf.
2001-01-22 02:17:29 +00:00
Huw D M Davies 0aebee9825 Escape any spaces in lpszObjectName passed to HttpOpenRequest. 2001-01-21 21:09:00 +00:00
Huw D M Davies fc7f6071ff Implement InternetCanonicalizeUrl. 2001-01-06 00:36:43 +00:00
Andreas Mohr f5682a0f8e - implemented passive FTP transfers (PASV, needed for firewalls)
- fixed lstnSocket closing
2000-12-29 05:19:57 +00:00
Andreas Mohr 3f014882f7 InternetCloseHandle didn't return TRUE in all appropriate cases. 2000-12-02 20:09:54 +00:00
Patrik Stridvall 7a4e599780 Fixed some issues found by winapi_check. 2000-12-01 23:53:46 +00:00
Gerald Pfeifer b75b823a99 Add missing #include <netinet/in.h> to get struct in_addr on all platforms. 2000-11-30 19:58:34 +00:00