This is a place devoted to giving you deeper insight into the news, trends, people and technology behind Bing.
Code
[
$url="https://ssl.bing.com/webmaster/api.svc/pox/SubmitUrl?apikey=my apikey";
$xml_data='<SubmitUrl xmlns="http://tempuri.org/"><siteUrl>my site</siteUrl><url>my url</url></SubmitUrl>';
$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_HEADER, 1);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/xml")); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_data); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); $xmlhtml=curl_exec($ch); curl_close($ch);
]
last month before,it work,but this month,it was 400 error
this is the header
"
HTTP/1.1 400 Bad RequestCache-Control: no-cachePragma: no-cacheContent-Type: application/xml; charset=utf-8Content-Encoding: gzipExpires: -1Content-Length: 99Date: Sat, 03 Nov 2012 12:13:03 GMTConnection: close
why?Thanks