|
c968eb3e
|
2008-08-19T11:26:47
|
|
Fix a bug where headers arriving in multiple packets were not parsed; fix from Jiang Hong; test by me.
svn:r928
|
|
df97fca9
|
2008-07-02T06:08:16
|
|
From Scott Lamb:
* Allow the user to set the Content-Length: then stream a reply.
This is useful for large requests of a known size. Added unit test.
* Don't send a response body on HEAD requests, 1xx status codes, 204
status codes, or 304 status codes, as described in RFC 2616 section
4.3. (Doing otherwise causes problems - in particular, if a 304 has a
chunked body (even an empty one), Safari 3.1.1 issues and then fails
the next request on the connection with the non-sequitur error message
"Too many HTTP redirects"!)
* Specify a default Content-Type: when a response body is required, not
when we have data in the response buffer by the time we make the
header. (I.e., do this on evhttp_send_reply_start() for consistency.)
* Don't expect a body in response to HEAD requests.
svn:r898
|
|
707f6784
|
2008-07-02T04:22:48
|
|
reject negative content-length headers
svn:r894
|
|
cb7c3bd6
|
2008-06-29T01:30:06
|
|
support multi-line http headers; based on a patch from Moshe Litvin
svn:r890
|
|
9998c0cb
|
2008-06-26T00:40:57
|
|
correct handling of trailing headers in chunked replies; from Scott Lamb.
svn:r887
|
|
ac0c7e2c
|
2008-06-25T00:58:08
|
|
skip connection-retry test on windows
svn:r869
|
|
f80f90ed
|
2008-06-24T21:01:44
|
|
fix a bug in http_connect for windows; the address was not copied correctly.
svn:r863
|
|
994a7c50
|
2008-06-24T16:39:45
|
|
close -> EVUTIL_CLOSESOCKET()
gettimeofday -> evutil_gettimeofday()
svn:r861
|
|
344c2b56
|
2008-06-02T05:45:26
|
|
deliver partial data to request callbacks when chunked callback is set even if there is no chunking on the http level; allows cancelation of requests from within the chunked callback; from Scott Lamb.
svn:r846
|
|
89a1512a
|
2008-05-15T06:33:23
|
|
close -> EVUTIL_CLOSESOCKET
svn:r832
|
|
0cafdeb6
|
2008-05-12T17:16:47
|
|
Tweaks to make unit tests fail less badly on mingw on trunk.
svn:r814
|
|
c6da86ff
|
2008-05-12T16:44:24
|
|
r19709@catbus: nickm | 2008-05-12 12:42:48 -0400
Possible fix for [1960723] snprintf and vsnprintf return values are wrong on win32
svn:r813
|
|
1080852e
|
2008-05-12T03:12:09
|
|
allow cancelation of user initiated http requests; this will allow cancelation of rpc requests eventually
svn:r812
|
|
950af186
|
2008-05-10T05:58:17
|
|
replace fnmatch with homegrown function
svn:r804
|
|
f2d65f8a
|
2008-05-07T20:29:33
|
|
r19634@catbus: nickm | 2008-05-07 16:10:37 -0400
the C syntax is fn(void), not fn().
svn:r784
|
|
300a4efb
|
2008-05-07T01:52:24
|
|
test virtual hosts
svn:r780
|
|
f940eb4b
|
2008-05-04T22:21:29
|
|
fix a bug where it was not possible to bind multiple sockets to the same http
server; test that binding multiple sockets works.
svn:r769
|
|
98dc98c5
|
2008-04-29T21:19:26
|
|
r15346@tombo: nickm | 2008-04-29 17:19:18 -0400
Remove the never-exported, never-used, never-threadsafe evhttp_hostportfile()
svn:r746
|
|
4cff82bb
|
2008-04-29T18:11:10
|
|
r15339@tombo: nickm | 2008-04-29 14:03:48 -0400
Note that evhttp_hostportfile is not threadsafe, and so its usage will change. Mark its first argument const. Remove a now-redundant declaration for it in http-internal.h.
svn:r743
|
|
0ec09b55
|
2008-04-29T04:35:26
|
|
also try client connection for chunked requests
svn:r741
|
|
9c480533
|
2008-04-29T02:33:27
|
|
test the server side of sending chunked replies
svn:r740
|
|
72a3902e
|
2008-04-29T00:24:00
|
|
test some primitives from http.c
svn:r739
|
|
22c8a404
|
2008-04-27T20:04:33
|
|
test connection retry logic
svn:r736
|
|
7b29ad57
|
2008-04-27T19:41:26
|
|
test server behavior when connection times out while reading the headers
svn:r735
|
|
eb9b9580
|
2008-02-27T06:20:48
|
|
add some basic tests for DELETE/PUT; from Josh Rotenberg
svn:r673
|
|
024804cc
|
2007-12-28T07:58:29
|
|
the win32 changes for regress_http broke the regression test under unix. making the socket non-blocking can return -1 on connect; so now, we need to check the errno; not sure if that is supported under windows.
svn:r621
|
|
6d291da2
|
2007-12-28T00:34:05
|
|
Fix at least two bugs that are keeping the HTTP regression tests from running on windows. There are some more bugs somewhere, since the HTTP regression tests still fail on windows. But now they fail less.
svn:r619
|
|
74b3db50
|
2007-11-29T06:08:24
|
|
always generate Date and Content-Length headers for HTTP/1.1
svn:r564
|
|
ce4ee418
|
2007-11-26T19:18:49
|
|
r16733@catbus: nickm | 2007-11-26 14:18:25 -0500
Add an --enable-gcc-warnings option (lifted from Tor) to the configure script. When provided, and when we are using GCC, we enable a bunch of extra GCC warnings in the compiler. Also, make the code all build happily with these warnings.
svn:r553
|
|
1e1f77c5
|
2007-09-20T19:08:20
|
|
Make the test/ subdirectory buildable under Windows. Well, mingw at least. The tests still don't all pass, but at least now we know that.
svn:r447
|
|
e678f009
|
2007-09-09T01:46:35
|
|
fix a couple memory leaks; time buffer marshaling
svn:r417
|
|
98f9616b
|
2007-09-07T02:49:46
|
|
support setting local address on an evhttp_connection
svn:r416
|
|
67947ce3
|
2007-08-19T02:41:23
|
|
provide evhttp_new and evhttp_bind_socket instead of evhttp_start;
using evhttp_new, it is possible to associate an event_base with
the http server so that multi-threaded applications can have their
own http server per thread; add appropriate testing.
svn:r397
|
|
35983cd6
|
2007-08-16T21:12:53
|
|
r14618@catbus: nickm | 2007-08-16 17:11:47 -0400
In ANSI C, int func() is a function with unspecified arguments, whereas int func(void) is a function that takes no arguments. Using int func() to mean a function with no arguments is a C++ism, so let's not use or generate it.
svn:r395
|
|
cd6dd951
|
2007-08-06T21:00:49
|
|
add a proper test for filtering new lines in headers
svn:r384
|
|
073d3590
|
2007-08-06T20:53:33
|
|
fix an embarassing bug where strchr was used with a cstring instead of a char
svn:r383
|
|
8ea5ffef
|
2007-08-05T02:15:10
|
|
request dispatching fix from Elliot Foster
svn:r382
|
|
72c479e7
|
2007-07-30T23:54:25
|
|
remove c99 variable declarations; from Jan Kneschke
svn:r374
|
|
f0ff792a
|
2007-06-30T18:58:34
|
|
fixes from Joerg Sonnenberger:
http.c is a violation of the ctype(3) interface and an unused function.
test/regress_http.c are incorrect format strings.
test/regress.c uses raise(3) from signal.h.
evdns.c: evdns_error_strings is unused. The GET* macros can eat the
semicolon from the expression. pos is passed in as off_t, so just pass
that down. When assigning negativ values to unsigned variables, an
explicit cast is considered good style.
svn:r367
|
|
b5d2f9a2
|
2007-03-01T06:25:18
|
|
rolling back r339: evconfig.h does not work
svn:r341
|
|
127c260b
|
2007-02-28T04:02:29
|
|
make evconfig.h available as installed header file; not
really ideal but good enough for me; from Nick Mathewson
svn:r339
|
|
d5d04949
|
2007-01-18T06:28:42
|
|
fix http server so it can accept on high ports;
better warning messages for getnameinfo;
from Philip Lewis
svn:r310
|
|
0db257b8
|
2007-01-03T07:11:17
|
|
rename strlcpy so that it does not conflict with other tests; from
Nick Mathewson.
svn:r306
|
|
942656bb
|
2006-11-23T06:32:20
|
|
persistent connections are somewhat complicated; detect on the client side if the
server closes a persistent connection. previously, we would have failed the next
request on that connection. provide test case.
svn:r277
|
|
31ba30ab
|
2006-11-18T08:51:12
|
|
make regression test work for poll and select
svn:r265
|
|
9d81ac48
|
2006-11-18T03:43:26
|
|
test both piplining on persistent and non-persistent connections
svn:r262
|
|
36212f9d
|
2006-11-18T03:05:26
|
|
make persistent connections work; needs more testing
svn:r261
|
|
a67d9cb1
|
2006-11-17T07:45:42
|
|
add "Connection: close" to the output headers of the HTTP server reply;
we don't currently support persistent connections; although that's going
to be easy to add.
svn:r259
|
|
c4836d10
|
2006-11-17T06:06:17
|
|
make sure that the rpc callback receives an unmarshaled payload;
make sure that the rpc reply contains a good rpc structure, too.
svn:r258
|
|
f554234f
|
2006-11-16T07:36:20
|
|
first stab at an rpc layer; this breaks the regression test.
svn:r254
|
|
3eec7f7c
|
2006-10-15T21:55:13
|
|
make it 1.2; fix some size issues for printf in regression code
svn:r242
|
|
296739e0
|
2006-08-13T00:03:35
|
|
fix regression test
svn:r223
|
|
ba7262eb
|
2006-07-17T00:33:57
|
|
reorganization of the http functionality; we separate http handling into a
connection object and a request object; also make it clear which buffers are
used for input and output; unittests not complete yet.
svn:r217
|
|
6813af3f
|
2006-06-10T22:37:21
|
|
move http related prototypes to evhttp.h
svn:r214
|
|
147b71e3
|
2006-06-10T22:28:21
|
|
rename http.h to http-internal.h - i wish there were decent refactoring tools
for open source programmers.
svn:r213
|
|
38b33048
|
2006-02-27T02:27:37
|
|
make a simple test for HTTP POST requests
svn:r205
|
|
896bf3a2
|
2006-02-13T02:22:48
|
|
many changes for fixing a small bug: post requests would not send the post
data. I took the opportunity to reorganize a bit.
svn:r201
|
|
c398d788
|
2006-02-02T22:36:37
|
|
disable bufferevent after we have received the data that we care for.
svn:r197
|
|
a3bb4a03
|
2006-01-22T05:08:50
|
|
I often need some very simple HTTP functionality, so this is a first stab
at integrating something really simple with HTTP. The interface is still
evolving as I start messing with it. Not all the interfaces are properly
exported yet.
I am also trying to figure out how to intelligently hide the details about
the different structures from users, so that that things can be changed
around later.
svn:r196
|