70 Commits

Author SHA1 Message Date
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
hugogogo
ae9a9b37f1 added test form html in www 2022-08-08 18:22:54 +02:00
hugogogo
e1a68bc3e4 changes var in client 2022-08-08 18:06:41 +02:00
hugogogo
f10931042f rewrite readme cgi todo list 2022-08-08 16:16:11 +02:00
hugogogo
972f52ebc8 client variables are const ref 2022-08-08 15:36:16 +02:00
hugogogo
da1f4b6e37 cgi exec compare with file method 2022-08-08 13:20:06 +02:00
hugogogo
78c3ffa456 readme layout 2022-08-08 10:31:36 +02:00
hugogogo
988e15c738 readme layout 2022-08-08 10:30:20 +02:00
hugogogo
63365a9067 cgi_script read and write on a string 2022-08-07 22:33:39 +02:00
hugogogo
7ecfc22c7b script path is found and fill 2022-08-07 15:51:36 +02:00
hugogogo
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'
2022-08-07 13:07:50 +02:00
hugogogo
63ff42b57d client variables are made const 2022-08-06 19:58:09 +02:00
hugogogo
08928c46fc Merge branch 'master' of bitbucket.org:LuckyLaszlo/webserv 2022-08-06 11:35:12 +02:00
hugogogo
6f171ec07b wip cgi env variables 2022-08-06 11:34:48 +02:00
LuckyLaszlo
b0df37df60 fix Client uninitialised values 2022-08-06 04:50:19 +02:00
LuckyLaszlo
05c7faf1f3 server search for client completed with host:port 2022-08-06 04:46:40 +02:00
LuckyLaszlo
79bdc1ecbf ALL_METHODS renamed to ANY_METHODS 2022-08-05 23:01:06 +02:00
LuckyLaszlo
914d4cb0c0 HTML_ERROR Macro reformat 2022-08-05 04:44:23 +02:00
LuckyLaszlo
e596d8f093 MIME types map for correct Content-type header
+ append body to string cause encoding problem, so added temp buf in Client.
2022-08-05 04:24:15 +02:00
LuckyLaszlo
3102253092 wip DELETE, POST (no cgi, need testing) 2022-08-04 20:56:37 +02:00
LuckyLaszlo
a9ada4cb28 CRLF macro 2022-08-04 14:45:16 +02:00
LuckyLaszlo
0026106bf6 default and custom error pages response
+ refactoring in response.cpp (functions split)
+ added Client::clear()
+ added replace_all_substr() in utils.cpp
2022-08-04 02:52:31 +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
hugogogo
164f717e00 added informations on cgi from rfc 3875 2022-08-03 00:02:25 +02:00
hugogogo
83536ee8ad syntax layout 2022-08-03 00:00:54 +02:00
hugogogo
6791b13a52 syntax layout 2022-08-02 23:58:09 +02:00
hugogogo
21283e2493 syntax layout 2022-08-02 23:50:14 +02:00
hugogogo
6c0dd771c3 syntax layout 2022-08-02 23:49:25 +02:00
hugogogo
c331b69600 cgi explanation reademe layout 2022-08-02 23:42:45 +02:00
hugogogo
41b5e57800 finish to read cgi rfc 2022-08-02 23:39:53 +02:00
hugogogo
d79281751a cgi rfc parsing into readme 2022-08-02 21:16:09 +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
hugogogo
b30a3a1407 starting to find usefull informations in cgi rfc 2022-08-02 16:33:29 +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
19f7493aac Fixed the includes 2022-07-31 16:53:22 +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
0d81c76e1a Merge branch 'master' of bitbucket.org:LuckyLaszlo/webserv 2022-07-31 13:19:32 +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
LuckyLaszlo
ea3f3a390a bugfix invalid ptr in "ev.data.ptr" after vector<Client> resize/erase
+ persistent connections reintroduced
+ bugfix crash if invalid path in request
2022-07-31 13:19:11 +02:00
hugogogo
af8dc072c1 added setsockopt to avoid reusability issue on socket fd 2022-07-31 12:31:55 +02:00
hugogogo
68af40a79f clean makefile includes 2022-07-31 12:05:28 +02:00
hugogogo
5d0432188d clean webserv includes 2022-07-31 11:45:59 +02:00
hugogogo
23844a0d55 clean webserv includes 2022-07-31 11:05:55 +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