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

151 Коммитов

Автор SHA1 Сообщение Дата
valeski%netscape.com 169a5140b5 r=rpotts. comment changes only. 48726. adding status to idl files of api rev. ifaces. 2001-03-24 00:22:18 +00:00
darin%netscape.com 1429dfcff5 Fixes bug 13393. HTTP should send Accept-Charset. patch=havill@redhat.com,
r=gagan, sr=darin
2001-03-22 08:39:41 +00:00
darin%netscape.com a82ceaf849 [not part of the build] HTTP now compiles with MOZ_NEW_CACHE defined. 2001-03-07 12:19:27 +00:00
dougt%netscape.com 128f95aa9b Relanding Necko Changes.
Revising nsIChannel to allow for overlapped i/o. This consists of three parts:

1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols). The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

r=darin@netscape.com
sr=rpotts@netscape.com
2001-02-21 20:38:08 +00:00
alecf%netscape.com 19bc55bf31 part of fix for #46488 - http startup handlers get an Observe() call as well
r=valeski, sr=waterson
2001-02-15 14:43:34 +00:00
disttsc%bart.nl 3d2d80d536 Back out dougt's channel changes 2001-02-12 03:14:23 +00:00
dougt%netscape.com 1b9ca82439 Revising nsIChannel to allow for overlapped i/o. This consists of three parts:
1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols).  The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

The full details of the change on written up in the netlib newsgroup.

