Commit Graph

25 Commits

Author SHA1 Message Date
LuckyLaszlo
ce0a004d28 Le merge / 20 2022-08-14 06:30:27 +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
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
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
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
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
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
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