Google is returning a 400 bad request; but what is wrong with the request?
open FSharp.Data
let apiKey = "key goes here - removed for stackoverflow"
let postUrl = "http://safebrowsing.clients.google.com/safebrowsing/downloads"
let testArray = "2\nhttp://www.google.com/\nhttp://ianfette.org/"
[<EntryPoint>]
let main argv =
let foo2 = Http.Request(postUrl, httpMethod = "Post",
query = [ "client", "api"; "apikey", apiKey; "appver", "1.0"; "pver", "2.2" ],
body = TextRequest (testArray)
)
0
I have verified that my key is correct by successfully executing get requests, it is only the post that is failing.