Baidu search has recently attempted to create an online music radio station, which is similar to Douban. the links are about to be searched online: link search .php User page .php .swf data receiving. js & nbsp; js uses the Baidu mp3 interface box for ajax and json links. zhangmen. baidu. comx? Op12 & amp; count1 & amp; title Baidu search
Recently, I am trying to create an online music station, similar to Douban.com. the link is searched online.
There are probably a few of them: link search. php user page. php .swf data receiving. js
In js, ajax and json are used.
Link is used Baidu mp3 interface http://box.zhangmen.baidu.com/x? Op = 12 & count = 1 & title = title $ artist $
The obtained method is file_get_contents ($ url), returns an xml file, uses the regular expression to propose a link, outputs the json client to obtain the data, and then transmits the value to swf in js, swf gets the url variable and loads the sound for playing.
It was quite smooth, but Baidu's interface gave me a headache. I opened the user page under ff. in php, the radio station functions normally and the flash file can be opened directly, but it won't work in IE8 or chrome. later I checked the network and found that when accessing the Baidu mp3 interface, in ie8 and chrome, Baidu returns a 403 value, while in ff, it returns an mp3 address.
Is it because of the differences between browsers? Why can I return a result under ff, but the other result is 403? The header I use is html. is it useful to change it to another one? Or is there any other mp3 interface? Please help
------ Solution --------------------
Do you want to compare whether FF and IE deliver the same package?
------ Solution --------------------
Passing .... No post posted ..