Ben Noordhuis
f5c779bb85
Update misleading comment.
...
The HTTP_MAX_HEADER_SIZE check is not there to guard against
buffer overflows, it's there to protect unwitting embedders
against denial-of-service attacks.
11 years ago
Ben Noordhuis
3cbd13daca
test: add amazon.com response test
11 years ago
Ben Noordhuis
547553b090
Further request method check strengthening.
11 years ago
Chris Dickinson
c6ee6ada69
Do not accept PUN/GEM methods as PUT/GET.
...
* Encountering them returns an error, `HPE_INVALID_METHOD`
* Tests have been added.
11 years ago
Ben Noordhuis
d3264312e1
Add function http_parser_version().
...
Fixes #115 .
11 years ago
Ben Noordhuis
6df37aa52d
build: set SONAME in shared object file
...
Fixes #151 .
12 years ago
Ben Noordhuis
8081938445
Bump to version 2.1
12 years ago
Ben Noordhuis
e77957a091
Update AUTHORS and .mailmap
12 years ago
Corey Richardson
fa7455081a
doc: add travis build status link
12 years ago
Ben Noordhuis
120a2c5c9b
Move url_parser.c to contrib/
12 years ago
Ben Noordhuis
fe9fb34e53
Update AUTHORS and .mailmap
12 years ago
Tóth Tamás
0938fe599f
Add on_status_complete callback.
...
Add a "status complete" callback to support Simple-Response handling with HTTP
version <= 1.0.
Patch by Tóth Tamás, tests by Corey Richardson.
12 years ago
Corey Richardson
798eb9012e
Add a simple utility to dump events as they happen
12 years ago
Thomas LE ROUX
769db22859
Update AUTHORS
12 years ago
James McLaughlin
2b77aba93a
Fix MSVS 2005 and 2008 missing size_t typdef.
...
Replace manual size_t typedef with stddef.h include
Fixes #128 , #141 .
12 years ago
Corey Richardson
54f6c78530
Fix unmatched quote in dump_url output.
12 years ago
Ben Noordhuis
43ccd6aa76
Update AUTHORS
12 years ago
Corey Richardson
1c7f8cac9e
Fix IPv6 address parsing.
...
Fixes #133 .
12 years ago
Ben Noordhuis
cd01361819
test: fix buffer overflow in large header test
...
Fixes #136 .
12 years ago
Ben Noordhuis
14d42be21a
test: use error-checking strncat/strncpy replacements
12 years ago
Ben Noordhuis
245f6f0078
Remove HTTP_PARSER_DEBUG macro.
...
Remove the HTTP_PARSER_DEBUG macro for two reasons:
* It changes the size of struct http_parser, resulting in spurious memory
corruption bugs if part of your application is built with HTTP_PARSER_DEBUG=1
and other parts with HTTP_PARSER_DEBUG=0.
* It's a debugging tool for maintainers. It should never have been exposed in
the API in the first place.
12 years ago
Peter Faiman
b4fc777dc6
fix old references to on_path
12 years ago
Ben Noordhuis
02f06ff290
gitignore: ignore gyp build dir
12 years ago
Ben Noordhuis
a0fd3323dd
build: add default build flags to gyp script
12 years ago
Ben Noordhuis
ce6d7efff7
build: compile strict and non-strict tests
...
Make gyp compile the library and the test suite in both strict and non-strict
mode.
Fixes a failing test where the test was strict but the library was not.
Fixes #129 .
12 years ago
Ben Noordhuis
3fb4e061ec
Bump to version 2.0
12 years ago
Ben Noordhuis
0e67f6b532
Update AUTHORS
12 years ago
BogDan Vatra
1ca7de5258
Add "int http_body_is_final(const http_parser *parser)" method.
...
It's useful to check if the current chunk is the last one.
12 years ago
Ben Noordhuis
ad3b631d4f
Turn normal_url_char into a bit array.
...
Makes http_parser slightly more cache friendly.
12 years ago
Ben Noordhuis
4e1a6ab655
Update AUTHORS
12 years ago
Ben Noordhuis
add3018ce7
Add bounds check to http_method_str().
12 years ago
Ben Noordhuis
9f92347851
Make http_should_keep_alive() const correct.
12 years ago
Ben Noordhuis
2b7e87cc77
Fix bad http_should_keep_alive() comment.
13 years ago
Peter Griess
ba5acd532f
Merge pull request #104 from simonz05/patch-1
...
Correct misspelling in http_parser.h
13 years ago
Peter Griess
fb3eeb7d05
Merge pull request #118 from bpaquet/master
...
#116 : refactor to allow url with basic auth a:b@toto.com
13 years ago
Bertrand Paquet
a828edaf6a
Add a comment
13 years ago
Bertrand Paquet
50faa793f4
Coding style : remove space before ++
13 years ago
Bertrand Paquet
148984cd8d
Rename s_req_host* to be compliant with RFC 2396
13 years ago
Bertrand Paquet
7f1b191d6f
Minor speed improvment
13 years ago
Bertrand Paquet
1d3a0ec752
Use fixed_length printf instead of copying data and do null-termination
13 years ago
Bertrand Paquet
d2ce562338
Use new state instead of pointer
13 years ago
Bertrand Paquet
bb29f43741
Coding style improvment
13 years ago
James McLaughlin
8ee3b0dc93
Make size_t and ssize_t Windows typedefs more appropriate
13 years ago
Bertrand Paquet
e42aa93b52
Add tests
13 years ago
Bertrand Paquet
f6f761596e
Small refactoring, add edge cases
13 years ago
Bertrand Paquet
fe31fe8bf0
Add tests on user info
13 years ago
Bertrand Paquet
7965096276
User info implementation
13 years ago
Bertrand Paquet
ed8475d49f
Refactor host parsing to allow basic auth management
13 years ago
Bertrand Paquet
624a4b44a9
Add url_parser tool
13 years ago
Bertrand Paquet
9dfaa67f2b
Check host on url with hostname:port
13 years ago