r=darin@netscape.com
sr=rpotts@netscape.com
2001-02-10 00:16:26 +00:00
gagan%netscape.com 79713bc4c2 Optimization for scheme comparison of URIs. See bug 66577 for details. r=darin, sr=brendan@mozilla.org 2001-01-31 01:33:03 +00:00
gagan%netscape.com bbeb713db3 Fix for bug 32335. Fixes to make basic auth use the realm for authenticating. Thanks to darin@netscape.com r=gagan, sr=shaver. 2000-10-13 04:01:48 +00:00
rayw%netscape.com 0257791053 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren
2000-09-13 23:57:52 +00:00
ruslan%netscape.com b9c45237c9 FInally fix 42283; a=gagan,r=gordon 2000-07-20 21:25:19 +00:00
jab%atdot.org 3ff5cd0f65 a=brendan@mozilla.org
Bug #16103
Support for SOCKS proxies in HTTP, HTTPS, and FTP protocols.
Also includes the prefs configuration and UI bits.
2000-07-01 10:25:25 +00:00
gagan%netscape.com e1ca0a01b8 Part fix for bug 35956. HTTP now has an API to turn off automatic gunziping. r=rjc 2000-06-21 23:18:12 +00:00
danm%netscape.com d1432bb1bc adding accessor for nsIPrompt member variable. bugs 25684,28594. r=gagan@netscape.com 2000-06-16 14:52:53 +00:00
ruslan%netscape.com 7a02f0ac9e Fix for 37800 - API change: SetRequestMethod now has to take Atom
as method name
2000-05-03 00:18:08 +00:00
gagan%netscape.com 9508ade32b Fixed bug 23480. Changed the PostDataStream api to be UploadStream api to allow PUT requests as well.
Fixed bug 32560. Added AsyncWrite implementation for HTTP.
Fixed bug 33842. Some of the earliar code that ruslan had landed broke the status updating for proxy cases.
Fixed bug 36602. Added an api to add (and remove) entries to the "no proxy for" array. Also changed the array to be constructed once (and hence parsed once) instead on each call to ExamineForProxy.
Part fix for bug 31174. Added HTTPS proxy settings.
And finally also un"ruslan"ized the HTTP code :)
2000-04-22 00:35:05 +00:00
ruslan%netscape.com 55a5f44203 Backing up some changes from friday which broke authenticate (36071). Support
Apache-style keep-alive header. Make *ServerCapabilities methods public.
2000-04-18 02:32:53 +00:00
ruslan%netscape.com 5dff88a180 Partially fix 34743. Handle 100 (Continue) responses. Add an exclusion list
for servers with broken 1.1/pipelining. Fire onstop in case of the error on
all queued up channels in the pipeline.
2000-04-13 20:48:19 +00:00
ruslan%netscape.com 6658571391 Landing link-click problem fix. Also fix DNS lockup (gordon) on Windows,
memory leak of socket transports during pipelined request, add timeout
setters on socket transport, add a restriction on the number of keep-alive
connections.
2000-04-12 01:47:22 +00:00
ruslan%netscape.com 06052d9920 Preparing for pipelining landing: keep the list of server capabilities now.
Make prefs reader more intelligent. Don't cache pages with security info
for now to let daugh to get through his bugs; Make proxy.keep-alive/
proxy.pipelining to be prefs as well; p/r=warren
2000-03-30 22:24:29 +00:00
tbogard%aol.net 2f30133a36 Adding the attribute referrer so that you can get the referrer from the channel once you have previously set it. 2000-03-30 02:18:52 +00:00
ruslan%netscape.com 77aabe9130 Http handler reorg to fix keep-alive raise condition and prepare for
pipeling changes. Also fix 32505, 31979. In case of a major bustage -
http11_reorg_point is the tag before the checkin; r=gagan, a=warren
2000-03-24 21:38:04 +00:00
valeski%netscape.com e34b119ffa r=jst. 30067. OSCPU User agent attrib is now exposed. 2000-03-21 22:38:40 +00:00
ruslan%netscape.com cc358edad9 Fix 31882, 31884, 31979 (all keep-alive fixes + patch from Tomi.Leppikangas@oulu.fi) 2000-03-18 18:39:41 +00:00
dougt%netscape.com 8126ff53b4 Adding GetSecurityInfo to the nsIChannel. bug 29646. r=warren. 2000-03-17 22:06:32 +00:00
ruslan%netscape.com c9b313d004 Fix 10738, partial fix for 21020. Keep-alive, http/1.1, transfer-encoding: chunked
can now be turned on (network.http.version=1.1); network.http.keep-alive can also
be used, however not recommended (1.1 pref will automatically enable keepa-alive).
r=warren,gagan
2000-03-14 03:41:46 +00:00
gagan%netscape.com c6349ecc8b Fix for 30385. We were leaking channel due to the no longer needed "proxy channel" by the cache transport (mem cache) Also removed nsIHttpEventSink.h since its now an IDL. Also fixed 31667, 31222, 31657 (the assertion failures for thread safety) 2000-03-14 03:24:56 +00:00
gagan%netscape.com 0515578bb7 Transitioning from nsIHttpEventSink.h to nsIHTTPEventSink.idl Also cleaned up the event sink to only have OnHeadersAvailable and OnRedirect as messages. r=valeski,a=jar 2000-03-08 00:27:33 +00:00
gagan%netscape.com 3c24439a40 Transitioning from nsIHttpEventSink.h to nsIHTTPEventSink.idl Also cleaned up the event sink to only have OnHeadersAvailable and OnRedirect as messages. 2000-03-08 00:24:53 +00:00
gagan%netscape.com 199934c425 First checkin. Not in the build yet. Moving the HTTP event sink from .h to .idl. 2000-03-04 00:40:35 +00:00
valeski%netscape.com e180ae64bd 29164. r=shaver. The user agent setup no longer uses a string bundle. UA string formatting changes that use prefs for values. 2000-02-29 20:39:18 +00:00
valeski%netscape.com b91b7e2bc2 28782. a=jar. r=alecf. nsHTTPHandler now has an extra product token for the User Agent string. we now use the PRUnichar = operator for string stuff, and retrieve vendor info from a string bundle. 2000-02-23 22:50:45 +00:00
gagan%netscape.com d4293a9bc7 r=valeski,rjc a=jar. Fixes for the following bugs-
bug 1582 - HTTP Referer header problem.
This is now resolved with a preference (network.sendRefererHeader)
If set to 0 no referrer header is sent (ever) If set to 1 the
referrer header is sent only in cases of user link-clicks and if
set to 2 is sent from image requests as well.

