php-some music sites mp3 file addresses can be opened via a browser, but cannot be downloaded using programs or curl

Source: Internet
Author: User
Keywords Program PHP Curl
Program Phpcurl

such as QQ music, address example: Http://stream12.qqmusic.qq.com/34829977.mp3
You can open the download directly from the browser.
But through the program can not download, curl is not.
can only be downloaded to a page that represents no permissions.
I tried to simulate the browser header information.
Not sure what the difference is between a program request and a browser request in the case of a simulation header?
Is there a master who can use the program to download to this file? Use PHP best.
I hope you won't hesitate to enlighten.

Solved, that is, the cookie is verified.

  • 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.