JustAnotherArchivist
b51a7c9514
Fall back to response length when there is neither Content-Length nor Transfer-Encoding in an HTTP/1.1 response
1 год назад
JustAnotherArchivist
93e4140295
Add support for malformed LF HTTP responses
1 год назад
JustAnotherArchivist
9879db1195
Proper HTTP/1.0 support
HTTP/1.0 does not mandate a Content-Length header in responses since keep-alive connections aren't a thing; the connection closure then signals the end of the response.
This change requires the URL metadata line for processing HTTP/1.0 data, so it plays well with `warc-dump-responses --meta`.
1 год назад
JustAnotherArchivist
a1e2e26a3f
Fix warning
1 год назад
JustAnotherArchivist
2163d745fd
Fix warning
1 год назад
JustAnotherArchivist
ccafb1eb51
Only search within headers
1 год назад
JustAnotherArchivist
427884af5e
Fix warnings
1 год назад
JustAnotherArchivist
448e624b65
Fix UB in memcasemem when no match is found
1 год назад
JustAnotherArchivist
887c063533
Add support for non-standard header capitalisation
1 год назад
JustAnotherArchivist
af25c108ba
Add support for HTTP 1.0
1 год назад
JustAnotherArchivist
2d4546f274
Fix errors on sscanf
%n takes a signed int so is incompatible with size_t; further, sscanf could in theory return a negative value (EOF).
1 год назад
JustAnotherArchivist
10c7ab0889
Fix off-by-one error for non-chunked responses
1 год назад
JustAnotherArchivist
761606a5be
Add options to pass the URL context out through warc-dump-responses and http-response-bodies
1 год назад
JustAnotherArchivist
a79291e081
Fix debug output for small/empty buffer
1 год назад
JustAnotherArchivist
1737842841
Add http-response-bodies
1 год назад