Baidu search problems

Source: Internet
Author: User
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 ..

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.