/curl/lib/ |
H A D | ftplistparser.c | 227 if(parser) in Curl_ftp_parselist_data_free() 229 free(parser); in Curl_ftp_parselist_data_free() 314 struct ftp_parselist_data *parser = ftpwc->parser; in ftp_pl_insert_finfo() local 370 struct ftp_parselist_data *parser = ftpwc->parser; in Curl_ftp_parselist() local 521 parser->offsets.perm = parser->item_offset; in Curl_ftp_parselist() 579 parser->offsets.user = parser->item_offset; in Curl_ftp_parselist() 601 parser->offsets.group = parser->item_offset; in Curl_ftp_parselist() 714 parser->offsets.time = parser->item_offset; in Curl_ftp_parselist() 752 parser->offsets.filename = parser->item_offset; in Curl_ftp_parselist() 764 parser->offsets.filename = parser->item_offset; in Curl_ftp_parselist() [all …]
|
H A D | http1.c | 45 memset(parser, 0, sizeof(*parser)); in Curl_h1_req_parse_init() 52 if(parser) { in Curl_h1_req_parse_free() 64 if(parser->line[parser->line_len - 1] == '\n') in trim_line() 67 if(parser->line[parser->line_len - 1] == '\r') in trim_line() 78 if(parser->line_len > parser->max_line_len) { in trim_line() 108 if(parser->line) { in next_line() 118 *err = Curl_dyn_addn(&parser->scratch, parser->line, parser->line_len); in next_line() 121 parser->line = Curl_dyn_ptr(&parser->scratch); in next_line() 122 parser->line_len = Curl_dyn_len(&parser->scratch); in next_line() 147 p = memchr(parser->line, ' ', parser->line_len); in start_req() [all …]
|
H A D | http1.h | 48 void Curl_h1_req_parse_init(struct h1_req_parser *parser, size_t max_line_len); 49 void Curl_h1_req_parse_free(struct h1_req_parser *parser); 51 ssize_t Curl_h1_req_parse_read(struct h1_req_parser *parser,
|
H A D | ftp.h | 89 struct ftp_parselist_data *parser; member
|
H A D | ftp.c | 3734 if(ftpwc && ftpwc->parser) in wc_data_dtor() 3735 Curl_ftp_parselist_data_free(&ftpwc->parser); in wc_data_dtor() 3784 ftpwc->parser = Curl_ftp_parselist_data_alloc(); in init_wc_data() 3785 if(!ftpwc->parser) { in init_wc_data() 3823 Curl_ftp_parselist_data_free(&ftpwc->parser); in init_wc_data() 3858 if(Curl_ftp_parselist_geterror(ftpwc->parser)) { in wc_statemach() 3946 result = Curl_ftp_parselist_geterror(ftpwc->parser); in wc_statemach()
|
/curl/docs/examples/ |
H A D | xmlstream.c | 98 XML_Parser parser = (XML_Parser) userp; in parseStreamCallback() local 103 if(state->ok && XML_Parse(parser, contents, real_size, 0) == 0) { in parseStreamCallback() 104 int error_code = XML_GetErrorCode(parser); in parseStreamCallback() 118 XML_Parser parser; in main() local 126 parser = XML_ParserCreateNS(NULL, '\0'); in main() 127 XML_SetUserData(parser, &state); in main() 128 XML_SetElementHandler(parser, startElement, endElement); in main() 129 XML_SetCharacterDataHandler(parser, characterDataHandler); in main() 149 if(XML_Parse(parser, NULL, 0, 1) == 0) { in main() 150 int error_code = XML_GetErrorCode(parser); in main() [all …]
|
/curl/tests/ |
H A D | dictserver.py | 109 parser = argparse.ArgumentParser() 111 parser.add_argument("--port", action="store", default=9016, 113 parser.add_argument("--host", action="store", default=HOST, 115 parser.add_argument("--verbose", action="store", type=int, default=0, 117 parser.add_argument("--pidfile", action="store", 119 parser.add_argument("--logfile", action="store", 121 parser.add_argument("--srcdir", action="store", help="test directory") 122 parser.add_argument("--id", action="store", help="server ID") 123 parser.add_argument("--ipv4", action="store_true", default=0, 126 return parser.parse_args()
|
H A D | negtelnetserver.py | 292 parser = argparse.ArgumentParser() 294 parser.add_argument("--port", action="store", default=9019, 296 parser.add_argument("--verbose", action="store", type=int, default=0, 298 parser.add_argument("--pidfile", action="store", 300 parser.add_argument("--logfile", action="store", 302 parser.add_argument("--srcdir", action="store", help="test directory") 303 parser.add_argument("--id", action="store", help="server ID") 304 parser.add_argument("--ipv4", action="store_true", default=0, 307 return parser.parse_args()
|
H A D | smbserver.py | 384 parser = argparse.ArgumentParser() 386 parser.add_argument("--port", action="store", default=9017, 388 parser.add_argument("--host", action="store", default="127.0.0.1", 390 parser.add_argument("--verbose", action="store", type=int, default=0, 392 parser.add_argument("--pidfile", action="store", 394 parser.add_argument("--logfile", action="store", 396 parser.add_argument("--srcdir", action="store", help="test directory") 397 parser.add_argument("--id", action="store", help="server ID") 398 parser.add_argument("--ipv4", action="store_true", default=0, 401 return parser.parse_args()
|
/curl/tests/http/testenv/ |
H A D | ws_echo_server.py | 49 parser = argparse.ArgumentParser(prog='scorecard', description=""" 52 parser.add_argument("--port", type=int, 54 args = parser.parse_args()
|
/curl/tests/http/ |
H A D | scorecard.py | 675 parser.add_argument("-j", "--json", action='store_true', 677 parser.add_argument("-H", "--handshakes", action='store_true', 679 parser.add_argument("-d", "--downloads", action='store_true', 681 parser.add_argument("--download", action='append', type=str, 687 parser.add_argument("-u", "--uploads", action='store_true', 689 parser.add_argument("--upload", action='append', type=str, 693 parser.add_argument("-r", "--requests", action='store_true', 701 parser.add_argument("--curl-verbose", action='store_true', 703 parser.add_argument("protocol", default='h2', nargs='?', 707 parser.add_argument("--remote", action='store', type=str, [all …]
|
/curl/tests/data/ |
H A D | test2603 | 19 http1 parser unit tests
|
H A D | test1003 | 14 # a ~17000 bytes response string to CWD to make sure the ftp parser deals
|
H A D | test7 | 32 HTTP with cookie parser and header recording
|
H A D | test1105 | 35 HTTP with cookie parser and header recording
|
H A D | test1062 | 15 # a long set of response strings to CWD to make sure the ftp parser deals
|
H A D | test1005 | 14 # a long set of response strings to CWD to make sure the ftp parser deals
|
H A D | test1006 | 14 # A long set of response strings to CWD to make sure the ftp parser deals
|
/curl/docs/cmdline-opts/ |
H A D | alt-svc.md | 20 Enable the alt-svc parser. If the filename points to an existing alt-svc cache
|
/curl/docs/libcurl/ |
H A D | curl_url_set.md | 81 URL parser only understands and parses the subset of URLS that are 230 If set, the URL parser allows space (ASCII 32) where possible. The URL syntax 241 If set, the URL parser does not accept embedded credentials for the
|
H A D | curl_getdate.md | 113 This parser handles date formats specified in RFC 822 (including the update in
|
H A D | libcurl-ws.md | 77 parser/engine that want to switch over to use libcurl for enabling WebSocket,
|
/curl/ |
H A D | RELEASE-NOTES | 40 o netrc: address several netrc parser flaws [17]
|
/curl/docs/libcurl/opts/ |
H A D | CURLOPT_URL.md | 78 The parser used for handling the URL set with CURLOPT_URL(3) is the same
|
H A D | CURLOPT_HTTPHEADER.md | 105 Tells the parser at the receiving site how to interpret the MIME framing.
|