Php-mp3 file addresses of some music websites can be opened in a browser, but cannot be downloaded using a program or curl

Source: Internet
Author: User
For example, stream12.qqmusic.qq.com34829977.pdf can be directly downloaded through a browser. But it cannot be downloaded through the program, or curl. Only one page indicating no permission can be downloaded. I tried to simulate the header information of the browser. I don't know what is the difference between a program request and a browser request when the header is simulated? Can anyone download this file through a program? Php is the best. I hope you will be enlightened. The solution is to verify the cookie. Program phpcurl

For example, QQ Music, address example: http://stream12.qqmusic.qq.com/34829977.mp3
You can open the download in a browser.
But it cannot be downloaded through the program, or curl.
Only one page indicating no permission can be downloaded.
I tried to simulate the header information of the browser.
I don't know what is the difference between a program request and a browser request when the header is simulated?
Can anyone download this file through a program? Php is the best.
I hope you will be enlightened.

The solution is to verify the cookie.

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.