Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 31) 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.c3734 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 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.py109 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 Dnegtelnetserver.py292 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 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.py49 parser = argparse.ArgumentParser(prog='scorecard', description="""
52 parser.add_argument("--port", type=int,
54 args = parser.parse_args()
/curl/tests/http/
H A Dscorecard.py675 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 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 Dtest106215 # a long set of response strings to CWD to make sure the ftp parser deals
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
/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/
H A DRELEASE-NOTES40 o netrc: address several netrc parser flaws [17]
/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.

Completed in 72 milliseconds

12