#事故现场的lmdzcapi接口发送请求,返回406,如下所示。
thetargetresourcedoesnothaveacurrentrepresentationthatwouldbeacceptabletotheuseragent, accordingtotheproactivenegotiationheaderfieldsreceivedintherequest,andtheserverisunwillingtosupplyadefaultrepresesentation。
#将接受标头添加到解决方案请求中。 值为' */* '。
以C#代码为例,使用了RestSharp:
var client=newrest client (config.host; varrequest=newrestrequest(XXX ).addjsonbody ) new{page=1,pagesize=1000 } ).add header (apply id ),conf ize varrrer