HTTP 1.1 400未知版本Rest API创建缺陷HPALM

时间:2016-10-17 04:20:49

标签: json rest curl hp-alm

您好我正在尝试从Rest API创建缺陷到HPALM。

我正在使用以下命令。我收到一个错误:

 HTTP/1.1 400 Unknown Version

 C:\Adwait>curl -D- -X POST --data-binary @C:\Adwait\HPCreateDefect.json -H "Authorization: Basic RGVtb" -H "Content-Type:application/json" "http://ServerURL:8080/qcbin/rest/domains/DEMO_PURPOSE\/projects/DEMO_01/defects HTTP/1.1" -k

HTTP/1.1 400 Unknown Version

Content-Length: 0

Connection: close

Server: Jetty(9.1.4.v20140401)

1 个答案:

答案 0 :(得分:0)

@Adwait please check how you write the link above.

Even if suggested in some libraries from HP, you do not have to add the HTTP/1.1 at the end of the link used.

Please check and close the query itself. I had in the beginning same problem creating a python interface for the QC REST API. Have a nice day!