Commit graph

86 commits

Author SHA1 Message Date
Nick Krichevsky 31a19298c3 Add support for http:// urls 2018-09-02 21:38:55 -04:00
Nick Krichevsky 28f5448b49 Add graceful handling of failed requests 2018-09-02 20:58:06 -04:00
Nick Krichevsky 735c399405 Add support for reading until EOF 2018-09-02 20:37:34 -04:00
Nick Krichevsky a958916a41 Fix bug where read cursor would point to the wrong location in memory 2018-09-02 19:16:20 -04:00
Nick Krichevsky 475b162389 Remove debug prints 2018-09-02 15:00:18 -04:00
Nick Krichevsky 11bf43b52f Add TODO 2018-09-02 01:34:36 -04:00
Nick Krichevsky 5bbda3dd24 Make content-length not buggy as hell 2018-09-02 01:26:01 -04:00
Nick Krichevsky 30fe078447 Add ability to read content-lengthd requests 2018-09-01 23:27:42 -04:00
Nick Krichevsky a4062655c1 Add missing doc comments 2018-09-01 21:33:27 -04:00
Nick Krichevsky 31517671eb Strip leading whitespace from header values 2018-09-01 21:28:52 -04:00
Nick Krichevsky b500854c1a Add todo about line foldering 2018-09-01 20:38:17 -04:00
Nick Krichevsky 96efb3c8aa Implement get_read_info 2018-09-01 20:29:04 -04:00
Nick Krichevsky 8beb3f7c02 Change headercmp to use const for header type 2018-09-01 20:17:27 -04:00
Nick Krichevsky 35b88e235d Implement case_insensitive_strcmp 2018-09-01 20:00:53 -04:00
Nick Krichevsky 5afa947d89 Add headercmp 2018-09-01 19:35:56 -04:00
Nick Krichevsky 0d211539f3 Modify get_all_remote_parts to read headers 2018-09-01 17:33:39 -04:00
Nick Krichevsky ec2da2168b Store the number of bytes read for the line 2018-09-01 16:53:11 -04:00
Nick Krichevsky 93ff826f67 Don't store new headers unless ones weren't available 2018-09-01 16:44:04 -04:00
Nick Krichevsky 529b86dade Write start line when found 2018-09-01 16:41:28 -04:00
Nick Krichevsky 9d5bc143a2 Implement read_line 2018-09-01 16:26:44 -04:00
Nick Krichevsky 20d04d8bd7 Add get_line_terminator to socket_helper 2018-09-01 16:26:41 -04:00
Nick Krichevsky 68f769cf97 Add headers type 2018-09-01 16:26:37 -04:00
Nick Krichevsky 533f695dcb Rename http_message.h to http_types.h 2018-09-01 16:26:30 -04:00
Nick Krichevsky b89ec823b8 Free basic requests using free_basic_request 2018-08-29 18:50:23 -04:00
Nick Krichevsky e93c07a0a2 Use copied strings instead of consts for http_message 2018-08-29 18:46:49 -04:00
Nick Krichevsky eadb440bcb Fix const warning in get_parts 2018-08-29 18:24:15 -04:00
Nick Krichevsky b355ddbec3 Fix buffer overwriting error in building request 2018-08-29 18:20:47 -04:00
Nick Krichevsky 1c469ad845 Add connecting to socket 2018-08-28 00:08:03 -04:00
Nick Krichevsky 65fdb4ad69 Change port to be an int 2018-08-27 13:16:59 -04:00
Nick Krichevsky 69258376a9 Make http message field consts 2018-08-27 12:53:17 -04:00
Nick Krichevsky 5824b8f536 Add build_basic_request_method 2018-08-27 12:53:17 -04:00
Nick Krichevsky 19449b3f1e Add some basic argparsing 2018-08-27 12:27:59 -04:00
Nick Krichevsky afd03376fe Add function to read all parts of socket 2018-08-27 10:48:28 -04:00
Nick Krichevsky cb658488c5 Add http_message 2018-08-27 10:48:21 -04:00
Nick Krichevsky d814b554d0 Add makefile 2018-08-27 10:30:27 -04:00
Nick Krichevsky 843ad7b953 Add gitignore 2018-08-27 10:24:30 -04:00