无法解析的参数:5PL 在 python 中尝试通过 pycurl post 文件时出现此错误

Unparsable argument: 5PL getting this error while trying to post the file through pycurl in python

我正在尝试 post 给定 URL 处的一个文件和函数的几个参数。但是我收到一个错误(无法解析的参数:5PL)。谁能帮忙解决这个错误?

import pycurl

c = pycurl.Curl()

values = [
     ("infile", (pycurl.FORM_FILE, "5pl.csv")),
     ("model","5PL"),
     ("log", "F")
]

c.setopt(c.URL, "http://granitepoint.ocpu.io/dose-response-R/R/readData")
c.setopt(c.HTTPPOST, values)
c.perform()
c.close()

OpenCPU POST 参数必须是 JSON 对象或 R 语法。您设置的参数值 5PL 两者都不是。

如果你想post一个字符串值"5PL"你post例如("model","'5PL'")