warren%netscape.com
1c0a4f29e6
Added access path.
...
git-svn-id: svn://10.0.0.236/trunk@57817 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-14 10:14:19 +00:00
warren%netscape.com
41d0793ce9
Changes from andreas.otte@primus-online.de for numerous URL parsing bugs. r=warren
...
git-svn-id: svn://10.0.0.236/trunk@57808 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-14 08:50:03 +00:00
valeski%netscape.com
8cb3795a6a
r=gagan. 17647. we digesting content-type comments as legitimate header values. now we're not
...
git-svn-id: svn://10.0.0.236/trunk@57714 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-13 23:22:25 +00:00
pp%ludusdesign.com
b5787cf895
Converting usage of ::GetIID() to NS_GET_IID().
...
Bug #20232 , r=scc@netscape.com
git-svn-id: svn://10.0.0.236/trunk@57423 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-11 20:49:15 +00:00
rpotts%netscape.com
50c3fad132
Made contentType a read/write attribute of nsIChannel
...
git-svn-id: svn://10.0.0.236/trunk@57178 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-08 06:26:04 +00:00
dougt%netscape.com
93ec1f59af
Including nsCRT.h directly. This prep work for the nsIFile landing.
...
git-svn-id: svn://10.0.0.236/trunk@56684 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-03 23:27:52 +00:00
valeski%netscape.com
ddfd75d649
22534. r=gagan. We were leaking a single byte on non uname/pwd inclusive url's that required authentication, and we weren't over-writing the auth string when a auth realm wanted new credentials.
...
git-svn-id: svn://10.0.0.236/trunk@56610 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-29 21:55:18 +00:00
sspitzer%netscape.com
e457589684
fix warning
...
git-svn-id: svn://10.0.0.236/trunk@56589 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-29 00:23:43 +00:00
bryner%uiuc.edu
dcb9b00a03
Fix a compiler warning by reordering initializers. r=syd.
...
git-svn-id: svn://10.0.0.236/trunk@56548 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-24 22:11:18 +00:00
valeski%netscape.com
5c499a44d6
r=gagan, a=don. 21599. we were breaking when we received an incomplete status line. Now we are sure to buffer the line until we receive all of it. we also do this buffering for headers now.
...
git-svn-id: svn://10.0.0.236/trunk@56430 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 22:15:55 +00:00
fur%geocast.com
48e420cd61
Reorder one class member initialization line to fix a warning.
...
git-svn-id: svn://10.0.0.236/trunk@56199 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 15:47:20 +00:00
fur%geocast.com
daae136a18
Fixes for HTTP 1.1 compliance with caching, a:chofmann
...
Fix #21569 (Use Etag header for cache validation, when present)
Fix #21572 (Obey must-revalidate directive, when present)
git-svn-id: svn://10.0.0.236/trunk@56198 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 15:46:43 +00:00
mscott%netscape.com
8891a8a6d1
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
git-svn-id: svn://10.0.0.236/trunk@56122 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-17 00:44:31 +00:00
rpotts%netscape.com
f0deab5cfe
bug #21884 (r=mscott) bug #21459 (r=warren). I'm checking in the changes for 21459 again with an important fix for the image crashes :-)
...
git-svn-id: svn://10.0.0.236/trunk@56088 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-16 07:59:25 +00:00
mscott%netscape.com
2fe89a5555
Bug #21884 --> backing out Rick's changes to http to fix this regression crasher tonight.
...
a=chofmann
git-svn-id: svn://10.0.0.236/trunk@56083 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-16 06:06:00 +00:00
rpotts%netscape.com
c37cbff450
bug #21459 (r=warren). Made the consumer OnStopRequest fire before the channel is removed from the loadgroup...
...
git-svn-id: svn://10.0.0.236/trunk@56059 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-15 23:12:48 +00:00
valeski%netscape.com
38e0909f5b
21197. a=jevering, r=rpotts. On a redirect we were firing header notification *after* the rediect which broke sites trying to set and retrieve a cookie using a redirect. Now we fire on headers before processing status code
...
git-svn-id: svn://10.0.0.236/trunk@55996 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-14 23:07:29 +00:00
rjc%netscape.com
caad17c5c1
Fix PDT+ bug # 21236: don't null out mResponseContext, as it needs to be valid for the life of the channel. (Its a nsCOMPtr, so it'll automatically release when it falls out of scope.)
...
git-svn-id: svn://10.0.0.236/trunk@55907 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-11 21:24:50 +00:00
fur%netscape.com
1e228e93e0
Move OnHeadersAvailable() after processing of server's "Not Modified" response,
...
so that the cached HTTP headers can be substituted for the 304 response headers.
git-svn-id: svn://10.0.0.236/trunk@55739 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 06:37:28 +00:00
morse%netscape.com
fa04a5ff42
fix bug 21083, multiple cookies being ignored, r=valeski
...
git-svn-id: svn://10.0.0.236/trunk@55728 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 05:07:31 +00:00
fur%netscape.com
d50cb261de
Fix mac build bustage. Use LL* macros with int64 types
...
git-svn-id: svn://10.0.0.236/trunk@55717 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 04:56:15 +00:00
fur%netscape.com
72c9eb90d8
Fix usual bustage due to not including header with an nsCOMPtr type
...
git-svn-id: svn://10.0.0.236/trunk@55710 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 04:08:48 +00:00
fur%netscape.com
6201f3cc96
+ Fix unix build bustage: Add explicit casts to XPIDLCString rvalues.
...
+ Fixed warnings
git-svn-id: svn://10.0.0.236/trunk@55709 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 04:04:26 +00:00
fur%netscape.com
c7aa643d96
Disable cache by default on Windows
...
git-svn-id: svn://10.0.0.236/trunk@55696 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 03:25:44 +00:00
fur%netscape.com
4ca11f608c
Bug #8305 (Implement cache). Whacked the HTTP protocol handler hard to support caching.
...
git-svn-id: svn://10.0.0.236/trunk@55695 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 03:23:14 +00:00
valeski%netscape.com
592665b4d9
r=rickg. replacing a char const w/ an int literal
...
git-svn-id: svn://10.0.0.236/trunk@55573 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 08:58:50 +00:00
valeski%netscape.com
7a2ef93455
20956. r=rpotts. necko no longer assumes any MIME type. we send out application/x-unknown-content-type internal MIME type if we don't *know* what the type is. It's now truly up to the app to figure out what to do"
...
git-svn-id: svn://10.0.0.236/trunk@55550 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 06:59:25 +00:00
rpotts%netscape.com
b5e7662905
bug #20490 (r=valeski). Fixed problem where OnStopRequest was being fired (incorrectly) on 30x and 40x redirects...
...
git-svn-id: svn://10.0.0.236/trunk@55544 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 06:35:55 +00:00
warren%netscape.com
c7d8a4a439
Added buffer size parameters to NewChannel. Allows for optimization of amount of image data consumed. Bug #20408
...
git-svn-id: svn://10.0.0.236/trunk@55285 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 10:01:32 +00:00
fur%netscape.com
ac87ce19c4
Fix build bustage on Linux
...
git-svn-id: svn://10.0.0.236/trunk@55156 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 02:59:37 +00:00
fur%netscape.com
5dabafa40b
More infrastructure work in support of bug #8305 (Implement
...
cache). Added several nsHTTPResponse methods dealing with
header parsing and manipulation of date-containing header fields.
(None of these methods are yet invoked.)
git-svn-id: svn://10.0.0.236/trunk@55150 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 01:51:07 +00:00
fur%netscape.com
902d510731
Quash warning
...
git-svn-id: svn://10.0.0.236/trunk@55149 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 01:45:22 +00:00
fur%netscape.com
02494ac189
Added missing HTTP header atoms
...
git-svn-id: svn://10.0.0.236/trunk@55148 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 01:44:38 +00:00
rpotts%netscape.com
9145120320
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 :-(
...
git-svn-id: svn://10.0.0.236/trunk@55103 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 23:09:15 +00:00
mscott%netscape.com
9752ae7af4
oh the horror! We were leaking all channel listeners that ran through the http channel. Fixed the
...
leak by using a nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@55056 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 09:11:51 +00:00
fur%netscape.com
4df51cacc5
Laying the foundation for the incorporation of caching, by
...
reorganizing/splitting protocol handler methods, though not yet adding any
new functionality:
Allow for multiple instances of nsHTTPResponse to be associated
with the same connection, i.e. so that response headers from the
cache and response headers from the server can coexist
simultaneously. To wit:
Moved content-length, charset and content-type information
from nsHTTPChannel into nsHTTPResponse
Split into separate functions the accumulation of a single line of
HTTP header data (from the input stream) and the parsing of
that line. This permits cached response headers and server
response headers to be parsed from separate data sources, the
latter arriving from a nsIBufferInputStream and the former
retrieved from the cache as a string.
Moved the newly-created header-parsing methods to
nsHTTPResponse from nsHTTPResponseListener
Fixed some bugs in the interaction between AsyncOpen and
AsyncRead. It was possible for an OnHeadersAvailable event to be
triggered *after* the associated OnDataAvailable, rather than the
other way around. It was also possible, in a rare case, for
mOpenObserver->OnStopRequest() to be called without ever having
called mOpenObserver->OnStartRequest(). I think my changes made
the logic a bit more foolproof.
Removed ancient ifdef NSPIPE2
git-svn-id: svn://10.0.0.236/trunk@55016 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 03:53:28 +00:00
rpotts%netscape.com
ad8a426d0f
(r=valeski) Fix for new bloat (leaking HTTPChannels) that was introduced yesterday
...
git-svn-id: svn://10.0.0.236/trunk@54866 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 04:32:58 +00:00
warren%netscape.com
05d899f92a
Added include of nsNetUtil.h to pick up NS_NewSyncStreamListener
...
git-svn-id: svn://10.0.0.236/trunk@54725 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 05:32:14 +00:00
valeski%netscape.com
77c6e839a9
18434. r=rpotts. HTTP now implements OpenInputStream and proxies event sink callbacks between the caller and the transport.
...
git-svn-id: svn://10.0.0.236/trunk@54714 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 04:15:27 +00:00
dougt%netscape.com
0c53e29d87
fix for 18078. r=mstoltz,warren
...
git-svn-id: svn://10.0.0.236/trunk@54648 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 00:32:43 +00:00
mscott%netscape.com
acd1ca8191
modify SetLoadGroup to work with retargeting.
...
r=rpotts
git-svn-id: svn://10.0.0.236/trunk@54635 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 00:10:37 +00:00
warren%netscape.com
5d77bc1cb6
Added nsIHttpEventSink.h
...
git-svn-id: svn://10.0.0.236/trunk@54388 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 05:49:38 +00:00
valeski%netscape.com
ebe6074d2f
bustage fix. comptr include ordering problem
...
git-svn-id: svn://10.0.0.236/trunk@54341 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 23:15:16 +00:00
valeski%netscape.com
742ccc82f5
bustage attempt. chasing comptr fun
...
git-svn-id: svn://10.0.0.236/trunk@54340 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 23:14:08 +00:00
warren%netscape.com
03a7be4590
First Checked In.
...
git-svn-id: svn://10.0.0.236/trunk@54335 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 23:03:43 +00:00
valeski%netscape.com
5387fd9909
18434, r=rpotts. HTTP now implements AsyncOpen. AsyncOpen will be used by URI dispatching
...
git-svn-id: svn://10.0.0.236/trunk@54328 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 22:23:06 +00:00
waterson%netscape.com
df32789d46
Fix nsNetModuleMgr and nsNetModRegEntry leaks. r=valeski
...
git-svn-id: svn://10.0.0.236/trunk@54300 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 20:47:25 +00:00
rpotts%netscape.com
6a7984adfe
bug #19303 . HTTPHeader entries were leaking... I checked in a modified version of beards patch.
...
git-svn-id: svn://10.0.0.236/trunk@54131 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-22 07:02:44 +00:00
valeski%netscape.com
a9e59ceb15
fixing build bustage
...
git-svn-id: svn://10.0.0.236/trunk@54084 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 23:23:59 +00:00
valeski%netscape.com
763bf1361e
6144, I'm checking in gagan's code for him as he's gone. r=valeski, r=gagan :). This checkin drops in HTTP authentication caching so you don't get hit w/ multiple auth dialogs when accessing auth requiring sites that have images in their html
...
git-svn-id: svn://10.0.0.236/trunk@54079 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 22:11:15 +00:00