HTTP Post以卷曲语法

时间:2018-12-09 23:34:08

标签: curl

我有一个HTTP Post(下),我需要作为curl命令运行,但无论我如何尝试,似乎都无法使其正常运行。我的curl语法应该是什么样的?

POST /ABRXMLSearch.asmx/ABRSearchByABN HTTP/1.1
Host: abr.business.gov.au
Content-Type: application/x-www-form-urlencoded
Content-Length: length

searchString=XXX&includeHistoricalDetails=N&authenticationGuid=YYY

1 个答案:

答案 0 :(得分:0)

curl -d "searchString=XXX&includeHistoricalDetails=N&authenticationGuid=YYY" -X POST https://example.com/ABRXMLSearch.asmx/ABRSearchByABN

See