Json Bing URL提交API返回400响应-“;意外消息格式';原始和#x27&引用;

Json Bing URL提交API返回400响应-“;意外消息格式';原始和#x27&引用;,json,api,bing,Json,Api,Bing,我正试着打电话给警察。我的通话结构如下: 'https://ssl.bing.com/webmaster/api.svc/json/SubmitUrl?apikey=REDACTED' \ -H 'Accept: application/json' \ -H 'Accept-Encoding: gzip, deflate' \ -H 'Content-Type: application/x-www-form-encoded' \ -H 'Host: ssl.bing.com'

我正试着打电话给警察。我的通话结构如下:

  'https://ssl.bing.com/webmaster/api.svc/json/SubmitUrl?apikey=REDACTED' \
  -H 'Accept: application/json' \
  -H 'Accept-Encoding: gzip, deflate' \
  -H 'Content-Type: application/x-www-form-encoded' \
  -H 'Host: ssl.bing.com' \
  -H 'charset: utf-8' \
  -F siteUrl=https://stocknews.com \
  -F url=https://stocknews.com/news/pbw-qcln-kars-3-buy-rated-cleantech-etfs-to-own-for-2021/```

the response I get is like so:

```{
    "ErrorCode": 2,
    "Message": "ERROR!!! The incoming message has an unexpected message format 'Raw'. The expected message formats for the operation are 'Xml', 'Json'. This can be because a WebContentTypeMapper has not been configured on the binding. See the documentation of WebContentTypeMapper for more details."
}```

The response suggests the body of the POST call is of some kind of inappropriate type, being interpreted as "raw" when it should be "json". I assume the specification of the `Content-Type` header would solve this, and have tried setting that header to a value of "application/json" -- among other options -- though no option I've tried specifying has worked. Any thoughts how I can get this API call to work? My understanding is that content in the body not mapped to JSON or XML is sent to the [WebContentMapper](https://docs.microsoft.com/en-us/dotnet/framework/wcf/samples/webcontenttypemapper-sample), which may explain the rest of the error message.