Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 30) sorted by relevance

12

/curl/lib/
H A Dftplistparser.c227 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 Dhttp1.c45 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 Dhttp1.h48 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 Dftp.h89 struct ftp_parselist_data *parser; member
H A Dftp.c3900 if(ftpwc && ftpwc->parser) in wc_data_dtor()
3901 Curl_ftp_parselist_data_free(&ftpwc->parser); in wc_data_dtor()
3952 ftpwc->parser = Curl_ftp_parselist_data_alloc(); in init_wc_data()
3953 if(!ftpwc->parser) { in init_wc_data()
3991 Curl_ftp_parselist_data_free(&ftpwc->parser); in init_wc_data()
4026 if(Curl_ftp_parselist_geterror(ftpwc->parser)) { in wc_statemach()
4114 result = Curl_ftp_parselist_geterror(ftpwc->parser); in wc_statemach()
/curl/docs/examples/
H A Dxmlstream.c98 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 Ddictserver.py115 parser = argparse.ArgumentParser()
117 parser.add_argument("--port", action="store", default=9016,
119 parser.add_argument("--host", action="store", default=HOST,
121 parser.add_argument("--verbose", action="store", type=int, default=0,
123 parser.add_argument("--pidfile", action="store",
125 parser.add_argument("--logfile", action="store",
127 parser.add_argument("--srcdir", action="store", help="test directory")
128 parser.add_argument("--id", action="store", help="server ID")
129 parser.add_argument("--ipv4", action="store_true", default=0,
132 return parser.parse_args()
H A Dnegtelnetserver.py299 parser = argparse.ArgumentParser()
301 parser.add_argument("--port", action="store", default=9019,
303 parser.add_argument("--verbose", action="store", type=int, default=0,
305 parser.add_argument("--pidfile", action="store",
307 parser.add_argument("--logfile", action="store",
309 parser.add_argument("--srcdir", action="store", help="test directory")
310 parser.add_argument("--id", action="store", help="server ID")
311 parser.add_argument("--ipv4", action="store_true", default=0,
314 return parser.parse_args()
H A Dsmbserver.py384 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 Dws_echo_server.py50 parser = argparse.ArgumentParser(prog='scorecard', description="""
53 parser.add_argument("--port", type=int,
55 args = parser.parse_args()
/curl/tests/http/
H A Dscorecard.py755 parser.add_argument("-j", "--json", action='store_true',
757 parser.add_argument("-H", "--handshakes", action='store_true',
759 parser.add_argument("-d", "--downloads", action='store_true',
761 parser.add_argument("--download", action='append', type=str,
767 parser.add_argument("-u", "--uploads", action='store_true',
769 parser.add_argument("--upload", action='append', type=str,
771 parser.add_argument("--upload-count", action='store', type=int,
773 parser.add_argument("-r", "--requests", action='store_true',
781 parser.add_argument("--curl-verbose", action='store_true',
783 parser.add_argument("protocol", default='h2', nargs='?',
[all …]
/curl/tests/data/
H A Dtest260319 http1 parser unit tests
H A Dtest100314 # a ~17000 bytes response string to CWD to make sure the ftp parser deals
H A Dtest732 HTTP with cookie parser and header recording
H A Dtest110535 HTTP with cookie parser and header recording
H A Dtest100514 # a long set of response strings to CWD to make sure the ftp parser deals
H A Dtest100614 # A long set of response strings to CWD to make sure the ftp parser deals
H A Dtest106215 # a long set of response strings to CWD to make sure the ftp parser deals
/curl/docs/cmdline-opts/
H A Dalt-svc.md20 Enable the alt-svc parser. If the filename points to an existing alt-svc cache
/curl/docs/libcurl/
H A Dcurl_url_set.md81 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 Dcurl_getdate.md113 This parser handles date formats specified in RFC 822 (including the update in
H A Dlibcurl-ws.md77 parser/engine that want to switch over to use libcurl for enabling WebSocket,
/curl/docs/libcurl/opts/
H A DCURLOPT_URL.md78 The parser used for handling the URL set with CURLOPT_URL(3) is the same
H A DCURLOPT_HTTPHEADER.md105 Tells the parser at the receiving site how to interpret the MIME framing.
/curl/.github/scripts/
H A Dspellcheck.words603 parser's

Completed in 50 milliseconds

12