Commit Graph

183 Commits

Author SHA1 Message Date
LuckyLaszlo
ff443c80b1 _exec_script() close fd and reset signal
+ somes more adjustements in _exec_script()
+ rough notes for non blocking CGI
2022-08-16 06:50:20 +02:00
LuckyLaszlo
4602844f5a Multiples minors changes (cgi env, comment, ...) 2022-08-16 04:00:33 +02:00
Hugo LAMY
2a1aec8f1d cgi scrip with 10 tests
+ if http error status, script output not appended to respons
2022-08-16 02:06:26 +02:00
Hugo LAMY
4a0c0ee238 Merge branch 'master' of bitbucket.org:LuckyLaszlo/webserv 2022-08-16 02:04:57 +02:00
lperrey
5627b6d1a2 fixed last commit mistake
+ renamed cgi_script.cpp
2022-08-16 02:04:35 +02:00
Hugo LAMY
5e403fc71c Merge branch 'hugo5' 2022-08-16 01:46:52 +02:00
lperrey
f8c6923c6d fixed CGI alloc
+ handle unknow status from script
2022-08-16 01:46:24 +02:00
Hugo LAMY
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
2022-08-16 01:39:46 +02:00
Eric LAZO
e691c517e8 Merge branch 'master' of bitbucket.org:LuckyLaszlo/webserv 2022-08-16 00:26:55 +02:00
Eric LAZO
973388bf97 Tester is much better, ready for tests to be added 2022-08-16 00:26:28 +02:00
lperrey
48af92b3bc fixed _error_html_response()
+ renamed eval_file_mode() in eval_file_access()
+ memo update
2022-08-15 22:12:55 +02:00
Hugo LAMY
c05536ca01 hugo merge and clean some debug messages 2022-08-15 21:21:40 +02:00
Hugo LAMY
008b2a635f Merge branch 'hugo5' 2022-08-15 21:18:06 +02:00
Eric LAZO
54b6d1f6d6 not much 2022-08-15 20:47:13 +02:00
Eric LAZO
c9c8946e70 merge, the whole thing is cleaner 2022-08-15 19:54:26 +02:00
Eric LAZO
19da59ecf8 cleaned things up 2022-08-15 19:40:21 +02:00
LuckyLaszlo
fe89be65f6 Tested and fixed server_name resolution 2022-08-15 19:31:43 +02:00
hugogogo
1c13e254d5 basic cgi script test working 2022-08-15 18:26:41 +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
hugogogo
6ad6ec7d63 wip cgi ouptput 2022-08-15 16:18:47 +02:00
hugogogo
036256522a makefile for cgi_scripts 2022-08-15 15:28:19 +02:00
lperrey
a284e400c1 changed client_body_limit (now in KB)
+ multiples little adjusts
2022-08-15 02:14:27 +02:00
Hugo LAMY
9ac84f706d fix error in check scrip output length 2022-08-15 02:07:06 +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
8000668b36 Merge branch 'eric_config_parser' 2022-08-14 21:42:08 +02:00
Eric LAZO
21efbef86a better telnet tester, merging 2022-08-14 21:41:46 +02:00
Eric LAZO
076f46fb85 .gitignore 2022-08-14 21:29:20 +02:00
Eric LAZO
683dbadb91 better telnet tester 2022-08-14 21:26:57 +02:00
LuckyLaszlo
8d4961c9b5 memo.txt update 2022-08-14 17:53:29 +02:00
Hugo LAMY
d663a4c7e6 added debug print 2022-08-14 16:17:24 +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
Me
ddafa229c6 something done to the telnet tester 2022-08-14 03:49:29 +02:00
Hugo LAMY
be499328f6 fixed error in is_cgi, path was missing dot 2022-08-14 01:17:55 +02:00
Hugo LAMY
41db4fc12b Merge branch 'hugo4' 2022-08-14 01:10:01 +02:00
Hugo LAMY
a20a5eff27 Merge branch 'master' of bitbucket.org:LuckyLaszlo/webserv 2022-08-14 01:09:25 +02:00
Hugo LAMY
db4c7468cc is_cgi function is back and is working
+ in utils added function eval_file_mode(), it returns http errors codes about file
2022-08-14 01:05:20 +02:00
Eric LAZO
dda32c759a decent start to bash tester 2022-08-13 22:38:31 +02:00
LuckyLaszlo
b0949615c8 fixed mistake in _read_request()
+ changes to some log output
2022-08-13 19:17:32 +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
hugogogo
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
2022-08-13 12:39:05 +02:00
Me
ebd0fda52c more mucking about with telnet 2022-08-13 05:57:50 +02:00
Me
c3240b8618 i found a mistake but still doesn't work... 2022-08-13 03:52:33 +02:00
Me
3495ff19a8 mucked about with Telnet 2022-08-13 03:01:41 +02:00
LuckyLaszlo
058701f657 upload_form.html
+ need to add multipart/form-data parsing
2022-08-13 01:15:59 +02:00
Me
a69273b88e fixed an autoindex issue, working on uploading files 2022-08-12 23:45:13 +02:00