lperrey
2c6bc096cc
WIP CGI monitered by epoll
...
+ OK, but some errors case need to be lookup
2022-08-16 18:38:58 +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
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
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
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
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
Hugo LAMY
a6bfea3b56
Merge branch 'hugo4'
2022-08-15 00:32:47 +02:00
Eric LAZO
21efbef86a
better telnet tester, merging
2022-08-14 21:41:46 +02:00
Hugo LAMY
d663a4c7e6
added debug print
2022-08-14 16:17:24 +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
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
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
hugogogo
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
2022-08-12 23:31:59 +02:00
Eric LAZO
4d395088d0
trying to get submit form to work...
2022-08-12 20:08:49 +02:00
LuckyLaszlo
c7bbf29a1b
NPOS macro
2022-08-12 18:16:49 +02:00
LuckyLaszlo
b44acafefe
CGI discussion and a little bit of work done
2022-08-12 18:08:39 +02:00
Me
cade79c37f
started non hardcoded cgi call
2022-08-12 16:20:50 +02:00
Me
f7c0ff1a8a
clean up
2022-08-12 04:38:07 +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
Me
08f6929db9
fixed autoindex
2022-08-11 02:15:40 +02:00
Me
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
2022-08-11 02:01:24 +02:00
Me
0b51d13f13
a few more things for location picker
2022-08-11 00:36:24 +02:00
Me
69c1a6f6bf
A Much better way of picking locations
2022-08-10 16:14:21 +02:00
LuckyLaszlo
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)
2022-08-10 07:19:05 +02:00
Me
58f67bf42e
fixed a tiny mistake in location picker
2022-08-10 02:07:17 +02:00
Me
8e90221058
location picker works, needs to be tested more tho
2022-08-10 01:59:10 +02:00
LuckyLaszlo
1eb989a3fd
_determine_location() new version (to complete and test)
2022-08-09 20:47:21 +02:00
Me
56f4cf7e15
Eric notes to self
2022-08-09 20:06:28 +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
Me
1d3cdef7a6
Merge remote-tracking branch 'origin/master' into eric_config_parser
2022-08-09 02:38:09 +02:00
Me
97c90236b9
cgi_ext, redirect and upload_repo now functional in config, fixed location picker, some cleanup
2022-08-09 02:37:28 +02:00
LuckyLaszlo
643b09c4f7
_request() and _response() refactoring
...
+ Wip redirection (weird behavior)
+ 505 HTTP Version Not Supported
2022-08-09 01:46:59 +02:00
LuckyLaszlo
a44b9b493a
split respone.cpp file
2022-08-08 20:36:01 +02:00
Me
7fdc81f5f4
a bit messy but merged index and autoindex work
2022-08-08 17:13:55 +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