r - R new_handle 函数不能正常工作?
问题描述
我需要运行以下代码
library(curl)
user= "GEAS"
password= "878282193100310"
content = paste("username=", user, "&password=", password, sep="")
h <- new_handle(copypostfields = content)
handle_setheaders(h,
"Content-Type" = "application/x-www-form-urlencoded"
)
handle_setopt(h, ssl_verifypeer = FALSE, ssl_verifyhost = FALSE)
new_handle
但是,此代码在应用函数时停止在行。运行此行时,我有以下输出
> h
<curl handle> (empty)
如何使new_handle
功能正常工作?
解决方案
推荐阅读
- python - 如何使用 matplotlib 创建径向柱形图
- c - 使用 execvp() 分离和执行命令行参数
- json - 如何使用 Groovy 去除 JSON 中的斜线
- python - 尝试将数据库中的项目放入 Tkinter 中的列表框时出错
- r - gam.vcomp 可以用于估计在具有 gaulss 家族的 GAM 中解释的部分偏差吗?
- html - 悬停时动画 2 侧边框
- parallel-processing - 为什么我会出现这种行为?
- javascript - 带有数据库承诺的javascript递归函数
- javascript - 在表单中的一定数量的字符之后向文本区域输出添加换行符
- visual-studio - 我需要用于 Visual Studio 的 XAMPP 吗?