| 限定符和类型 | 方法和说明 |
|---|---|
CUrl |
CUrl.cookie(CUrl.IO input)
读取数据IO并添加请求Cookie。
|
CUrl |
CUrl.cookie(String input)
添加请求Cookie
Add custom Cookies in request
|
CUrl |
CUrl.cookieJar(CUrl.IO output)
输出Cookie到给定的数据IO
Output Cookie to given IO object
|
CUrl |
CUrl.cookieJar(String output)
输出Cookie到给定的文件
Output Cookie to given file path
|
CUrl |
CUrl.data(CUrl.IO input,
boolean binary)
从input中读取数据作为post数据
Read data from input and use as post data
|
CUrl |
CUrl.data(String data)
Add post data.
|
CUrl |
CUrl.data(String data,
boolean raw)
Add post data.
|
CUrl |
CUrl.data(String data,
String charset)
添加urlencode的post数据
Add URL-encoded post data
|
CUrl |
CUrl.dumpHeader(CUrl.IO output)
倾印原始响应头到给定的数据IO
|
CUrl |
CUrl.dumpHeader(String output)
倾印原始响应头到给定的文件
Dump raw response headers to specified file path
|
CUrl |
CUrl.form(String formString)
发起post文件上传,添加1~N个非文件表单项,注意此方法不对'@'进行特殊处理
|
CUrl |
CUrl.form(String name,
CUrl.IO input)
发起post文件上传,添加一个文件上传的表单项
Issue a form based upload and add a file item
|
CUrl |
CUrl.form(String name,
String content)
发起post文件上传,添加一个表单项
Issue a form based upload and add a form item
|
CUrl |
CUrl.header(String headerLine)
Add a custom request header
|
CUrl |
CUrl.headers(Map<String,?> headers) |
CUrl |
CUrl.insecure()
Allow insecure server connections when using HTTPS
|
CUrl |
CUrl.io(String key,
CUrl.IO io)
添加一个数据IO,可作为数据输入或数据输出,在--data等参数值中引用
|
CUrl |
CUrl.location()
Follow redirection automatically, false be default.
|
CUrl |
CUrl.opt(String... options)
Specify 0~N options, please refer to https://curl.haxx.se/docs/manpage.html
Note: the option name and corresponding value must be divided into two arguments, rather than one single string seperated by space
|
CUrl |
CUrl.output(CUrl.IO output)
输出应答数据到给定数据IO
|
CUrl |
CUrl.output(String output)
输出应答数据到给定文件。
|
CUrl |
CUrl.proxy(String host,
int port)
Specify the proxy server
|
CUrl |
CUrl.retry(int retry,
float retryDelay,
float retryMaxTime)
Specify retry related options, default values are 0
|
CUrl |
CUrl.stderr(CUrl.IO output)
重定向标准错误输出到给定的数据IO
|
CUrl |
CUrl.stderr(String output)
重定向标准错误输出到给定的文件
Redirect stderr to specified file path, use '-' for stdout
|
CUrl |
CUrl.timeout(float connectTimeoutSeconds,
float readTimeoutSeconds)
Specify timeout, default values are 0
|
CUrl |
CUrl.url(String url) |
Copyright © 2018. All rights reserved.