f7b31c7db7
added semaphore and shared memory to print without superposition between parent and child process
segfolt
hugogogo2022-08-22 14:52:31 +02:00
5225e3258b
lots of log message and fixed bad_file_descriptor issue
hugogogo2022-08-22 01:50:28 +02:00
469eca8aa9
clean comment and stuff
lperrey2022-08-18 12:44:09 +02:00
9b0fcc1520
littles adjustements but still no solution to the main problem
lperrey2022-08-18 10:48:57 +02:00
1ed4128afc
more script tests + add cgi checks for error in script output + fix script_path relative to absolute + cgi makefile more efficient
Hugo LAMY2022-08-16 18:24:49 +02:00
ff443c80b1
_exec_script() close fd and reset signal + somes more adjustements in _exec_script() + rough notes for non blocking CGI
LuckyLaszlo2022-08-16 06:50:20 +02:00
f8c6923c6d
fixed CGI alloc + handle unknow status from script
lperrey2022-08-16 01:46:24 +02:00
8c2aff6c6b
modif and added several scipts for testing cgi + modif html page for script tests + script output not added to response in case of http error
Hugo LAMY2022-08-16 01:39:46 +02:00
e691c517e8
Merge branch 'master' of bitbucket.org:LuckyLaszlo/webserv
Eric LAZO2022-08-16 00:26:55 +02:00
973388bf97
Tester is much better, ready for tests to be added
Eric LAZO2022-08-16 00:26:28 +02:00
fe89be65f6
Tested and fixed server_name resolution
LuckyLaszlo2022-08-15 19:31:43 +02:00
1c13e254d5
basic cgi script test working
hugogogo2022-08-15 18:26:41 +02:00
3fe37ea451
DELETE method tested and fixed + added 404 for directories without index and autoindex + minors adjustements
LuckyLaszlo2022-08-15 18:16:11 +02:00
a284e400c1
changed client_body_limit (now in KB) + multiples little adjusts
lperrey2022-08-15 02:14:27 +02:00
9ac84f706d
fix error in check scrip output length
Hugo LAMY2022-08-15 02:07:06 +02:00
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
Hugo LAMY2022-08-15 01:52:36 +02:00
aa03880601
still working on telnet tester
Eric LAZO2022-08-15 01:47:37 +02:00
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
hugo4
Hugo LAMY2022-08-15 00:24:08 +02:00
8000668b36
Merge branch 'eric_config_parser'
Eric LAZO2022-08-14 21:42:08 +02:00
21efbef86a
better telnet tester, merging
Eric LAZO2022-08-14 21:41:46 +02:00
a20a5eff27
Merge branch 'master' of bitbucket.org:LuckyLaszlo/webserv
Hugo LAMY2022-08-14 01:09:25 +02:00
db4c7468cc
is_cgi function is back and is working + in utils added function eval_file_mode(), it returns http errors codes about file
Hugo LAMY2022-08-14 01:05:20 +02:00
b0949615c8
fixed mistake in _read_request() + changes to some log output
LuckyLaszlo2022-08-13 19:17:32 +02:00
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
hugogogo2022-08-13 14:38:50 +02:00
defb2ada61
fixed pbm in extract_line : delete the line and the newline sequence character + fixed pbm n _cgi_pos : last return is npos, not pos
hugogogo2022-08-13 12:39:05 +02:00
ebd0fda52c
more mucking about with telnet
Me2022-08-13 05:57:50 +02:00
c3240b8618
i found a mistake but still doesn't work...
Me2022-08-13 03:52:33 +02:00
3495ff19a8
mucked about with Telnet
Me2022-08-13 03:01:41 +02:00
058701f657
upload_form.html + need to add multipart/form-data parsing
LuckyLaszlo2022-08-13 01:15:59 +02:00
a69273b88e
fixed an autoindex issue, working on uploading files
Me2022-08-12 23:45:13 +02:00
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
hugogogo2022-08-12 23:31:59 +02:00
4d395088d0
trying to get submit form to work...
Eric LAZO2022-08-12 20:08:49 +02:00
c225063361
script output fields is checked for duplicate
hugogogo2022-08-12 11:45:06 +02:00
400efbe720
Wip chunked decoding + Need to test normal body parsing + path_is_valid() renamed eval_file_type() + replaced atoi with strtol/strtoul
LuckyLaszlo2022-08-12 05:50:00 +02:00
a1fff0f8c2
added colors, for print_special + renamed client's public function parse_request() into parse_request_headers()
hugogogo2022-08-11 17:46:27 +02:00
ad2b5a629a
correct extract_line to avoid duplicate with erase or substr, and to resolve pbm of returning trailing delim
hugogogo2022-08-11 17:33:42 +02:00
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
Me2022-08-11 02:01:24 +02:00