Rcurl is a implementation of the curl library that provides a set of functions for making HTTP(http1.1,http2)/FTP requests.
You can use it to make HTTP(http1.1,http2)/FTP requests like curl to a server and get the response.
Usage: rcurl.exe [OPTIONS] <URL>
Arguments:
<URL> The request url,like http://www.google.com
Options:
-X, --request <method> Specify request method to use
-d, --data <data> HTTP POST data
-F, --form <name=content> Specify multipart MIME data
-H, --header <header/@file> The http headers
-c, --certificate-path-option <CERTIFICATE_PATH_OPTION> The pem path
-u, --user <user:password> Server user and password
-A, --user-agent <name> Send User-Agent <name> to server
-b, --cookie <data|filename> The Cookie option
-e, --referer <URL> Referrer URL
-o, --output <file> Write to file instead of stdout
-T, --upload-file <file> Transfer local FILE to destination
-Q, --quote <command> Send command(s) to server before transfer
-k, --insecure Allow insecure server connections
-I, --head Show document info only
-r, --range <range> Retrieve only the bytes within RANGE
-v, --verbose Make the operation more talkative
--http2
--http2-prior-knowledge
-h, --help Print help
-V, --version Print version
rcurl http://httpbin.org/get
rcurl https://httpbin.org/get
rcurl -X POST -d '{"a":1,"b":2}' http://httpbin.org/post
rcurl -X PUT http://httpbin.org/put
rcurl http://httpbin.org/get -v
rcurl http://httpbin.org/get -k
rcurl -o test.html http://httpbin.org/get
rcurl -H 'a:b' -H 'c:d' http://httpbin.org/get
rcurl -A 'a:b' http://httpbin.org/get
rcurl -b 'a:b' http://httpbin.org/get
rcurl --upload-file .gitignore http://httpbin.org/put
rcurl http://httpbin.org/get --http2
rcurl https://httpbin.org/get --http2-prior-knowledge
rcurl -u "demo:password" ftp://test.rebex.net:21/
rcurl -T LICENSE -u "demo:password" ftp://test.rebex.net:21/
Coverage Results:
|| Tested/Total Lines:
|| src\cli\app_config.rs: 4/4 +0.00%
|| src\ftp\handler.rs: 38/60 +0.00%
|| src\http\handler.rs: 149/177 +0.00%
|| src\main.rs: 11/17 +0.00%
||
78.29% coverage, 202/258 lines covered, +0.00% change in coverage