Commit Graph

24 Commits

Author SHA1 Message Date
LuckyLaszlo
3fe37ea451 DELETE method tested and fixed
+ added 404 for directories without index and autoindex
+ minors adjustements
2022-08-15 18:16:11 +02:00
lperrey
a284e400c1 changed client_body_limit (now in KB)
+ multiples little adjusts
2022-08-15 02:14:27 +02:00
Eric LAZO
21efbef86a better telnet tester, merging 2022-08-14 21:41:46 +02:00
Eric LAZO
dda32c759a decent start to bash tester 2022-08-13 22:38:31 +02:00
LuckyLaszlo
b0949615c8 fixed mistake in _read_request()
+ changes to some log output
2022-08-13 19:17:32 +02:00
Me
3495ff19a8 mucked about with Telnet 2022-08-13 03:01:41 +02:00
LuckyLaszlo
058701f657 upload_form.html
+ need to add multipart/form-data parsing
2022-08-13 01:15:59 +02:00
Me
a69273b88e fixed an autoindex issue, working on uploading files 2022-08-12 23:45:13 +02:00
LuckyLaszlo
b44acafefe CGI discussion and a little bit of work done 2022-08-12 18:08:39 +02:00
Me
cade79c37f started non hardcoded cgi call 2022-08-12 16:20:50 +02:00
Eric LAZO
52824f30bd merged and added colors to makefile 2022-08-12 15:24:10 +02:00
hugogogo
2a70c6b26d Merge branch 'hugo3'
+ script output verification works (field duplicate and status)
+ parsing_message_http :
  - the file is deleted
  - of the three functions it contained, only one still exist
  - 'parse_http_headers' is now in utils
+ changes in utils :
  - http headers parsing doesn't change key case itself
  - a new function change key case tolower case in map<str, str>
  - added split_trim() that perform a split and a trim at once
  - resolved pbm in trim
  - added print_special to print special char '\r' and '\n'
  - del_line became extract_line, because it returns the deleted line
  - added get line, that does the same without deleting
  - moved http_header in utils, and made it more consistent
+ in Client :
  - parse_request is now named parse_request_headers to work with parse body
  - private function _parse_request_headers is then now _parse_request_fields
    (because it doesn't take care of request first line, but only fields)
  - added a debug function 'print_client'
2022-08-12 14:05:11 +02:00
LuckyLaszlo
400efbe720 Wip chunked decoding
+ Need to test normal body parsing
+ path_is_valid() renamed eval_file_type()
+ replaced atoi with strtol/strtoul
2022-08-12 05:50:00 +02:00
Me
f7c0ff1a8a clean up 2022-08-12 04:38:07 +02:00
hugogogo
3a58b5d921 wip debug comparison fields output script 2022-08-11 19:42:09 +02:00
LuckyLaszlo
ab0bc2c4c0 added timeout response (status 408)
+ added EPOLLERR and EPOLLHUP handling
+ fix root substitution for default "/" location (temp or permanent ?)
+ tested siege a little, seems good
2022-08-11 07:12:13 +02:00
Me
08f6929db9 fixed autoindex 2022-08-11 02:15:40 +02:00
Me
c32fc2c8a2 I really hope this is the last time we fix Location Picker, i think it's good it's pretty elegant, basically set root and location path to never have / at end and that made things easier 2022-08-11 02:01:24 +02:00
Me
0b51d13f13 a few more things for location picker 2022-08-11 00:36:24 +02:00
LuckyLaszlo
360c27df5f done root substitution
+ autoindex/index adjustement
2022-08-10 19:59:05 +02:00
LuckyLaszlo
86f7740984 Moved most request errors check in Client
+ bugfix of "Bad file descriptor" due to empty operator=() in Client
+ added a condition in _determine_location_COOP_FIX()
+ udpate memo.txt
+ need fix for index/autoindex (location "/list" dont work)
2022-08-10 07:19:05 +02:00
hugogogo
482a38952e Merge branch 'hugo2'
+ changed the appropriate getters for client
+ moved the functions to parse the http message
  (first line, headers, and body)
  outside client, in parsing_http_message.cpp
+ resolved some of the throw problems
2022-08-09 15:54:40 +02:00
Me
97c90236b9 cgi_ext, redirect and upload_repo now functional in config, fixed location picker, some cleanup 2022-08-09 02:37:28 +02:00
LuckyLaszlo
a44b9b493a split respone.cpp file 2022-08-08 20:36:01 +02:00