JSON request sample: POST /webmaster/api.svc/json/SubmitUrlbatch?apikey=sampleapikeyEDECC1EA4AE341CC8B6 HTTP/1.1 Content-Type: application/json; charset=utf-8 Host: ssl.bing.com { "siteUrl":"http://yoursite.com", "urlList":[ "http://yoursite.com/url1", "http://yoursite.com/url2", "http://yoursite.com/url3" ] } JSON response sample: HTTP/1.1 200 OK Content-Length: 10 Content-Type: application/json; charset=utf-8 { "d":null }
官网给的例子是这样,怎么用php实现?
这是请求体与响应体的内容, 如果想了解细节 , 可查阅手册中的php网络编程, http相关部分