Commit graph

574 commits

Author SHA1 Message Date
lins05
18c649203f fixed test code 2014-08-19 11:11:34 +08:00
poetwang
fd6ae5d936 Use MSYS Makefiles instead of MinGW Makefiles 2013-04-06 14:18:18 +08:00
poet
b0bd0942bf Port to MinGW 2013-03-16 13:34:01 +08:00
Mark Ellzey
4ec44cea54 Merge branch 'release/1.2.0' 2012-12-27 02:16:17 -05:00
Mark Ellzey
96317e90f1 Release v1.2.0, see ChangeLog for details. 2012-12-27 02:16:00 -05:00
Mark Ellzey
28710f8401 Added htparser_get_content_pending for fetching bytes left to process. 2012-12-26 12:35:48 -05:00
Mark Ellzey
bb6cdac900 get_content_len now returns non-modified content_len var 2012-12-26 12:28:20 -05:00
Leon Mergen
f8496187f5 Browsers can send more trailing data after the application/x-www-form-urlencoded content type, for example, which charset is used. Those submissions were incorrectly determined as non-form data. 2012-12-24 12:38:35 -05:00
Mark Ellzey
296e631afe Merge branch 'feature/no_free_on_paused' into develop
Conflicts:
	CMakeLists.txt
	evhtp.c
	evhtp.h
2012-12-12 23:43:17 -05:00
Mark Ellzey
012274bef5 Merge branch 'feature/sodabrew_client' into develop
Conflicts:
	CMakeLists.txt
2012-12-12 23:38:06 -05:00
Mark Ellzey
f471298dbc Fix for issues/69 for evthr memset() 2012-12-11 09:56:40 -05:00
Mark Ellzey
3bf92d22ac Merge pull request #67 from okoeroo/fix_cmake_building_shared_static
When building static/dynamic only build static/dynamic.
2012-12-08 15:17:46 -08:00
Oscar Koeroo
e5021c1a08 Fixing the -DEVHTP_BUILD_SHARED:STRING=ON option to only build static-builds or dynamic-builds when set. Avoid mixing and also the test tools are now build statically or with a dynamic dependency. 2012-12-08 21:11:24 +01:00
Mark Ellzey
cb62ca0659 Removed old contrib crap. 2012-12-08 00:55:49 -05:00
Mark Ellzey
4da6965a7e Added -DEVHTP_BUILD_SHARED:STRING=[OFF:ON] 2012-12-07 18:03:02 -05:00
Mark Ellzey
9052e563f8 Apprently rm'd some critical things, added them back in. 2012-12-07 17:28:45 -05:00
Mark Ellzey
4289914ecc rm cruft that got merged in that shouldn't have. 2012-12-07 17:16:11 -05:00
Mark Ellzey
680bce67f5 Fix format warnings for test_client 2012-12-07 17:07:25 -05:00
Mark Ellzey
227695505a Merge branch 'develop' into feature/sodabrew_client 2012-12-07 16:46:48 -05:00
Mark Ellzey
0e774db72d Request pausing + threading fixes.
- Fixed issue where if a request is pipelined, or there is a socket error while
  the request is still marked as paused, the connection and request would be
  free'd. The expected behaviour is to not free until the request is resumed.
2012-12-07 16:16:11 -05:00
Mark Ellzey
9d8e243235 parser fixes / deal with paused responses better.
- parser: in some cases, the next state was not being set if a user callback
  returned a non 0.

- evhtp: check for a paused request, no matter if the parser failed.
2012-12-06 12:28:28 -05:00
Mark Ellzey
96130f831c Merge branch 'develop' of github.com:ellzey/libevhtp into develop 2012-12-06 07:22:42 -05:00
Mark Ellzey
d5c640a046 Added htparser test for empty header keys. 2012-12-06 07:22:11 -05:00
Mark Ellzey
a3ccc1e996 Fix memory leak on hdr_val 2012-12-05 15:33:31 -05:00
Mark Ellzey
c8165a02a0 Error checking for header_val_add() 2012-12-05 15:26:06 -05:00
Mark Ellzey
34b42612c8 evhtp_free now frees all associated callbacks. 2012-12-04 14:34:08 -05:00
Mark Ellzey
59de92ab84 Fixes for multiple requests, new htparse tests
- Due to some changes made recently, when the htparser state went back to the
  beginning after a request had been processed, some variables were not being
  reset. When multiple requests exist, the prior request could have written
  something the current request doesn't use. This resulted in corrupted data.

  The fix was to simply reset those variables each time the state goes to start.

