我需要将以下curl命令转换为java命令.
$curl_handle = curl_init ();
curl_setopt ($curl_handle, CURLOPT_URL,$url);`enter code here`
curl_setopt ($curl_handle, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl_handle, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt ($curl_handle, CURLOPT_POST, 1);
curl_setopt ($curl_handle, CURLOPT_POSTFIELDS, $postfields);
//echo $postfields;
$curl_result = curl_exec ($curl_handle) or die ("There has been a CURL_EXEC error");
Run Code Online (Sandbox Code Playgroud) 我们可以在jxls中定义局部变量,可用于设置列的递增计数.
例如:考虑以下内容
<jx:forEach items="${myList}" var="myVar">
-- i need to define a local integer variable here which will have an initial value as 0
-- and i will increment it and display in the output xls's first column
</jx:forEach>
Run Code Online (Sandbox Code Playgroud)
基本上我的要求是在jxls代码中有一些局部变量声明,我将增加并显示在xml中.
欢迎任何其他替代方案.
此致,拉胡尔