1
我正在用下面列出的庫發出請求。這似乎是我最後的頭球被切斷了。我嘗試了以下兩種方法,但似乎都沒有工作。Scala - 用scalaj發送多個頭文件http
import scalaj.http._
import scalaj.http.Http
var result = Http("https://example.com" + Key + "/rowset")
.postData(jsonOutput)
.headers(Seq("Authorization" -> ("Bearer " + accessToken)))
.headers(Seq("content-Type" -> "application/json"))
var result = Http("https://example.com" + Key + "/rowset")
.postData(jsonOutput)
.headers(Seq("Authorization" -> ("Bearer " + accessToken), "content-Type" -> "application/json"))
出於某種原因,它的工作原理是這樣的:var結果= HTTP( 「example.com/v1/requestToken」) .postForm .PARAM( 「clientSecret」, 「XXXX」) .PARAM( 「的clientId」,「 YYYY「) – Jimmy 2015-02-24 08:35:48