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相關部分