bug 17158 - No Proxies For wasn't implemented.
This was not being read correctly and I also moved and cleaned up
the parsing function to nsProtocolProxyService (thereby also
killing bug 27728)

bug 24642 - http://www.win98central.com/#437 was crashing.
bug 26686 - crash in nsHTTPRequest destructor.
Both of these crashes were because of the nsHTTPRequest being
unconditionally released in the destructor of nsHTTPChannel. Although the main problem remains, I have made it a non-crasher now.

bug 27844 - HTTP breaks when only using FTP proxy.
This was happening because we were not resetting values of the
proxy when they are removed from the preference pane.
2000-02-23 21:17:17 +00:00
valeski%netscape.com be539d4664 r=gramps (yea, that's right), 15594 (partial). In order for FTP proxies to work, HTTP needs to implement nsIProxy. FTP uses the HTTP protocol to piggy back as a real proxy handler. 2000-02-14 08:40:05 +00:00
gagan%netscape.com e1232219fd Now allowing FTP to specify an ftp URL-- bug 15594 (and in general allow any non-HTTP handler to use HTTP as a proxy) r=valeski 2000-02-14 07:06:32 +00:00
gagan%netscape.com fa0c3e93e6 Fixed bug 27024. Changed nsIHTTPChannel.idl to have proxy host/port
accessors and modifiers. Channels may now override the proxy setting
from the HTTP handler. r=valeski

Fixed bug 24329. Made mProxyAuthList in nsAuthEngine to keep the list of proxy authentications. Logout now clears both proxy and basic auths. r=rjc

Fixed bug 26149. Authenticate now aborts only if the user doesn't click cancel on the PromptUserPass dialog. Removed the unnecessary nsIChannel* parameter on Authenticate. r=rjc

Fixed bug 24304. We now register a callback for proxy preferences. r=rjc

Fixed bug 17158. We now honor "network.proxy.no_proxies_on" preference to diable proxy activity on specified host or domain. We still need a fix for 27141 to read and write this pref correctly. r=rjc

Fixed bug 16442. Referer is only added if its an http URI. r=rjc
2000-02-11 00:47:50 +00:00
valeski%netscape.com 6de717d753 r=dougt. 10465. The http protocol handler now has the USer agent api hanging off of it. I also cleaned up the HTTP component so it is a clean service w/ a cid now. 2000-02-08 06:20:54 +00:00
dp%netscape.com 166c6d1f48 Adding NS_HTTP_STARTUP_CATEGORY r=gagan 2000-02-08 06:05:36 +00:00
gagan%netscape.com d3535034d0 Fix for 13380. We now send Accept-Language: header. 2000-01-19 00:38:51 +00:00
gagan%netscape.com a905c41b20 Fixed bug 17293, 17244, 20814 -- all because some servers wouldn't understand lowercase HTTP headers. We now send HTTP headers in compatible case as 4.*. r=rpotts 2000-01-16 06:59:43 +00:00
mscott%netscape.com aabdc49dd6 fix mem leak of the http handler and the http request objects.
Add GetnsAuthEngine to nsIHTTPProtocolHandler, remove nsHTTPHandler::GetInstance, force callers to
go through the service manager. remove the http handler factory code since we just need the http
module
r=warren
1999-12-17 00:44:31 +00:00
rpotts%netscape.com ed1cb83b57 bug #13157 (r=valeski). Added support for HTTP/0.9 server responses. This fixes a whole class of bugs where CGI scripts were displaying blank pages because we just ignored the response :-( 1999-12-02 23:09:15 +00:00
warren%netscape.com 2d07d1ec0a Added nsIHttpEventSink.h 1999-11-24 05:49:38 +00:00
warren%netscape.com e91b1c3cbe First Checked In. 1999-11-23 23:03:43 +00:00
fur%netscape.com 9eb2b7d985 Change IDL to generate identical C++ headers, but with improved scriptability.
r: rpotts
1999-11-19 15:13:00 +00:00
dmose%mozilla.org 5312eacf8c updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
valeski%netscape.com 4bd531e836 16968, r=gagan. Changed the way HTTP header notification occurs. now the channel does the notification. Also added SetREsponseHeaders() to the nsIHTTPChannel iface which allows outside users to add response headers (such as nsMultiMIMEConv/bugzilla) and have the new headers perculate to observers. also fixed HTTP handler leak, r=dp on that one. 1999-10-28 20:12:59 +00:00
rpotts%netscape.com 559cc27b79 Cleanup - changed setter/getter methods to an attribute. 1999-10-26 04:49:56 +00:00
valeski%netscape.com b736d59eec removing dead file: a=leaf 1999-09-27 17:10:37 +00:00
briano%netscape.com 696e28cdec Removed the obsolete non-NECKO leftovers. 1999-09-09 00:59:41 +00:00
gagan%netscape.com ec8d3b31ef Basic Auth stuff. very basic indeed. 1999-09-01 04:21:12 +00:00
rpotts%netscape.com 89e414a3f4 ug #8443. Added GetCharset to nsIHTTPChannel 1999-08-31 04:46:05 +00:00
gagan%netscape.com 58d5877fdf Fixed tabs to spaces and misc leaks... 1999-08-27 12:38:06 +00:00
rpotts%netscape.com 6e6cdb32c5 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
gagan%netscape.com f182cc62db Added a new MANIFEST file for nsHTTP stuff. 1999-08-04 16:12:30 +00:00
gagan%netscape.com 46143f3127 POSTing works now. 1999-08-04 15:07:26 +00:00
warren%netscape.com 529c0b2b71 Removed hack to export to netwerk/dist (used before landing necko). 1999-08-03 00:38:25 +00:00
mscott%netscape.com d563520210 fix build by including config.mak 1999-07-29 03:10:23 +00:00
rpotts%netscape.com 315de829f9 Obsolete file... 1999-07-28 09:25:51 +00:00
rpotts%netscape.com bf7d1235bc Support for a Max number of open transports. 1999-07-28 09:25:31 +00:00
warren%netscape.com ab34582f5b Added encode flags. 1999-07-21 07:05:12 +00:00
warren%netscape.com 568cf0dedf Working on NS_NewPostDataStream -- doesn't work yet though. 1999-07-21 05:53:25 +00:00
mscott%netscape.com ff5d0893fc 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 ffe7345c94 Started adding encode stream for necko posting. 1999-07-20 08:45:41 +00:00
gagan%netscape.com b778e933c4 Changed status from nsresult to PRUint32. 1999-07-16 00:40:06 +00:00
gagan%netscape.com 7da5059cdb Changed const char* to char* for GetStatus calls. 1999-07-16 00:32:50 +00:00
rpotts%netscape.com 190ef76896 Applied patches provided by Tim Rowley - tor@boojum.cs.brown.edu. To fix build problems with the SUNWspro compilers. Thanks Tim!! 1999-06-29 06:58:06 +00:00
bruce%cybersight.com cbeef0eae2 Fixes for builds in an objdir. Use $(topsrcdir) and not $(DEPTH) for calculating path to rules.mk 1999-06-27 05:47:04 +00:00
warren%netscape.com a1f7bf6f4e Fixed makefiles for necko module, but netwerk directory. 1999-06-25 03:00:32 +00:00
warren%netscape.com 054ac73b6c Changed our library names from netwerk to necko. 1999-06-24 23:13:46 +00:00
warren%netscape.com 3fc52f0e95 Added nsILoadGroup. Changed load attribute strategy to flags. 1999-06-24 22:58:42 +00:00
warren%netscape.com 89f98a47db Added stuff needed for landing -- LoadQuiet, BypassCache, BypassProxy 1999-06-22 00:19:58 +00:00
andreas.otte%primus-online.de a6a5bc0774 adding hack to change PUBLIC variable
This has no effect until some other changes to SeaMonkey
1999-06-17 19:07:58 +00:00
rpotts%netscape.com ce2c24bc6a Separated the Event Sink from the nsIStreamListener... 1999-06-16 09:40:40 +00:00
warren%netscape.com 2c894653f9 Hack to make necko co-exist with seamonkey so headers don't collide. 1999-06-12 01:41:08 +00:00
andreas.otte%primus-online.de 19b6475c9e conversion to wstring / PRUnichar
some cosmetics to various Makefiles
1999-06-11 15:50:14 +00:00
valeski%netscape.com 6a1012f1c4 gave http it's own xpt module 1999-06-09 19:38:03 +00:00
valeski%netscape.com e3a4da8230 added nsIHTTPNotify.idl to the idl list on unix 1999-06-09 01:02:37 +00:00
valeski%netscape.com 1e42ea1bf1 removed this one. good one is in mozilla/netwerk/protocol/http/public 1999-06-08 17:10:25 +00:00
valeski%netscape.com c27c8b5ecd added nsIHttpNotify.idl to the idl srcs list 1999-06-08 16:40:44 +00:00
valeski%netscape.com 6e31ac7943 changed method names to match new symantics 1999-06-08 16:39:48 +00:00
andreas.otte%primus-online.de a2b5c4f6f4 some cleanup after IDLisation 1999-06-08 09:44:04 +00:00
warren%netscape.com 550ed382f3 obsoleting files 1999-06-07 22:19:20 +00:00
warren%netscape.com c0797ee094 New IDL interfaces. 1999-06-07 21:33:30 +00:00
valeski%netscape.com 9da8d67122 nsIHTTPConnection.h - extended the nsIHTTPConnection interface so the internal streamlistener is accessible.
nsHTTPConnection.cpp - GetInputStream now uses a syncStream listener.
nsHTTPConnection.h  - api update to support new nsIHTTPConnection interface and added nsIStreamListener member.
nsHTTPResponseListener.cpp - added code to push data through the pipe
1999-06-02 17:23:45 +00:00
gagan%netscape.com 99aab3d592 CVS is misbehaving with me again... didnt pick these up... Updates to HTTP. Need nsSyncStreamListener to complete the test. 1999-06-02 13:26:47 +00:00
andreas.otte%primus-online.de 303a9997a4 Adding missing headerfiles 1999-05-28 23:48:58 +00:00
gagan%netscape.com ee8e427e1a General fixes. 1999-05-28 22:31:47 +00:00
andreas.otte%primus-online.de f7497e5e99 First Checked In 1999-05-28 09:11:38 +00:00
valeski%netscape.com eeabca79d9 added the idl dir and initial nsIHttpNotify.idl 1999-05-27 21:31:26 +00:00
gagan%netscape.com 0d6e518a98 Moved nsHTTPEnums from src to here. 1999-05-25 21:38:27 +00:00
valeski%netscape.com 4d55943c23 adding http's events for the nsNetModuleMgr api so necko can interract with external modules 1999-05-25 17:34:59 +00:00
gagan%netscape.com b00ba8f58d Changes for the HTTP Handler. 1999-05-21 07:12:31 +00:00
gagan%netscape.com cd014cf449 HTTP changes. 1999-05-21 06:35:21 +00:00
warren%netscape.com 9426263323 Started hooking up socket transport synchronous streams. Added unix makefiles. 1999-04-25 19:25:24 +00:00
warren%netscape.com f7fa724505 Added source offset parameter to OnDataAvailable (for byte-range requests). 1999-04-22 08:47:06 +00:00
warren%netscape.com 411dd4b228 Added missing out param to GetHeader. Started making GET request async. 1999-04-20 04:48:51 +00:00
warren%netscape.com 3a5c528a63 More for http. 1999-04-14 00:06:07 +00:00
warren%netscape.com a7c8e361b8 Began fleshing out http protocol. 1999-04-12 22:34:20 +00:00
warren%netscape.com f3f777441d Fixed up all the IIDs to be new/unique. Made nsFileTransport work (needs tuned). 1999-04-05 21:05:22 +00:00