0
4

1 回答 1

0

如果你是 json

application/atom+json;charset=utf-8

如果你的 xml 意味着试试这个

$headers = array('Content-Type: application/atom+xml; charset=utf-8',
'Content-Length: '. strlen($xml),
'Authorization: GoogleLogin '. trim($authToken)),
'Connection: close');

了解更多信息:

或者

检查您的 xml 文档标签

<!-- Correct -->
<?xml version="1.0" encoding="utf-8"?>
于 2014-01-13T05:58:29.653 回答