Граф коммитов

813 Коммитов

Автор SHA1 Сообщение Дата
morse%netscape.com 05534f19dd cleaned up dialogs 1999-08-06 00:29:10 +00:00
valeski%netscape.com d7b68f26ff fixing mac build bustage. brade verified the changes in her mac build. I switched from com ptrs to regular pointers as the com pointer abuse wasn't appreciated on the mac 1999-08-05 16:17:22 +00:00
rhp%netscape.com 9cb016d189 added files: mozilla/netwerk/protocol/http/src/nsHTTPHeaderArray.cpp, mozilla/netwerk/protocol/http/src/nsHTTPAtoms.cpp 1999-08-05 13:23:45 +00:00
rhp%netscape.com 0b6b03c19d added files: mozilla/netwerk/protocol/http/public/nsIHTTPHeader.idl 1999-08-05 13:16:39 +00:00
rpotts%netscape.com 95c48cd505 Fix for build bustage on Linux... 1999-08-05 09:07:29 +00:00
rpotts%netscape.com 73266ec8fb Added code to dump all headers in the OnHeadersAvailable() notification. 1999-08-05 08:29:36 +00:00
rpotts%netscape.com c99f3b9d7a bug #10739. Reworking header APIs... I've removed nsIHeader.h. 1999-08-05 08:28:49 +00:00
rpotts%netscape.com 29909c5e4f bug #10739. Reworking header APIs... I've added 2 new CPP files - nsHTTPAtoms.cpp and nsHTTPHeaderArray.cpp. 1999-08-05 08:27:49 +00:00
rpotts%netscape.com 13343ac97c bug #10739. Reworking header APIs... I've added a new IDL file - nsIHTTPHeader.idl and remove 3 obsolete header files... 1999-08-05 08:26:57 +00:00
mscott%netscape.com fc725eefbf bulletproof some NS_RELEASE's with NS_IF_RELEASE. 1999-08-04 21:23:26 +00:00
valeski%netscape.com 67e54f0298 nsNetModRegEntry.cpp - fixed mem leak. nsStdURL.cpp - fixed port parsing bug 1999-08-04 21:20:48 +00:00
gagan%netscape.com 918586775c Added a new MANIFEST file for nsHTTP stuff. 1999-08-04 16:12:30 +00:00
gagan%netscape.com 8d82379027 POSTing works now. 1999-08-04 15:07:26 +00:00
briano%netscape.com d2cc41f504 Added a newline at the EOF to fix the HP build (and others). 1999-08-04 02:11:03 +00:00
briano%netscape.com 578157544d Yet another case of a new file checked in missing the newline at EOF required by Unix native compilers. 1999-08-04 02:02:15 +00:00
valeski%netscape.com 314e58e690 win32 bustage. nspr wasn't being linked into the stream conv dll 1999-08-04 00:50:21 +00:00
valeski%netscape.com 6a7e60e2c8 memory deallocation macro problem 1999-08-03 23:44:16 +00:00
valeski%netscape.com e455d26778 added stream converter to the builds 1999-08-03 22:04:57 +00:00
warren%netscape.com e7a5fbbf4c Returned error when file not found for OpenInputStream. 1999-08-03 22:00:17 +00:00
briano%netscape.com f1ffca414c Cleaned it up and got rid of the redundant HP-specific SHARED_LIBRARY_LIBS stuff. 1999-08-03 21:40:56 +00:00
dougt%netscape.com 09729829be removing hard coded "http" string and using GetScheme() instead.
cleaning up a memory leak
1999-08-03 02:15:30 +00:00
warren%netscape.com 72c37924c2 Removed hack to export to netwerk/dist (used before landing necko). 1999-08-03 00:38:25 +00:00
valeski%netscape.com d2d7def6f8 pulled file extension search code and started using new mime mapping method which does it for us 1999-08-01 16:44:29 +00:00
valeski%netscape.com 47c693b1e3 factored repeated mime type retrieval implementations into mime mapping service methods 1999-08-01 16:42:25 +00:00
warren%netscape.com 7dadc19069 Took out more f*** nsCOMPtrs 1999-07-31 07:51:35 +00:00
warren%netscape.com aaa89f95e0 Removed nsCOMPtr breakage. 1999-07-31 07:30:49 +00:00
warren%netscape.com 10e252654f Added GetLoadGroup/SetLoadGroup to nsIChannel so that redirects can discover the group. 1999-07-31 06:53:12 +00:00
warren%netscape.com 417a407ee5 Lots of cool logging code. 1999-07-31 06:28:31 +00:00
warren%netscape.com d5370072c9 Added shtml 1999-07-31 06:27:03 +00:00
beard%netscape.com 06b83d45c9 removed special handling of /usr/local/bin/netscape in favor of better solution in resource: URL handler. 1999-07-31 01:04:23 +00:00
gagan%netscape.com c18005e5cd Fix MLK. Freeing up previous versions of mPath/mScheme 1999-07-31 00:15:49 +00:00
rpotts%netscape.com 97d3178840 bug #10424 URL redirects. If the server did *not* send an entity along with the 302, necko would not correctly follow the redirect. 1999-07-30 07:13:05 +00:00
rpotts%netscape.com ace86dbbb6 bug #10424 URL redirects. If the server did *not* send an entity along with the 302, necko would not correctly follow the redirect. 1999-07-30 06:39:24 +00:00
warren%netscape.com 027ffe305b Fixed to not put stuff in netwerk/dist anymore. 1999-07-30 06:10:53 +00:00
warren%netscape.com bba02d9418 Added NS_ERROR_UNKNOWN_PROTOCOL, and changed dns error to NS_ERROR_UNKNOWN_HOST. 1999-07-30 04:17:23 +00:00
valeski%netscape.com c97fba8802 crahser fix 10843 - bad host name was crashing the socket transport in error state 1999-07-30 02:36:52 +00:00
valeski%netscape.com d1c3201cd9 added dns failure check to output 1999-07-30 02:35:12 +00:00
gagan%netscape.com fa92cb338a Fixes the spaces problem also on the Mac! 1999-07-30 01:17:29 +00:00
gagan%netscape.com 80c4f6d45d Fixed the spaces problem. File path is now unescaped before being handed over to file spec. 1999-07-30 00:55:35 +00:00
sdagley%netscape.com c312d13d15 Temp hack for the Mac to address error opening files that aren't properly un-escaped (%20 still in the path instead of spaces for example). We still fail to open the file but now there's an error message to go along with the failure. Note that this will require Macsbug to be installed or a Mac hitting this error will crash. Since we were already telling people that they needed Macsbug installed to run the developmental builds I don't see a problem with this. 1999-07-30 00:37:58 +00:00
briano%netscape.com aad4cd7454 Fix for platforms whose ld's don't have a --whole-archive equivalent. 1999-07-29 22:47:42 +00:00
valeski%netscape.com a234e0853b not in default build - added stream conversion test app 1999-07-29 21:18:35 +00:00
valeski%netscape.com 6edcc3717e not in default builds. fixed mem leaks in stream service 1999-07-29 21:17:33 +00:00
valeski%netscape.com 0a56270c4a not in default builds - stream converter leak updates and we're now poping from the Q from the top (FIFO) 1999-07-29 07:09:46 +00:00
sspitzer%netscape.com f67cc36b49 ignore generated Makefile 1999-07-29 05:00:07 +00:00
bruce%cybersight.com 86093c8161 Build fix for aCC on HP-UX. Approved by leaf. 1999-07-29 04:21:42 +00:00
mscott%netscape.com 994f9f3f0d fix build breakage...include config.mak 1999-07-29 03:17:36 +00:00
mscott%netscape.com 00a5ff0a2c fix build by including config.mak 1999-07-29 03:10:23 +00:00
mscott%netscape.com b1d6ea24c9 fix build breakage...include config.mak 1999-07-29 02:49:02 +00:00
mscott%netscape.com a514d6dfd1 fix build breakage by including config.mak 1999-07-29 02:47:16 +00:00
mscott%netscape.com ef2578dab6 Fix build breakage...include config.mak 1999-07-29 02:35:45 +00:00
briano%netscape.com ea37bbc00a Trivial elimination of some pointless macros as discussed in bug 8568. Approved by leaf@mozilla.org. 1999-07-29 01:18:12 +00:00
rpotts%netscape.com 0749fbf78c Close the socket if an error occurred... 1999-07-28 11:08:18 +00:00
rpotts%netscape.com 3147e21651 Changed OnStopRequest(...) to always file - regardless of the mStatus. This insures that the consumer will *always* receive an OnStopRequest(...) notification. 1999-07-28 11:07:39 +00:00
rpotts%netscape.com 13918aac68 Set the max number of open transports to 8. 1999-07-28 09:26:55 +00:00
rpotts%netscape.com f1cee2dcd9 Obsolete file... 1999-07-28 09:25:51 +00:00
rpotts%netscape.com 042ea64894 Support for a Max number of open transports. 1999-07-28 09:25:31 +00:00
warren%netscape.com 5c61055a2b Fixed mismatched delete problem (purify). 1999-07-28 04:05:10 +00:00
warren%netscape.com e6ca89c1bb Fixed UMR / refcounting problem (purify). 1999-07-28 04:02:07 +00:00
gagan%netscape.com 089b1a8da9 More URL parsing updates for not so common cases. 1999-07-28 02:13:07 +00:00
valeski%netscape.com bab7f5de3b free memory mismatch fix 1999-07-27 23:35:01 +00:00
mcafee%netscape.com 115a63b0a0 Minor comment change. 1999-07-27 23:31:48 +00:00
briano%netscape.com d99daeea9b Cleaned it up and changed the name of libreg.{a,so} to libmozreg.{a,so} to fix the conflict reported in bug 8568. 1999-07-27 23:27:44 +00:00
ducarroz%netscape.com fabb1ab699 Fix shlb name conflict between netwerk:mime and mailnews:mime. Necko only. 1999-07-27 23:17:49 +00:00
gagan%netscape.com 8a17f9d60b Fixed the URL parsing for http://foo:80 1999-07-27 21:28:05 +00:00
valeski%netscape.com 3b47bd5edf fixing mem leak 1999-07-27 21:12:50 +00:00
mcafee%netscape.com 4160545646 Adding testserver/Makefile 1999-07-27 20:33:00 +00:00
mcafee%netscape.com 34582bf9e2 First checkin 1999-07-27 20:32:08 +00:00
valeski%netscape.com f36a7e5dbf memory leak fix on ns_makeabsoluteURI calls 1999-07-27 14:42:19 +00:00
rpotts%netscape.com 516aa68268 Added a temporary new define called USE_POLLABLE_EVENT which windows and unix both define... On the Mac, rather than using NSPR pollable events, a small timeout is set for PR_Poll(...) and new entry processing occurs after a timeout :-( 1999-07-27 09:21:07 +00:00
warren%netscape.com 55e97dfa69 Added assertion for bug I was hitting (spinning). 1999-07-27 08:47:43 +00:00
warren%netscape.com 8539331182 Added missing error check. 1999-07-27 08:47:13 +00:00
warren%netscape.com cf64533de5 Fixed tab-width 1999-07-27 08:46:27 +00:00
warren%netscape.com 5cdf76ac2e Added logging. 1999-07-27 08:45:35 +00:00
warren%netscape.com 27519b34c4 Fixed NewURI to not pass base URI when spec is absolute. 1999-07-27 08:45:20 +00:00
gagan%netscape.com 55879e3f5c -Fixed parsing to handle the mscott cases of-
mailbox://foo:25/user@netscape.com
	pop3://foo:110?check
-Fixed missing directory situations. (thanks Andreas)
-Removed the temporary hack for converting from ToNewCString to nsCRT::free'able
type. This removes the FMM errors on Bruce's log. No more mismatched freeing.


? diffs
Index: nsStdURL.cpp
===================================================================
RCS file: /cvsroot/mozilla/netwerk/base/src/nsStdURL.cpp,v
retrieving revision 1.5
diff -r1.5 nsStdURL.cpp
147,150c147
<     {
< 		//TODO
<         return NS_ERROR_FAILURE; // this should really be NS_ERROR_URL_PARSING
<     }
---
>         return NS_ERROR_MALFORMED_URI;
154c151
<     static const char delimiters[] = "/:@"; //this order is optimized.
---
>     static const char delimiters[] = "/:@?"; //this order is optimized.
157,493c154
<     if (brk)
<     {
<         switch (*brk)
<         {
<         case '/' :
<             // If the URL starts with a slash then everything is a path
<             if (brk == mSpec)
<             {
< 				ExtractString(mSpec, &mPath, 0, len);
<                 return NS_OK;
<             }
<             else // The first part is host, so its host/path
<             {
<                 ExtractString(mSpec, &mHost, 0, (brk - mSpec));
<                 ExtractString(mSpec, &mPath, (brk - mSpec), (len - (brk - mSpec)));
<                 return NS_OK;
<             }
<             break;
<         case ':' :
<             if (*(brk+1) == '/')
<             {
<                 ExtractString(mSpec, &mScheme, 0, (brk - mSpec));
<
<                 if (*(brk+2) == '/') // e.g. http://
<                 // If the first colon is followed by // then its definitely a spec
<                 {
<                     lastbrk = brk+3;
<                     brk = PL_strpbrk(lastbrk, delimiters);
<                     if (brk)
<                     {
<                         switch (*brk)
<                         {
<                             case '/' : // standard case- http://host/path
<                                 ExtractString(mSpec, &mHost,
< 								    (lastbrk - mSpec), (brk - lastbrk));
<                                 ExtractString(mSpec, &mPath,
< 								    (brk - mSpec), (len - (brk - mSpec)));
<                                 return NS_OK;
<                                 break;
<                             case ':' :
<                                 {
<                                     // It could be http://user:pass@host/path
< 								    // or http://host:port/path
<                                     // For the first case, there has to be an
< 								    // @ after this colon, so...
<                                     char* atSign = PL_strchr(brk, '@');
<                                     if (atSign)
<                                     {
<                                         ExtractString(mSpec, &mPreHost,
< 										    (lastbrk - mSpec), (atSign - lastbrk));
<                                         brk = PL_strpbrk(atSign+1, "/:");
<                                         if (brk) // http://user:pass@host:port/path or http://user:pass@host/path
<                                         {
<                                             ExtractString(mSpec, &mHost,
< 											    (atSign+1 - mSpec),
< 											    (brk - (atSign+1)));
<                                             if (*brk == '/')
<                                             {
<                                                 ExtractString(mSpec, &mPath,
< 												    (brk - mSpec),
< 												    len - (brk - mSpec));
<                                                 return NS_OK;
<                                             }
<                                             else // we have a port since (brk == ':')
<                                             {
<                                                 lastbrk = brk+1;
<                                                 brk = PL_strchr(lastbrk, '/');
<                                                 if (brk) // http://user:pass@host:port/path
<                                                 {
<                                                     mPort = ExtractPortFrom(mSpec, (lastbrk - mSpec), (brk-lastbrk));
<                                                     ExtractString(mSpec, &mPath, (brk-mSpec), len - (brk-mSpec));
<                                                     return NS_OK;
<                                                 }
<                                                 else // http://user:pass@host:port
<                                                 {
<                                                     mPort = ExtractPortFrom(mSpec, (lastbrk - mSpec), len - (lastbrk - mSpec));
<                                                     return NS_OK;
<                                                 }
<                                             }
<
<                                         }
<                                         else // its just http://user:pass@host
<                                         {
<                                             ExtractString(mSpec, &mHost,
< 											    (atSign+1 - mSpec),
< 											    len - (atSign+1 - mSpec));
<                                             return NS_OK;
<                                         }
<                                     }
<                                     else // definitely the port option, i.e. http://host:port/path
<                                     {
<                                         ExtractString(mSpec, &mHost,
< 										    (lastbrk-mSpec),
< 										    (brk-lastbrk));
<                                         lastbrk = brk+1;
<                                         brk = PL_strchr(lastbrk, '/');
<                                         if (brk)    // http://host:port/path
<                                         {
<                                             mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
<                                             ExtractString(mSpec, &mPath,
< 											    (brk-mSpec),
< 											    len - (brk-mSpec));
<                                             return NS_OK;
<                                         }
<                                         else        // http://host:port
<                                         {
<                                             mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),len - (lastbrk-mSpec));
<                                             return NS_OK;
<                                         }
<                                     }
<                                 }
<                                 break;
<                             case '@' :
<                                 // http://user@host...
<                                 {
<                                     ExtractString(mSpec, &mPreHost,
< 									    (lastbrk-mSpec), (brk-lastbrk));
<                                     lastbrk = brk+1;
<                                     brk = PL_strpbrk(lastbrk, ":/");
<                                     if (brk)
<                                     {
<                                         ExtractString(mSpec, &mHost,
< 										    (lastbrk-mSpec), (brk - lastbrk));
<                                         if (*brk == ':') // http://user@host:port...
<                                         {
<                                             lastbrk = brk+1;
<                                             brk = PL_strchr(lastbrk, '/');
<                                             if (brk)    // http://user@host:port/path
<                                             {
<                                                 mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
<                                                 ExtractString(mSpec, &mPath,
< 												    (brk-mSpec),
< 												    len - (brk-mSpec));
<                                                 return NS_OK;
<                                             }
<                                             else        // http://user@host:port
<                                             {
<                                                 mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),len - (lastbrk-mSpec));
<                                                 return NS_OK;
<                                             }
<
<                                         }
<                                         else // (*brk == '/') so no port just path i.e. http://user@host/path
<                                         {
<                                             ExtractString(mSpec, &mPath,
< 											    (brk - mSpec),
< 											    len - (brk - mSpec));
<                                             return NS_OK;
<                                         }
<                                     }
<                                     else // its just http://user@host
<                                     {
<                                         ExtractString(mSpec, &mHost,
< 										    (lastbrk+1 - mSpec), len - (lastbrk+1 - mSpec));
<                                         return NS_OK;
<                                     }
<
<                                 }
<                                 break;
<                             default: NS_POSTCONDITION(0, "This just can't be!");
<                                 break;
<                         }
<
<                     }
<                     else // everything else is a host, as in http://host
<                     {
<                         ExtractString(mSpec, &mHost,
< 						    (lastbrk - mSpec),
< 						    len - (lastbrk - mSpec));
<                         return NS_OK;
<                     }
<
<                 }
<                 else // This is a no // path alone case like file:/path, there is never a prehost/host in this case.
<                 {
<                     ExtractString(mSpec, &mPath, (brk-mSpec+1), len - (brk-mSpec+1));
<                     return NS_OK;
<                 }
<             }
<             else // scheme:host or host:port...
<             {
<                 lastbrk = brk+1;
<
<                 if ((*lastbrk >= '0') && (*lastbrk <= '9')) //host:port...
<                 {
<                     ExtractString(mSpec, &mHost, 0, (brk - mSpec));
<                     brk = PL_strpbrk(lastbrk, delimiters);
<                     if (brk)
<                     {
<                         switch (*brk)
<                         {
<                             case '/' : // The path, so its host:port/path
<                                 mPort = ExtractPortFrom(mSpec, lastbrk-mSpec, brk-lastbrk);
<                                 ExtractString(mSpec, &mPath, brk- mSpec, len - (brk-mSpec));
<                                 return NS_OK;
<                                 break;
<                             case ':' :
<                                 return NS_ERROR_FAILURE;//TODO NS_ERROR_URL_PARSING;
<                                 break;
<                             case '@' :
<                                 // This is a special case of user:pass@host... so
<                                 // Cleanout our earliar knowledge of host
<                                 ExtractString(mSpec, &mHost, -1, -1);
<
<                                 ExtractString(mSpec, &mPreHost, 0, (brk-mSpec));
<                                 lastbrk = brk+1;
<                                 brk = PL_strpbrk(lastbrk, ":/");
<                                 if (brk)
<                                 {
<                                     ExtractString(mSpec, &mHost,
< 									    (lastbrk-mSpec), (brk-lastbrk));
<                                     if (*brk == ':') // user:pass@host:port...
<                                     {
<                                         lastbrk = brk+1;
<                                         brk = PL_strchr(lastbrk, '/');
<                                         if (brk)    // user:pass@host:port/path
<                                         {
<                                             mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
<                                             ExtractString(mSpec, &mPath,
< 											    (brk-mSpec), len - (brk-mSpec));
<                                             return NS_OK;
<                                         }
<                                         else        // user:pass@host:port
<                                         {
<                                             mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),len - (lastbrk-mSpec));
<                                             return NS_OK;
<                                         }
<                                     }
<                                     else // (*brk == '/') so user:pass@host/path
<                                     {
<                                         ExtractString(mSpec, &mPath, (brk - mSpec), len - (brk - mSpec));
<                                         return NS_OK;
<                                     }
<                                 }
<                                 else // its user:pass@host so everthing else is just the host
<                                 {
<                                     ExtractString(mSpec, &mHost,
< 									    (lastbrk-mSpec), len - (lastbrk-mSpec));
<                                     return NS_OK;
<                                 }
<
<                                 break;
<                             default: NS_POSTCONDITION(0, "This just can't be!");
<                                 break;
<                         }
<                     }
<                     else // Everything else is just the port
<                     {
<                         mPort = ExtractPortFrom(mSpec, lastbrk-mSpec, len - (lastbrk-mSpec));
<                         return NS_OK;
<                     }
<                 }
<                 else // scheme:host...
<                 {
<                     ExtractString(mSpec, &mScheme, 0, (brk - mSpec));
<                     brk = PL_strpbrk(lastbrk, delimiters);
<                     if (brk)
<                     {
<                         switch (*brk)
<                         {
<                             case '/' : // The path, so its scheme:host/path
<                                 ExtractString(mSpec, &mHost, (lastbrk-mSpec), (brk-lastbrk));
<                                 ExtractString(mSpec, &mPath, (brk - mSpec), len - (brk - mSpec));
<                                 return NS_OK;
<                                 break;
<                             case '@' : // scheme:user@host...
<                                 ExtractString(mSpec, &mPreHost, (lastbrk-mSpec), (brk-lastbrk));
<                                 // TODO more here...
<                                 break;
<                             case ':' : // scheme:user:pass@host... or scheme:host:port...
<                                 /* TODO
<                                 if you find @ in the remaining string then // scheme:user:pass@host...
<                                 {
<
<
<                                 }
<                                 else // scheme:host:port
<                                 {
<                                     ExtractString(mSpec, &mHost, (lastbrk-mSpec), (brk-lastbrk));
<
<                                 }
<                                 */
<                                 break;
<                             default: NS_POSTCONDITION(0, "This just can't be!");
<                                 break;
<                         }
<                     }
<                     else // its just scheme:host
<                     {
<                         ExtractString(mSpec, &mHost, (lastbrk-mSpec), len - (lastbrk-mSpec));
<                         return NS_OK;
<                     }
<                 }
<             }
<             break;
<         case '@' :
<             //Everything before the @ is the prehost stuff
<             ExtractString(mSpec, &mPreHost, 0, brk-mSpec);
<             lastbrk = brk+1;
<             brk = PL_strpbrk(lastbrk, ":/");
<             if (brk)
<             {
<                 ExtractString(mSpec, &mHost, (lastbrk-mSpec), (brk-lastbrk));
<                 if (*brk == ':') // user@host:port...
<                 {
<                     lastbrk = brk+1;
<                     brk = PL_strchr(lastbrk, '/');
<                     if (brk)    // user@host:port/path
<                     {
<                         mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
<                         ExtractString(mSpec, &mPath, (brk-mSpec), len - (brk-mSpec));
<                         return NS_OK;
<                     }
<                     else        // user@host:port
<                     {
<                         mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),len - (lastbrk-mSpec));
<                         return NS_OK;
<                     }
<                 }
<                 else // (*brk == '/') so user@host/path
<                 {
<                     ExtractString(mSpec, &mPath, (brk - mSpec), len - (brk - mSpec));
<                     return NS_OK;
<                 }
<             }
<             else // its user@host so everything else is just the host
<             {
<                 ExtractString(mSpec, &mHost, (lastbrk-mSpec), (len - (lastbrk-mSpec)));
<                 return NS_OK;
<             }
<             break;
<         default:
<             NS_ASSERTION(0, "This just can't be!");
<             break;
<         }
<     }
<     else // everything is a host
---
>     if (!brk) // everything is a host
495a157
> 		return NS_OK;
496a159,501
> 	switch (*brk)
> 	{
> 	case '/' :
> 	case '?' :
> 		// If the URL starts with a slash then everything is a path
> 		if (brk == mSpec)
> 		{
> 			ExtractString(mSpec, &mPath, 0, len);
> 			return NS_OK;
> 		}
> 		else // The first part is host, so its host/path
> 		{
> 			ExtractString(mSpec, &mHost, 0, (brk - mSpec));
> 			ExtractString(mSpec, &mPath, (brk - mSpec), (len - (brk - mSpec)));
> 			return NS_OK;
> 		}
> 		break;
> 	case ':' :
> 		if (*(brk+1) == '/')
> 		{
> 			ExtractString(mSpec, &mScheme, 0, (brk - mSpec));
>
> 			if (*(brk+2) == '/') // e.g. http://
> 			// If the first colon is followed by // then its definitely a spec
> 			{
> 				lastbrk = brk+3;
> 				brk = PL_strpbrk(lastbrk, delimiters);
> 				if (!brk) // everything else is a host, as in http://host
> 				{
> 					ExtractString(mSpec, &mHost,
> 						(lastbrk - mSpec),
> 						len - (lastbrk - mSpec));
> 					return NS_OK;
> 				}
> 				switch (*brk)
> 				{
> 					case '/' : // standard case- http://host/path
> 					case '?' : // missing path cases
> 						ExtractString(mSpec, &mHost,
> 							(lastbrk - mSpec), (brk - lastbrk));
> 						ExtractString(mSpec, &mPath,
> 							(brk - mSpec), (len - (brk - mSpec)));
> 						return NS_OK;
> 						break;
> 					case ':' : // http://user:... or http://host:...
> 					{
> // It could be http://user:pass@host/path
> // or http://host:port/path we find that by checking further...
> char* nextbrk = PL_strpbrk(brk+1, delimiters);
> if (!nextbrk) // http://host:port
> {
> 	ExtractString(mSpec, &mHost,
> 		(lastbrk-mSpec), (brk-lastbrk));
> 	mPort = ExtractPortFrom(mSpec,
> 		(lastbrk-mSpec), len - (lastbrk-mSpec));
> 	return NS_OK;
> }
> switch (*nextbrk)
> {
> 	case '/': // http://host:port/path
> 	case '?': // http://host:port?path
> 		ExtractString(mSpec, &mHost,
> 			(lastbrk-mSpec), (brk-lastbrk));
> 		mPort = ExtractPortFrom(mSpec, (brk-mSpec+1),(nextbrk-brk-1));
> 		ExtractString(mSpec, &mPath,
> 				(nextbrk-mSpec), len - (nextbrk-mSpec));
> 		return NS_OK;
> 		break;
> 	case '@': // http://user:pass@host...
> 		ExtractString(mSpec, &mPreHost,
> 			(lastbrk - mSpec), (nextbrk - lastbrk));
> 		brk = PL_strpbrk(nextbrk+1, delimiters);
> 		if (!brk) // its just http://user:pass@host
> 		{
> 			ExtractString(mSpec, &mHost,
> 				(nextbrk+1 - mSpec),
> 				len - (nextbrk+1 - mSpec));
> 			return NS_OK;
> 		}
>
> 		ExtractString(mSpec, &mHost,
> 			(nextbrk+1 - mSpec), brk - (nextbrk+1));
>
> 		switch (*brk)
> 		{
> 		case '/': // http://user:pass@host/path
> 		case '?':
> 			ExtractString(mSpec, &mPath,
> 				(nextbrk+1 - mSpec),
> 				len - (nextbrk+1 - mSpec));
> 			return NS_OK;
> 			break;
> 		case ':': // http://user:pass@host:port...
> 			lastbrk = brk;
> 			brk = PL_strpbrk(lastbrk+1, "/?");
> 			if (brk)    // http://user:pass@host:port/path
> 			{
> 				mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
> 				ExtractString(mSpec, &mPath, (brk-mSpec), len - (brk-mSpec));
> 				return NS_OK;
> 			}
> 			else        // http://user:pass@host:port
> 			{
> 				mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),
> 					len - (lastbrk-mSpec));
> 				return NS_OK;
> 			}
> 			break;
> 		default: NS_POSTCONDITION(0, "This just can't be!");
> 			break;
> 		}
> 		break;
> 	case ':': // three colons!
> 		return NS_ERROR_MALFORMED_URI;
> 		break;
> 	default: NS_POSTCONDITION(0, "This just can't be!");
> 		break;
> }
> 						}
> 						break;
> 					case '@' : // http://user@host...
> 						{
> 							ExtractString(mSpec, &mPreHost,
> 								(lastbrk-mSpec), (brk-lastbrk));
> 							lastbrk = brk+1;
> 							brk = PL_strpbrk(lastbrk, delimiters);
> 							if (!brk) // its just http://user@host
> 							{
> 								ExtractString(mSpec, &mHost,
> 									(lastbrk+1 - mSpec),
> 									len - (lastbrk+1 - mSpec));
> 								return NS_OK;
> 							}
> 							ExtractString(mSpec, &mHost,
> 								(lastbrk-mSpec), (brk - lastbrk));
> 							switch (*brk)
> 							{
> 								case ':' : // http://user@host:port...
> 									lastbrk = brk+1;
> 									brk = PL_strpbrk(lastbrk, "/?");
> 									if (brk)    // http://user@host:port/path
> 									{
> 										mPort = ExtractPortFrom(mSpec,
> 											(lastbrk-mSpec),(brk-lastbrk));
> 										ExtractString(mSpec, &mPath,
> 											(brk-mSpec),
> 											len - (brk-mSpec));
> 										return NS_OK;
> 									}
> 									else        // http://user@host:port
> 									{
> 										mPort = ExtractPortFrom(mSpec,
> 											(lastbrk-mSpec),
> 											len - (lastbrk-mSpec));
> 										return NS_OK;
> 									}
> 									break;
> 								case '/' : // http://user@host/path
> 								case '?' : // http://user@host?path
> 									ExtractString(mSpec, &mPath,
> 										(brk - mSpec),
> 										len - (brk - mSpec));
> 									return NS_OK;
> 									break;
> 								case '@' :
> 									return NS_ERROR_MALFORMED_URI;
> 								default : NS_POSTCONDITION(0,
> 									"This just can't be!");
> 									break;
> 							}
> 						}
> 						break;
> 					default: NS_POSTCONDITION(0, "This just can't be!");
> 						break;
> 				}
> 			}
> 			else // This is a no // path alone case like file:/path,
> 				// there is never a prehost/host in this case.
> 			{
> 				ExtractString(mSpec, &mPath, (brk-mSpec+1),
> 					len - (brk-mSpec+1));
> 				return NS_OK;
> 			}
> 		}
> 		else // scheme:host or host:port...
> 		{
> 			lastbrk = brk+1;
>
> 			if ((*lastbrk >= '0') && (*lastbrk <= '9')) //host:port...
> 			{
> 				ExtractString(mSpec, &mHost, 0, (brk - mSpec));
> 				brk = PL_strpbrk(lastbrk, delimiters);
> 				if (!brk) // Everything else is just the port
> 				{
> 					mPort = ExtractPortFrom(mSpec, lastbrk-mSpec,
> 						len - (lastbrk-mSpec));
> 					return NS_OK;
> 				}
> 				switch (*brk)
> 				{
> 					case '/' : // The path, so its host:port/path
> 					case '?' : // The path, so its host:port?path
> 						mPort = ExtractPortFrom(mSpec, lastbrk-mSpec,
> 							brk-lastbrk);
> 						ExtractString(mSpec, &mPath, brk- mSpec,
> 							len - (brk-mSpec));
> 						return NS_OK;
> 						break;
> 					case ':' :
> 						return NS_ERROR_MALFORMED_URI;
> 						break;
> 					case '@' :
> 						// This is a special case of user:pass@host... so
> 						// Cleanout our earliar knowledge of host
> 						ExtractString(mSpec, &mHost, -1, -1);
>
> 						ExtractString(mSpec, &mPreHost, 0, (brk-mSpec));
> 						lastbrk = brk+1;
> 						brk = PL_strpbrk(lastbrk, ":/");
> 					// its user:pass@host so everthing else is just the host
> 						if (!brk)
> 						{
> 							ExtractString(mSpec, &mHost,
> 								(lastbrk-mSpec), len - (lastbrk-mSpec));
> 							return NS_OK;
> 						}
> 						ExtractString(mSpec, &mHost,
> 							(lastbrk-mSpec), (brk-lastbrk));
> 						if (*brk == ':') // user:pass@host:port...
> 						{
> 							lastbrk = brk+1;
> 							brk = PL_strpbrk(lastbrk, "/?");
> 							if (brk)    // user:pass@host:port/path
> 							{
> 								mPort = ExtractPortFrom(mSpec,
> 									(lastbrk-mSpec),(brk-lastbrk));
> 								ExtractString(mSpec, &mPath,
> 									(brk-mSpec), len - (brk-mSpec));
> 								return NS_OK;
> 							}
> 							else        // user:pass@host:port
> 							{
> 								mPort = ExtractPortFrom(mSpec,
> 									(lastbrk-mSpec),len - (lastbrk-mSpec));
> 								return NS_OK;
> 							}
> 						}
> 						else // (*brk == '/') so user:pass@host/path
> 						{
> 							ExtractString(mSpec, &mPath, (brk - mSpec),
> 								len - (brk - mSpec));
> 							return NS_OK;
> 						}
> 						break;
> 					default: NS_POSTCONDITION(0, "This just can't be!");
> 						break;
> 				}
> 			}
> 			else // scheme:host...
> 			{
> 				ExtractString(mSpec, &mScheme, 0, (brk - mSpec));
> 				brk = PL_strpbrk(lastbrk, delimiters);
> 				if (!brk) // its just scheme:host
> 				{
> 					ExtractString(mSpec, &mHost, (lastbrk-mSpec),
> 						len - (lastbrk-mSpec));
> 					return NS_OK;
> 				}
> 				switch (*brk)
> 				{
> 					case '/' : // The path, so its scheme:host/path
> 					case '?' : // The path, so its scheme:host?path
> 						ExtractString(mSpec, &mHost, (lastbrk-mSpec),
> 							(brk-lastbrk));
> 						ExtractString(mSpec, &mPath, (brk - mSpec),
> 							len - (brk - mSpec));
> 						return NS_OK;
> 						break;
> 					case '@' : // scheme:user@host...
> 						ExtractString(mSpec, &mPreHost, (lastbrk-mSpec),
> 							(brk-lastbrk));
> 						// TODO more here...
> 						break;
> 					case ':' : // scheme:user:pass@host...or scheme:host:port...
> 						/* TODO
> 						if you find @ in the remaining string
> 						then // scheme:user:pass@host...
> 						{
>
>
> 						}
> 						else // scheme:host:port
> 						{
> 							ExtractString(mSpec, &mHost, (lastbrk-mSpec),
> 								(brk-lastbrk));
> 						}
> 						*/
> 						break;
> 					default: NS_POSTCONDITION(0, "This just can't be!");
> 						break;
> 				}
> 			}
> 		}
> 		break;
> 	case '@' :
> 		//Everything before the @ is the prehost stuff
> 		ExtractString(mSpec, &mPreHost, 0, brk-mSpec);
> 		lastbrk = brk+1;
> 		brk = PL_strpbrk(lastbrk, ":/");
> 		if (!brk) // its user@host so everything else is just the host
> 		{
> 			ExtractString(mSpec, &mHost, (lastbrk-mSpec),
> 				(len - (lastbrk-mSpec)));
> 			return NS_OK;
> 		}
> 		ExtractString(mSpec, &mHost, (lastbrk-mSpec), (brk-lastbrk));
> 		if (*brk == ':') // user@host:port...
> 		{
> 			lastbrk = brk+1;
> 			brk = PL_strpbrk(lastbrk, "/?");
> 			if (brk)    // user@host:port/path
> 			{
> 				mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
> 				ExtractString(mSpec, &mPath, (brk-mSpec), len - (brk-mSpec));
> 				return NS_OK;
> 			}
> 			else        // user@host:port
> 			{
> 				mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),
> 					len - (lastbrk-mSpec));
> 				return NS_OK;
> 			}
> 		}
> 		else // (*brk == '/') so user@host/path
> 		{
> 			ExtractString(mSpec, &mPath, (brk - mSpec), len - (brk - mSpec));
> 			return NS_OK;
> 		}
> 		break;
> 	default:
> 		NS_ASSERTION(0, "This just can't be!");
> 		break;
> 	}
578,580c583
<     {
<         return NS_ERROR_OUT_OF_MEMORY;
<     }
---
>         return returnValue; // ERROR!
620,626c623
< 	// TODO- Fix this. Hack to create tmp only becuz nsString can't
< 	// give us a PR_Malloc (nsCRT/nsAllocator) string
< 	char* tmp = dir.ToNewCString();
< 	if (!tmp)
< 		return NS_ERROR_OUT_OF_MEMORY;
<     mDirectory = nsCRT::strdup(tmp);
< 	delete[] tmp;
---
>     mDirectory = dir.ToNewCString();
677d673
<     nsresult status = NS_ERROR_FAILURE;
782,783c778,782
<     NS_ASSERTION(file, "This can't be! ParsePath called without a /Path");
<     if (!file) return NS_OK;
---
>     if (!file)
> 	{
> 		// Treat the whole mPath as file -- this could still have ?, # etc.
> 		file = mPath;
> 	}
788a788,790
> 	else
> 		DupString(&mDirectory, "/");
>
795,819c797
<     if (brk)
<     {
<         ExtractString(file, &mFileName, 1 /* skip the leading / */, (brk-file-1));
<         //Keep pulling out other pieces...
<         while (brk)
<         {
<             char* lastbrk = brk;
<             brk = PL_strpbrk(lastbrk+1, delimiters);
<             switch (*lastbrk)
<             {
<                 case ';' : /*
<                            ExtractString(lastbrk, &mParam, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
<                            */
<                     break;
<                 case '?' : ExtractString(lastbrk, &mQuery, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
<                     break;
<                 case '#' : ExtractString(lastbrk, &mRef, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
<                     break;
<                 default:
<                     NS_ASSERTION(0, "This just can't be!");
<                     break;
<             }
<         }
<     }
<     else // Everything in the file is just the filename
---
>     if (!brk) // Everything in the file is just the filename
822a801,821
> 	ExtractString(file, &mFileName, 1 /* skip the leading / */, (brk-file-1));
> 	//Keep pulling out other pieces...
> 	while (brk)
> 	{
> 		char* lastbrk = brk;
> 		brk = PL_strpbrk(lastbrk+1, delimiters);
> 		switch (*lastbrk)
> 		{
> 			case ';' : /*
> 					   ExtractString(lastbrk, &mParam, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
> 					   */
> 				break;
> 			case '?' : ExtractString(lastbrk, &mQuery, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
> 				break;
> 			case '#' : ExtractString(lastbrk, &mRef, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
> 				break;
> 			default:
> 				NS_ASSERTION(0, "This just can't be!");
> 				break;
> 		}
> 	}
912,915c911
< 	// TODO fix when nsString changes
< 	char* tempDirFile = temp.ToNewCString();
< 	*o_DirFile = nsCRT::strdup(tempDirFile);
< 	delete[] tempDirFile;
---
> 	*o_DirFile = temp.ToNewCString();
1999-07-27 07:40:38 +00:00
valeski%netscape.com 7681f64a2c this dir is not in any builds. removed the unwanted AsyncConvertSTream method. now we support one sync conversion method, and one async 1999-07-27 03:25:57 +00:00
hoa.nguyen%intel.com d3a6f0a536 Removed backed out change which added dns/daemon to build. Need to test on Windows and Mac build first. 1999-07-27 02:56:36 +00:00
hoa.nguyen%intel.com feecea82e0 Added dns/daemon to makefiles 1999-07-27 02:44:16 +00:00
gordon%netscape.com 0149341721 Find proper resource directory for Mac, rather than /usr/local/netscape/bin. 1999-07-27 01:11:03 +00:00
gagan%netscape.com 00df4e6ed7 Necko only. Added a missing trailing newline. 1999-07-26 22:44:22 +00:00
valeski%netscape.com dceba2964a stream converter interface changes. the sync and 2nd async methods are now implemented by the service too 1999-07-26 22:12:05 +00:00
dougt%netscape.com 69178099d5 Fix for bug 10177 and 10041. 1999-07-26 22:09:42 +00:00
hoa.nguyen%intel.com 84794ad80b Standalone daemon process to handle async DNS lookup on Unix/Linux. 1999-07-26 21:25:00 +00:00
hoa.nguyen%intel.com 11fa5d73e4 Makefile for DNS daemon process. 1999-07-26 21:23:24 +00:00
beard%netscape.com eb2d0924b9 Makes resource URLs work, by special-casing "/usr/local/netscape/bin" on the Mac. This should probably be moved elsewhere, but works for now. 1999-07-25 18:39:41 +00:00
beard%netscape.com baa19508a0 First Checked In. 1999-07-25 18:35:34 +00:00
valeski%netscape.com be23c919f4 necko - we now set the user agent by default 1999-07-25 13:54:47 +00:00
sdagley%netscape.com 06b979de5b Removed mime component from main newterk and put it into its own project. 1999-07-25 01:39:44 +00:00
sdagley%netscape.com c975303ed6 First Checked In. 1999-07-25 01:37:42 +00:00
ducarroz%netscape.com b8911a5e87 First Checked In. 1999-07-24 20:50:35 +00:00
warren%netscape.com d8a007302a Removed about:blank joke. 1999-07-23 20:11:02 +00:00
gordon%netscape.com 670c22014f File Removed. 1999-07-23 19:39:04 +00:00
valeski%netscape.com e8723c09e8 necko only - added temporary user agent string creation code 1999-07-23 16:35:53 +00:00
valeski%netscape.com 1c6f1bb68a necko only - fixed some miss-matched memory deallocations, and pulled an extraneous addref/release combo 1999-07-23 16:35:13 +00:00
gordon%netscape.com e599ec2ac5 Mac-NECKO-only checkin. Added nsIStreamConverter2.idl to netwerkIDL.mcp project, as per Scott MacGregor's request. 1999-07-23 07:09:36 +00:00
mscott%netscape.com 893bc1d040 necko only:
Added the "hack" which can be turned off by undefining STREAM_CONVERTER_HACK. Basically, if we are reading in an rfc822
file we insert a stream converter between the file channel and the consumer of the file channel. the file channel
then talks to the converter which talks to the end consumer.

Made the file channel honor the number of bytes read parameter which gets passed in on AsyncRead. We now cancel the read
after we've read in the desired # of bytes.

fixed two file parsing bugs: one in Init and one in GetContenttype
1999-07-23 06:16:37 +00:00
pinkerton%netscape.com ce409780b5 fix access paths to find timer in widget instead of gfx. all targets updated. 1999-07-23 06:06:19 +00:00
mscott%netscape.com d55d3c558c export nsIStreamConverter2.idl 1999-07-23 05:50:32 +00:00
mscott%netscape.com 5fdc858a17 generate header file for nsIStreamConverter2.idl 1999-07-23 05:49:07 +00:00
mscott%netscape.com c3e2512a51 this used to be mailnews\mime\public\nsIStreamConverter.idl but it needs to be moved out of mailnews as it is generic
and not specific to mailnews. The final resting place for this file will be netwerk\streamcnvts\public but that
directory isn't buildable yet so I'm moving it here for safe keeping. The name (the 2 part) is lame but it conflicted
with a file Jud is addding to streamconv (nsIStreamConverter). Don't worry..eventually the two interfaces
are going to be merged into one.
1999-07-23 05:48:27 +00:00
gordon%netscape.com af26c5fe43 Added nsTimer.cpp and nsRepeater.cpp for the purposes of landing NECKO. This most closely approximates the functionality of the old NetLib, so it required the least amount of changes. We can figure out the ultimate resting place for these files after NECKO lands. 1999-07-23 05:24:28 +00:00
gordon%netscape.com 264c3db8b2 Export functions on Mac (only) because it builds Netwerk Util as a shared library, not as static as on the other platforms. 1999-07-23 01:50:58 +00:00
gordon%netscape.com dde8bcdab1 Added nsHTTPEncodeStream.cpp. 1999-07-23 01:03:15 +00:00
gordon%netscape.com 4068659917 Added nsIHTTPProtocolHandler.idl. 1999-07-23 00:56:23 +00:00
gordon%netscape.com 804de3fea0 Removed nsStandardUrl.cpp and added nsStdURL.cpp. Changed prefix header of debug target to actually use debug header file (Thanks Scott). 1999-07-23 00:43:07 +00:00
valeski%netscape.com 604537e15a changed stream converter progid root and provided more in depth usage notes 1999-07-22 23:59:32 +00:00
andreas.otte%primus-online.de 7f82235d9b adding the new streamconv makefiles 1999-07-22 21:39:04 +00:00
andreas.otte%primus-online.de c90f3a93d8 some ignorance 1999-07-22 21:38:22 +00:00
valeski%netscape.com 4a9296ad34 stream converter graph construction now happens when a direct path is not accessible, and is built up by enumerating stream converter subkeys from the registry 1999-07-22 21:24:58 +00:00
gagan%netscape.com 8bb993616b Replaced nsStandardUrl with nsStdURL. 1999-07-22 21:19:15 +00:00
gagan%netscape.com 4a65c95965 Changes for the standard URL parsing. Added SetRelativePath. Cleaned up the deletions (all thru nsCRT now) Added functionality for Query and Ref portions of the Path. Added DirFile function to nsIURL to allow just Directory and the Filename. Misc. cleanups as well. 1999-07-22 21:14:51 +00:00
mscott%netscape.com 52529d021d Necko only: Change the library name to mimetype instead of mime. we were overwriting a mailnews library which had the same name. 1999-07-22 20:09:22 +00:00
mscott%netscape.com 0bf8c92993 Necko only: change the name of the mime type dll to be mimetype.dll instead of mime.dll. mime.dll was over-writing
the mailnews mime.dll.
1999-07-22 20:05:33 +00:00
valeski%netscape.com c3fa8f4c3a adding stream converter code 1999-07-22 19:11:33 +00:00
tbogard%aol.net 87c2cb7cb9 Fixing Necko build bustage. 1999-07-22 03:33:49 +00:00
tbogard%aol.net f78667de08 Looks like I missed a header for the nsCStringKey -> nsStringKey change. 1999-07-22 02:47:39 +00:00
tbogard%aol.net eb0dd2815e Changed nsCStringKey to nsStringKey. This new key now has the ability to hash on PRUnichar* strings as well as char* strings. 1999-07-22 02:11:04 +00:00
gagan%netscape.com 20c0996ab2 Replaced resource:// with resource:/ to be more compliant with our parsing rules. 1999-07-21 11:48:56 +00:00
warren%netscape.com 78e5f4fcb6 Added encode flags. 1999-07-21 07:05:12 +00:00
warren%netscape.com ee768165e8 Working on NS_NewPostDataStream -- doesn't work yet though. 1999-07-21 05:53:25 +00:00
mscott%netscape.com 89620d3de1 we were always returning text/html as the content type for any page using the http channel!!!! this was preventing us from
properly loading rdf files from the web (particularly the tinderbox page for the flash panel). Only use the default
dummy type if we weren't able to extract a legitimate content type from the header.
1999-07-20 22:44:24 +00:00
valeski%netscape.com 829cfe29f6 added notification progids 1999-07-20 21:54:40 +00:00
valeski%netscape.com 23398403cb using more appropriate notification progids 1999-07-20 20:44:02 +00:00
mscott%netscape.com 871ba705fe Necko only!!! Fix build breakage for clobber builds by removing reference to nsIHTTPHandler.h
which is no longer being exported.
1999-07-20 18:46:34 +00:00
warren%netscape.com b42c5297ac Fixed query/ref problem. 1999-07-20 08:46:35 +00:00
warren%netscape.com 7bcb94a320 Changed around load group insertion/removal to happen on mozilla thread. 1999-07-20 08:46:33 +00:00
warren%netscape.com a0781936c1 Started adding encode stream for necko posting. 1999-07-20 08:45:41 +00:00
warren%netscape.com 43c61c6a31 Added BeOS fix. 1999-07-19 18:42:44 +00:00
rickg%netscape.com 844a7e45ef switch to faster string search API 1999-07-19 03:29:56 +00:00
mcafee%netscape.com 7c22a8aaa2 Removing unnecessary includes of xp_core.h and xp_str.h to help BeOS compile. Patch provided by warren. 1999-07-17 06:50:57 +00:00
mcafee%netscape.com 057b904582 More error checking for nsFTPChannel::Init() 1999-07-17 03:02:22 +00:00
mscott%netscape.com ce79c62b51 bulletproofing some code. it's possible for the loadgroup to be null. 1999-07-17 02:06:47 +00:00
warren%netscape.com f64274c766 Backed out Gagan's nsStdURL changes. 1999-07-17 01:32:48 +00:00
mscott%netscape.com f1935c2a87 Add support for honoring the offset parameter on AsynchRead by seeking to the offset position in the file before
reading.
1999-07-16 23:29:12 +00:00
jdunn%netscape.com 4928643ce2 include nsILoadGroup.h before it is referenced by nsCOMPtr 1999-07-16 22:20:24 +00:00
jdunn%netscape.com e2cc3dc8aa declare nsINetModRegEntry public (it is assumed private if not specified) 1999-07-16 22:19:38 +00:00
valeski%netscape.com 996ae44af0 mime map api change 1999-07-16 22:00:11 +00:00
valeski%netscape.com b26d6ed824 changed mime map service to use nsHashtabel 1999-07-16 21:56:54 +00:00
warren%netscape.com c5684bf4d7 Big changes for Necko load groups. Things are much happier now. Now images work (on pages, but not in chrome). 1999-07-16 11:14:36 +00:00
rpotts%netscape.com 9bf7d77b24 Very simple implementation of 301/302 HTTP redirects... 1999-07-16 09:54:20 +00:00
gagan%netscape.com 5e043ea485 Removed obsolete files. 1999-07-16 02:33:44 +00:00
gagan%netscape.com 74b2f0b0b2 Switching to nsStdURL from nsStandardUrl. 1999-07-16 02:32:47 +00:00
gagan%netscape.com a48324fabd Included the test for resource: protocol that was breaking apprunner. 1999-07-16 02:31:07 +00:00
gagan%netscape.com e6e88da3d6 Changed status from nsresult to PRUint32. 1999-07-16 00:40:06 +00:00
gagan%netscape.com dd34216562 Changed const char* to char* for GetStatus calls. 1999-07-16 00:32:50 +00:00
gagan%netscape.com d29aad6b3b Added HTTP Status to printout. 1999-07-15 22:57:50 +00:00
gagan%netscape.com e2e849d721 Fixed some broken status headers. Added Host: header by default. This was otherwise breaking (as in unsuccessful HTTP) for some sites that use virtual hosts and depend upon the Host: header. 1999-07-15 22:57:04 +00:00
mscott%netscape.com 26c2ebcce3 Necko only! not part of the build. back out gordon's change to fix the windows build until he has a chance to take a
look at it.
1999-07-15 17:57:22 +00:00
warren%netscape.com 8829be55c0 Removed. Replaced with file: protocol stuff. 1999-07-15 17:45:08 +00:00
gordon%netscape.com 13f55e60c0 Necko-only change. Changed fragment name from NETLIB_DLL to NETWORK_DLL, because the NetwerkUtil library uses NETLIB_DLL for compatibility. 1999-07-15 01:23:38 +00:00
gordon%netscape.com aa651c605f Necko only change. Updated preferences for NetworkModular[Debug].shlb doppleganger targets. 1999-07-15 01:14:50 +00:00
gordon%netscape.com 8ddd7faa0c Export NS_NewUnicharStreamLoader since this file is part of a shared library for now. 1999-07-14 21:21:37 +00:00
gordon%netscape.com 2fc749e868 Export functions since this is built as a shared library for now. 1999-07-14 21:20:38 +00:00
mscott%netscape.com d69b9675bc Register "eml" file extension as text/message (rfc822) 1999-07-14 04:08:41 +00:00
valeski%netscape.com ffbce16be3 adding warning comment 1999-07-13 23:39:31 +00:00
valeski%netscape.com 2abdba01c4 added image mime types to hardcoded area 1999-07-13 23:37:11 +00:00
rpotts%netscape.com ad6fedced2 random changes... NECOK only 1999-07-13 20:43:49 +00:00
rpotts%netscape.com 5729a65b6e Added support for GetQuery(). NECKO only. 1999-07-13 20:43:22 +00:00
rpotts%netscape.com 162a4eeb6a Added the query string (if any) to the GET request... NECKO only. 1999-07-13 20:42:36 +00:00
gagan%netscape.com f2399d4e5b Fixes for the libcookie.so problem (thanks to Andreas for the patch) and then some additional fixes for warnings and such. 1999-07-13 02:37:08 +00:00
waterson%netscape.com 2b04d1a190 Fix necko build bustage. NECKO BUILD ONLY. 1999-07-13 00:15:56 +00:00
mscott%netscape.com 439e11dc40 Fix linux build by using the get() method on a nsCOMPtr to extract the raw ptr before comparing it to another
raw ptr. Also changed the variable name: lock to remove linux warnings.
(NOt part of the build! Necko only)
1999-07-12 18:33:33 +00:00
mscott%netscape.com 01da697bf0 Fix linux warning..remove comma at the end of the enum. 1999-07-12 18:32:18 +00:00
rpotts%netscape.com 78ccc8f926 Added a -sync flag for testing sync streams with the socket transport... 1999-07-12 06:22:39 +00:00
rpotts%netscape.com e65411e118 Added nsIBufferObserver::OnWrite(...) nsFileChannel.h nsFileChannel.cpp 1999-07-12 06:21:41 +00:00
rpotts%netscape.com 1847264191 Changes for sync streams with the socket transport... Added an OnWrite(...) method to nsIBufferObserver... 1999-07-12 06:20:46 +00:00
warren%netscape.com e400f4c284 Fixed http loading in viewer. Wrong channel was being passes to doc loader's stream listener by http. Also added ifdef to easily remove Fill change. 1999-07-11 02:43:37 +00:00
warren%netscape.com 2456eb613d Reverted to nsStandardUrl which works. 1999-07-10 18:24:02 +00:00
warren%netscape.com 1f33a9ea23 Fixing gagan's bustage. 1999-07-10 17:33:06 +00:00
warren%netscape.com fcd36cebd4 Added outer param to NewLoadGroup. 1999-07-10 11:27:05 +00:00
warren%netscape.com 5d32aee9fc Changed uses of nsIBufferInputStream::Fill to nsIBuffer::Write. 1999-07-10 11:26:59 +00:00
warren%netscape.com b07497cbf4 Changed file transport worker count to 1 for ease of debugging. Revert later. 1999-07-10 11:26:53 +00:00
warren%netscape.com 4cc4f7d94f Fixed some file channel problems. Works better now. Upped buffer size to avoid buffer full problems. 1999-07-10 11:26:51 +00:00
warren%netscape.com 7c731d4888 Upped socket buffer size to avoid buffer full problems. 1999-07-10 11:26:49 +00:00
warren%netscape.com 053aaa1a37 Replaced AddChannel with AsyncRead,AsyncWrite. Removed RemoveChannel. 1999-07-10 11:26:47 +00:00
warren%netscape.com 0879a196b3 Fixed scheme parsing code. Added outer param to NewLoadGroup. 1999-07-10 11:26:43 +00:00
andreas.otte%primus-online.de f73634c596 NECKO only: changed string/error handling in NS_MakeAbsoluteURI A: chofmann R: valeski 1999-07-10 08:00:55 +00:00
andreas.otte%primus-online.de 8c09626144 NECKO Only: fixes segfault with uninitialized channel A: chofmann R: valeski 1999-07-10 07:58:11 +00:00
gagan%netscape.com 143f81ea46 Added a trailing slash for optimization. 1999-07-10 05:44:16 +00:00
warren%netscape.com da430b8781 Top 100 sites for testing. 1999-07-10 05:21:07 +00:00
gagan%netscape.com c9e9030668 Thou shalt parse thy URLs... again. 1999-07-10 05:00:23 +00:00
warren%netscape.com 0cd57746e8 Necko stuff for dealing with load groups when opening URLs. 1999-07-09 21:18:47 +00:00
gagan%netscape.com ec7ef50420 Fixed a warning for virtual destructor. 1999-07-09 09:35:30 +00:00
valeski%netscape.com b9117fe2a7 not in main build - nsFileTransport now implements nsIBufferObserver and it's thread waits and notifies when the underlying buffer fills up (for async i/o). 1999-07-09 01:38:40 +00:00
mscott%netscape.com 125fd2927a Not part of the regular build yet! Necko change only. Fix my linux build. You can't compare a nsCOMPtr directly to a raw ptr. You need to call .Get() to retrieve the raw ptr and then you can compare for equality 1999-07-08 19:05:48 +00:00
mscott%netscape.com e9a6c957b8 (Not part of the normal mozilla build yet) Necko change only. Make destructor virtual. 1999-07-08 19:04:53 +00:00
valeski%netscape.com 7bc13426f4 not in main build - backed out transport files from windows build 1999-07-08 17:17:48 +00:00
valeski%netscape.com 3e26d1f123 not in main build - updated nsFileTransport stuff to use new apis 1999-07-08 17:16:47 +00:00
gagan%netscape.com 3037f684ff Fixed warnings on Linux because of missing virtual keyword on destructors. 1999-07-08 00:50:02 +00:00
waterson%netscape.com 73224fdf86 Fix VC5.0 build bustage (Necko build ONLY). 1999-07-07 20:55:57 +00:00
warren%netscape.com 9efa754f74 Added channel argument to nsIStreamObserver/nsIStreamListener/nsIProgressEventSink methods. 1999-07-07 08:08:40 +00:00
warren%netscape.com c9ce12757e Fixed clobber rule. 1999-07-07 04:20:56 +00:00
valeski%netscape.com 9e93ba1816 added style sheet mime type 1999-07-07 02:26:14 +00:00
gordon%netscape.com 8a580e3ade Update for changes to Windows makefiles. 1999-07-07 00:59:20 +00:00
gordon%netscape.com 9cb3167dd8 First Checked In. 1999-07-07 00:36:08 +00:00
gordon%netscape.com 82257cfce9 File Removed. 1999-07-07 00:23:06 +00:00
valeski%netscape.com 63584fd124 added a date header to the cookie test (cookies require a server date to work) 1999-07-06 23:54:12 +00:00
valeski%netscape.com 4c0be90d9d default to text/html content type if we don't know what it is 1999-07-06 23:44:15 +00:00
gordon%netscape.com 27421d85e0 Removed nsHTTPRequestObserver.cpp from build, because it is obsolete. 1999-07-06 20:15:03 +00:00