Commit Graph

  • 27b4f96618 parsing headers is allright now + adding error codes in readme and in comments in client hugogogo 2022-08-11 00:41:17 +02:00
  • 0b51d13f13 a few more things for location picker Me 2022-08-11 00:36:24 +02:00
  • 1d67e6988d http message parsin wip but really better hugogogo 2022-08-11 00:28:01 +02:00
  • 11f71ea74f wip parsing first line http message with new utils functions hugogogo 2022-08-10 20:27:48 +02:00
  • 9a379c835d correction of trim in case of str only fill with delim char + added a new split, that also does trim, to split without counting newlines hugogogo 2022-08-10 20:01:23 +02:00
  • 360c27df5f done root substitution + autoindex/index adjustement LuckyLaszlo 2022-08-10 19:59:05 +02:00
  • c7905ebd19 changed del_line_in_str to etract_line hugogogo 2022-08-10 17:12:28 +02:00
  • 17230ccc42 in cgi exec add save stdin and out hugogogo 2022-08-10 16:24:24 +02:00
  • 69c1a6f6bf A Much better way of picking locations Me 2022-08-10 16:14:21 +02:00
  • 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) LuckyLaszlo 2022-08-10 07:19:05 +02:00
  • 58f67bf42e fixed a tiny mistake in location picker Me 2022-08-10 02:07:17 +02:00
  • f7f3e42b15 Merge remote-tracking branch 'origin/master' into eric_config_parser Me 2022-08-10 01:59:39 +02:00
  • 8e90221058 location picker works, needs to be tested more tho Me 2022-08-10 01:59:10 +02:00
  • f393aa46bf BUG: "Bad file descriptor" in _close_all_clients() LuckyLaszlo 2022-08-09 22:29:35 +02:00
  • 1eb989a3fd _determine_location() new version (to complete and test) LuckyLaszlo 2022-08-09 20:47:21 +02:00
  • 56f4cf7e15 Eric notes to self Me 2022-08-09 20:06:28 +02:00
  • 482a38952e Merge branch 'hugo2' hugogogo 2022-08-09 15:54:40 +02:00
  • ef034a356b Merge branch 'master' of bitbucket.org:LuckyLaszlo/webserv hugogogo 2022-08-09 14:59:39 +02:00
  • 53a548e314 wip script output verification working + trim secure pos segfault + concat script message with server message hugo2 hugogogo 2022-08-09 14:57:05 +02:00
  • 3dad938e3c add extern function for http message parsing + wip compare fields server and script + g tout cassey hugogogo 2022-08-09 11:19:46 +02:00
  • 1d3cdef7a6 Merge remote-tracking branch 'origin/master' into eric_config_parser Me 2022-08-09 02:38:09 +02:00
  • 97c90236b9 cgi_ext, redirect and upload_repo now functional in config, fixed location picker, some cleanup Me 2022-08-09 02:37:28 +02:00
  • 643b09c4f7 _request() and _response() refactoring + Wip redirection (weird behavior) + 505 HTTP Version Not Supported LuckyLaszlo 2022-08-09 01:46:59 +02:00
  • a44b9b493a split respone.cpp file LuckyLaszlo 2022-08-08 20:36:01 +02:00
  • ae9a9b37f1 added test form html in www hugogogo 2022-08-08 18:22:54 +02:00
  • e1a68bc3e4 changes var in client hugogogo 2022-08-08 18:06:41 +02:00
  • 7fdc81f5f4 a bit messy but merged index and autoindex work Me 2022-08-08 17:13:55 +02:00
  • f10931042f rewrite readme cgi todo list hugo hugogogo 2022-08-08 16:16:11 +02:00
  • 972f52ebc8 client variables are const ref hugogogo 2022-08-08 15:36:16 +02:00
  • 0a72778c8c successful merge? Me 2022-08-08 15:25:16 +02:00
  • da1f4b6e37 cgi exec compare with file method hugogogo 2022-08-08 13:20:06 +02:00
  • 78c3ffa456 readme layout hugogogo 2022-08-08 10:31:36 +02:00
  • 988e15c738 readme layout hugogogo 2022-08-08 10:30:20 +02:00
  • 02cfdf43bc bad_alloc handling + map.insert() replace map.operator[] for init, more efficient LuckyLaszlo 2022-08-08 04:24:03 +02:00
  • f87024c32f further tested autoindex, and i got a .css stylesheet to load from a folder outside of /www, pretty neat :) Me 2022-08-08 04:02:53 +02:00
  • 9ee7205b95 Index and Autoindex work nicely, standarized way paths for root and location path are stored in config, still needs a little polishing prolly Me 2022-08-08 02:50:37 +02:00
  • cf69168a84 some cleanup of config stuff Me 2022-08-07 22:54:58 +02:00
  • 63365a9067 cgi_script read and write on a string hugogogo 2022-08-07 22:33:39 +02:00
  • 94852babc6 autoindex is working, a few things to iron out be we well on our way Me 2022-08-07 22:25:24 +02:00
  • f777441edf autoindex in progress but need to check stuff on master branch Me 2022-08-07 20:37:53 +02:00
  • 1ccf61bc68 assign server and location to client in _read_request() LuckyLaszlo 2022-08-07 17:37:24 +02:00
  • 7ecfc22c7b script path is found and fill hugogogo 2022-08-07 15:51:36 +02:00
  • e0fd743b5b key fields headers in map are in lowercase + getters for this map are case insensitive + change request fiel 'path' for 'uri', 'query', and 'abs_path' hugogogo 2022-08-07 13:06:16 +02:00
  • 4ab099ee4d redone _read_request(). Should work with any BUFSIZE. + WIP in some aspects. Need to adjust parse_request() among others things. + update memo.txt LuckyLaszlo 2022-08-07 05:41:01 +02:00
  • 4870b2c05d Location sorter works, fixed the compilation error i was having on this branch, now working on autoindex Me 2022-08-07 03:24:49 +02:00
  • 8ec1353723 fixed response.append(body) problem. + File I/O working but maybe not perfect (it seems complicated to do it with std::filebuf) + fixed Content-Type for unknown file extension LuckyLaszlo 2022-08-07 01:38:33 +02:00
  • 4b1baca126 merged, seems fine Me 2022-08-07 01:10:05 +02:00
  • 63ff42b57d client variables are made const hugogogo 2022-08-06 19:58:09 +02:00
  • 08928c46fc Merge branch 'master' of bitbucket.org:LuckyLaszlo/webserv hugogogo 2022-08-06 11:35:12 +02:00
  • 6f171ec07b wip cgi env variables hugogogo 2022-08-06 11:34:48 +02:00
  • b0df37df60 fix Client uninitialised values LuckyLaszlo 2022-08-06 04:50:19 +02:00
  • 05c7faf1f3 server search for client completed with host:port LuckyLaszlo 2022-08-06 04:46:40 +02:00
  • 79bdc1ecbf ALL_METHODS renamed to ANY_METHODS LuckyLaszlo 2022-08-05 23:01:06 +02:00
  • 6f0c3b4d6d kinda successful merge, weird tho, didn't go as smoothly with VScode as usual... Me 2022-08-05 22:25:11 +02:00
  • 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 Me 2022-08-05 21:46:46 +02:00
  • 914d4cb0c0 HTML_ERROR Macro reformat LuckyLaszlo 2022-08-05 04:44:23 +02:00
  • e596d8f093 MIME types map for correct Content-type header + append body to string cause encoding problem, so added temp buf in Client. LuckyLaszlo 2022-08-05 04:24:15 +02:00
  • 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 Me 2022-08-05 03:42:42 +02:00
  • 3102253092 wip DELETE, POST (no cgi, need testing) LuckyLaszlo 2022-08-04 20:56:37 +02:00
  • f7e6b61811 LocationConfig sorter works as intended, tho should prolly check things thoroughly later Eric LAZO 2022-08-04 19:33:38 +02:00
  • fce1bcbece well, the location sorter is better, but i don't understand why, kinda by accident, will try to figure it out Me 2022-08-04 16:45:12 +02:00
  • a9ada4cb28 CRLF macro LuckyLaszlo 2022-08-04 14:45:16 +02:00
  • 0026106bf6 default and custom error pages response + refactoring in response.cpp (functions split) + added Client::clear() + added replace_all_substr() in utils.cpp LuckyLaszlo 2022-08-04 02:52:31 +02:00
  • ca8427262d wrote a tiny thing to improve the operator< overlaod, will test tomorrow Me 2022-08-04 01:41:19 +02:00
  • 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... Me 2022-08-04 01:09:40 +02:00
  • b0c524a8bd Merge remote-tracking branch 'origin/master' into eric_config_parser let's get it done Me 2022-08-03 18:56:54 +02:00
  • fef26aee5b getting ready to pull Me 2022-08-03 18:56:34 +02:00
  • 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 LuckyLaszlo 2022-08-03 18:39:22 +02:00
  • 164f717e00 added informations on cgi from rfc 3875 hugogogo 2022-08-03 00:02:25 +02:00
  • 83536ee8ad syntax layout hugogogo 2022-08-03 00:00:54 +02:00
  • 6791b13a52 syntax layout hugogogo 2022-08-02 23:58:09 +02:00
  • 21283e2493 syntax layout hugogogo 2022-08-02 23:50:14 +02:00
  • 6c0dd771c3 syntax layout hugogogo 2022-08-02 23:49:25 +02:00
  • c331b69600 cgi explanation reademe layout hugogogo 2022-08-02 23:42:45 +02:00
  • 41b5e57800 finish to read cgi rfc hugogogo 2022-08-02 23:39:53 +02:00
  • d79281751a cgi rfc parsing into readme hugogogo 2022-08-02 21:16:09 +02:00
  • 8f167d85f3 wip integration of client.request and ServerConfig + Client get return reference + wip binary flags for http_method + moved config parser files LuckyLaszlo 2022-08-02 21:11:54 +02:00
  • b30a3a1407 starting to find usefull informations in cgi rfc hugogogo 2022-08-02 16:33:29 +02:00
  • 5aabeb6b46 removed useless files + MethodType renamed to http_method, and moved to utils.hpp + operator= overload for Client moved to Client.cpp LuckyLaszlo 2022-08-02 14:26:07 +02:00
  • f252887d53 merge from hugo, add parsing requests and wip cgi hugogogo 2022-08-01 20:41:07 +02:00
  • 76e7960ad7 deleted old request parsing functions hugo_old hugogogo 2022-08-01 20:35:42 +02:00
  • b1158fd33b merged from master and relocate headers inside srcs hugogogo 2022-08-01 20:33:06 +02:00
  • 979a3d20b8 wip cgi handling, client contains it's own privates functions to handle request headers and body hugogogo 2022-08-01 19:30:07 +02:00
  • 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 Me 2022-08-01 00:49:25 +02:00
  • 031932e887 added trim in utils, added parse request header, mv pdf in docs hugogogo 2022-08-01 00:07:51 +02:00
  • 19f7493aac Fixed the includes Me 2022-07-31 16:53:22 +02:00
  • d4a001e8ba resolved merge conflicts, now ConfigParser is even more intertwined with other parts Me 2022-07-31 16:30:14 +02:00
  • 0d81c76e1a Merge branch 'master' of bitbucket.org:LuckyLaszlo/webserv hugogogo 2022-07-31 13:19:32 +02:00
  • 537572e2d0 changed itoa to c++ style and put it in utils, and change utils dependencies to not depend on webserv hugogogo 2022-07-31 13:19:22 +02:00
  • ea3f3a390a bugfix invalid ptr in "ev.data.ptr" after vector<Client> resize/erase + persistent connections reintroduced + bugfix crash if invalid path in request LuckyLaszlo 2022-07-31 13:19:11 +02:00
  • cbb1d12d54 modified itoa and its headers hugogogo 2022-07-31 12:59:27 +02:00
  • af8dc072c1 added setsockopt to avoid reusability issue on socket fd hugogogo 2022-07-31 12:31:55 +02:00
  • 2a69e14db2 wip atoi hugogogo 2022-07-31 12:30:35 +02:00
  • 68af40a79f clean makefile includes hugogogo 2022-07-31 12:05:28 +02:00
  • 122032a140 merge master hugogogo 2022-07-31 12:02:20 +02:00
  • 5d0432188d clean webserv includes hugogogo 2022-07-31 11:45:59 +02:00
  • 23844a0d55 clean webserv includes hugogogo 2022-07-31 11:05:55 +02:00
  • 0cb49ffa5e started adding more checks to the parser, some things settled, but mostly i have a lot more questions... Me 2022-07-31 04:20:04 +02:00
  • e5c2869172 Review parsing Eric and Luke. Combined the config parser with Webserv class. LuckyLaszlo 2022-07-31 00:27:48 +02:00
  • 2d91b704c3 I think i have successfully merged origin/master into eric_config_parser, seems fine Me 2022-07-30 21:36:16 +02:00