- Rewrote the test.c app to be more flexible and verbose on output.
2012-11-28 14:38:42 -05:00
Mark Ellzey
93e4f0f3f4 Changed host_ipv6_done state to host_done 2012-11-28 11:35:14 -05:00
Marcus Sundberg
622256b0ef (htparse): Add support for CONNECT and PATCH methods. 2012-11-28 11:28:57 -05:00
Marcus Sundberg
6f1b93f207 (htparse): Avoid memset()ing entire parse buffer on init.
When profiling a libevhtp application this unnecessary memset() takes
a very noticable amount of time.
2012-11-28 11:28:50 -05:00
Marcus Sundberg
9f53ee55d7 (htparse): Fix parsing of ftp and nfs schemes. 2012-11-28 11:28:43 -05:00
Marcus Sundberg
b495e818aa (htparse): Handle literal IPv6 addresses in URIs.
IPv6 addresses are enclosed in brackets when used in an URI.
2012-11-28 11:28:38 -05:00
Marcus Sundberg
1f60434a7f (htparse): Use correct arguments to hook_port_run(). 2012-11-28 11:28:32 -05:00
Marcus Sundberg
657fe3b3e5 (htparse): Properly handle abolute-URI with empty path.
Set the path that will be used when calling hook_path_run() and
hook_uri_run() in s_after_slash_in_uri state to "/", not " ".
Also handle empty path when a port is specified in the host part.
2012-11-28 11:28:27 -05:00
Marcus Sundberg
0e7bdcd9e5 (htparse): Handle query parameters according to RFC 3986.
The query component is indicated by the first question mark ("?")
character and terminated by a number sign ("#") character or by the
end of the URI.

The old code started the query component at the *last* question mark.
2012-11-28 11:28:20 -05:00
Marcus Sundberg
51f78e4940 (htparse): Use correct length parameter when calling hooks. 2012-11-28 11:28:14 -05:00
Marcus Sundberg
8aaa419676 (htparse): Use correct arguments to hook_path_run(). 2012-11-28 11:28:08 -05:00
Marcus Sundberg
1bb641f6cc (htparse): Properly propagate errors from hook_on_hdrs_begin_run()
Previously returning an error from evhtp_hook_on_headers_start() did
not terminate the connection.
2012-11-28 11:28:00 -05:00
Mark Ellzey
c1f52163e5 Add documentation on fallthrough state for method proto. 2012-11-26 11:51:37 -05:00
Mark Ellzey
de206a808f Fix some generic warnings in test_proxy.c 2012-11-26 11:31:42 -05:00
Mark Ellzey
50521071d9 use EVHTP_DISABLE_SSL instead of USE_SSL 2012-11-26 11:27:43 -05:00
Mark Ellzey
1e9dbdb805 Merge branch 'develop' into feature/sodabrew_client 2012-11-26 11:13:09 -05:00
Mark Ellzey
8635b2b589 Fixed bug in body-based query checking. 2012-11-26 11:12:45 -05:00
Mark Ellzey
f652e60e9b Merge remote-tracking branch 'sodabrew/feature/evhtp_client' into feature/sodabrew_client
Conflicts:
	.gitignore
	evhtp.c
	evhtp.h
2012-11-26 11:05:30 -05:00
Mark Ellzey
95fff6776a Merge branch 'master' into develop 2012-11-26 10:59:06 -05:00
Mark Ellzey
79ec9bd610 Merge pull request #50 from jedisct1/parse-requests-with-hosts-and-empty-path
Accept requests like <method> <protocol>://<host> <http version>
2012-11-26 07:57:19 -08:00
Mark Ellzey
fa4c9cce93 Enable search engine for Doxygen. 2012-11-21 10:44:45 -05:00
Mark Ellzey
6448e1a74a Merge branch 'release/1.1.7' into develop 2012-11-20 16:13:22 -05:00
Mark Ellzey
f70c920d4d Merge branch 'release/1.1.7' 2012-11-20 16:13:14 -05:00
Mark Ellzey
638fff7d1b Release v1.1.7, see ChangeLog for details. 2012-11-20 16:12:50 -05:00