57 Commits
Author SHA1 Message Date
hugogogo f7b31c7db7 added semaphore and shared memory to print without superposition between parent and child process 2022-08-22 14:52:31 +02:00
hugogogo 5225e3258b lots of log message and fixed bad_file_descriptor issue 2022-08-22 01:50:28 +02:00
hugogogo 1c13e254d5 basic cgi script test working 2022-08-15 18:26:41 +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
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
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 71c07140e2 added text inside youpibanane files 2022-08-12 12:08:56 +02:00
hugogogo de09c2357c php newline pbm resolved 2022-08-12 12:00:20 +02:00
hugogogo c225063361 script output fields is checked for duplicate 2022-08-12 11:45:06 +02:00
hugogogo 3a58b5d921 wip debug comparison fields output script 2022-08-11 19:42:09 +02:00
hugogogo a1fff0f8c2 added colors, for print_special
+ renamed client's public function parse_request() into parse_request_headers()
2022-08-11 17:46:27 +02:00
hugogogo ad2b5a629a correct extract_line to avoid duplicate with erase or substr, and to resolve pbm of returning trailing delim 2022-08-11 17:33:42 +02:00
hugogogo ff77dfd298 debug new request parsing 2022-08-11 14:50:56 +02:00
hugogogo 27b4f96618 parsing headers is allright now
+ adding error codes in readme and in comments in client
2022-08-11 00:41:17 +02:00
hugogogo 1d67e6988d http message parsin wip but really better 2022-08-11 00:28:01 +02:00
hugogogo 11f71ea74f wip parsing first line http message with new utils functions 2022-08-10 20:27:48 +02:00
hugogogo 9a379c835d correction of trim in case of str only fill with delim char
+ added a new split, that also does trim, to split without counting newlines
2022-08-10 20:01:23 +02:00
hugogogo c7905ebd19 changed del_line_in_str to etract_line 2022-08-10 17:12:28 +02:00
hugogogo 17230ccc42 in cgi exec add save stdin and out 2022-08-10 16:24:24 +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 ef034a356b Merge branch 'master' of bitbucket.org:LuckyLaszlo/webserv 2022-08-09 14:59:39 +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
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
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
hugogogo b30a3a1407 starting to find usefull informations in cgi rfc 2022-08-02 16:33:29 +02:00
hugogogo f252887d53 merge from hugo, add parsing requests and wip cgi 2022-08-01 20:41:07 +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
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
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