Commit Graph

37 Commits

Author SHA1 Message Date
Eric LAZO
c9c8946e70 merge, the whole thing is cleaner 2022-08-15 19:54:26 +02:00
LuckyLaszlo
fe89be65f6 Tested and fixed server_name resolution 2022-08-15 19:31:43 +02:00
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
Hugo LAMY
b9d4317f51 in _is_cgi, fix error in return http error status
+ fix error in checking script output : reverse order between calcul of content_length and erasing empty line
2022-08-15 01:52:36 +02:00
Eric LAZO
aa03880601 still working on telnet tester 2022-08-15 01:47:37 +02:00
Hugo LAMY
a6bfea3b56 Merge branch 'hugo4' 2022-08-15 00:32:47 +02:00
Hugo LAMY
f6f63931ad litle fix in utils trim
+ added 2 functions to check script output
+ created a html page with 4 forms for tests
+ created 2 cpp forms, with and without creating header content-length
2022-08-15 00:24:08 +02:00
Eric LAZO
21efbef86a better telnet tester, merging 2022-08-14 21:41:46 +02:00
LuckyLaszlo
37c5be9ffc Merge branch 'master' of bitbucket.org:LuckyLaszlo/webserv 2022-08-14 06:32:07 +02:00
LuckyLaszlo
ce0a004d28 Le merge / 20 2022-08-14 06:30:27 +02:00
LuckyLaszlo
84babec82b added multipart upload file,
it works, but need some adjustements,
refactoring and testing
2022-08-14 06:25:06 +02:00
hugogogo
285f2d049f + in fill_script_path() : scipt_path and script_info are filled, removing leadin dot
+ in _cgi_pos() : check validity of extension if it's only alpha characters
+ severall pbm appears
2022-08-13 14:38:50 +02:00
Me
3495ff19a8 mucked about with Telnet 2022-08-13 03:01:41 +02:00
Me
a69273b88e fixed an autoindex issue, working on uploading files 2022-08-12 23:45:13 +02:00
hugogogo
f17bc9fa58 wip test path cgi :
- _cgi_pos seems to be ok
  - construct url from return is not implemented yet
+ renamed script with extension .php and .cpp
2022-08-12 23:31:59 +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
69c1a6f6bf A Much better way of picking locations 2022-08-10 16:14:21 +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
Me
8e90221058 location picker works, needs to be tested more tho 2022-08-10 01:59:10 +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
Me
f87024c32f further tested autoindex, and i got a .css stylesheet to load from a folder outside of /www, pretty neat :) 2022-08-08 04:02:53 +02:00
Me
9ee7205b95 Index and Autoindex work nicely, standarized way paths for root and location path are stored in config, still needs a little polishing prolly 2022-08-08 02:50:37 +02:00
Me
94852babc6 autoindex is working, a few things to iron out be we well on our way 2022-08-07 22:25:24 +02:00
Me
f777441edf autoindex in progress but need to check stuff on master branch 2022-08-07 20:37:53 +02:00
Me
f7dc5ccde4 ok Location sorting and processing is finally working as expected, still a few things to add like error_pages but will get there soon 2022-08-05 21:46:46 +02:00
Me
9ac14aa1aa Well we learned a lot from Nginx, starting to incorporate some, but hoping for feedback before i do most of that, instead worked on improving the location sorter and checking that locations paths are valid, close but not quite done 2022-08-05 03:42:42 +02:00
Me
fce1bcbece well, the location sorter is better, but i don't understand why, kinda by accident, will try to figure it out 2022-08-04 16:45:12 +02:00
Me
3d46505411 well, restructured things a bit, but mostly started trying to sort LocationConfigs, it is sort of going well, good ideas, implementations is still a bit lacking... 2022-08-04 01:09:40 +02:00
Me
b0c524a8bd Merge remote-tracking branch 'origin/master' into eric_config_parser
let's get it done
2022-08-03 18:56:54 +02:00
Me
fef26aee5b getting ready to pull 2022-08-03 18:56:34 +02:00
LuckyLaszlo
6f5b28dd93 wip, need somes changes in ConfigParser.
+ _determine_location()
+ http_method changes
+ http_method switch in _construct_response()
+ ConfigParser::_str_to_method_type() moved to global utils.cpp
2022-08-03 18:39:22 +02:00
Me
16af16084b ok, so we added a lot more checks for the config file, and some post processing, still needs a few more things, but now some defaults are set too, basically it works under most circumstances 2022-08-01 00:49:25 +02:00
Me
0cb49ffa5e started adding more checks to the parser, some things settled, but mostly i have a lot more questions... 2022-07-31 04:20:04 +02:00
LuckyLaszlo
e5c2869172 Review parsing Eric and Luke.
Combined the config parser with Webserv class.
2022-07-31 00:27:48 +02:00
Me
665623c7ee well i think i have the Config Parser working and pretty clean, there might be a few tweaks here and there but looks good, now to integrate it with Webserv 2022-07-30 21:08:21 +02:00
Me
35ac55b5e8 still working on integrating the config file stuff 2022-07-25 21:00:04 +02:00