Commit Graph

38 Commits

Author SHA1 Message Date
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
LuckyLaszlo
84babec82b added multipart upload file,
it works, but need some adjustements,
refactoring and testing
2022-08-14 06:25:06 +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
hugogogo
c225063361 script output fields is checked for duplicate 2022-08-12 11:45:06 +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
hugogogo
1d67e6988d http message parsin wip but really better 2022-08-11 00:28:01 +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
hugogogo
53a548e314 wip script output verification working
+ trim secure pos segfault
+ concat script message with server message
2022-08-09 14:57:05 +02:00
hugogogo
3dad938e3c add extern function for http message parsing
+ wip compare fields server and script
+ g tout cassey
2022-08-09 11:19:46 +02:00
LuckyLaszlo
a44b9b493a split respone.cpp file 2022-08-08 20:36:01 +02:00
hugogogo
972f52ebc8 client variables are const ref 2022-08-08 15:36:16 +02:00
hugogogo
63ff42b57d client variables are made const 2022-08-06 19:58:09 +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
LuckyLaszlo
8f167d85f3 wip integration of client.request and ServerConfig
+ Client get return reference
+ wip binary flags for http_method
+ moved config parser files
2022-08-02 21:11:54 +02:00
LuckyLaszlo
5aabeb6b46 removed useless files
+ MethodType renamed to http_method, and moved to utils.hpp
+ operator= overload for Client moved to Client.cpp
2022-08-02 14:26:07 +02:00
hugogogo
f252887d53 merge from hugo, add parsing requests and wip cgi 2022-08-01 20:41:07 +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
d4a001e8ba resolved merge conflicts, now ConfigParser is even more intertwined with other parts 2022-07-31 16:30:14 +02:00
hugogogo
537572e2d0 changed itoa to c++ style and put it in utils, and change utils dependencies to not depend on webserv 2022-07-31 13:19:22 +02:00
hugogogo
68af40a79f clean makefile includes 2022-07-31 12:05:28 +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
2d91b704c3 I think i have successfully merged origin/master into eric_config_parser, seems fine 2022-07-30 21:36:16 +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
001ad6becf Still trying to get it to compile 2022-07-29 23:29:19 +02:00
LuckyLaszlo
36868afa30 splitted Webserv.cpp 2022-07-29 17:16:26 +02:00
LuckyLaszlo
e5633a30e4 perror() message fix
+ created dir for next split of Webserv.cpp
2022-07-29 16:05:43 +02:00
LuckyLaszlo
ab8dfed779 basic HTTP GET response 2022-07-29 15:52:43 +02:00
hugogogo
8fb48bcc58 Makefile work with dependencies 2022-07-29 11:06:35 +02:00
hugogogo
04589e123b Makefile work with dependencies 2022-07-29 11:04:21 +02:00
Me
dfb8be3017 Merge remote-tracking branch 'origin/master' into eric_config_parser
I seem to have fixed the merge errors
2022-07-25 21:05:16 +02:00
Me
35ac55b5e8 still working on integrating the config file stuff 2022-07-25 21:00:04 +02:00
LuckyLaszlo
dcf94c2c61 Client struct, signal wip, refactoring 2022-07-25 05:28:44 +02:00
LuckyLaszlo
eb5e719750 change to poll() call 2022-07-12 19:37:47 +02:00
LuckyLaszlo
a9b1843eba basic tcp connection. 2022-07-12 00:51:43 +02:00
LuckyLaszlo
8a7204b7a5 init 2022-07-07 20:13:14 +02:00