Curl has no problem in local wamp, and the file cannot be downloaded after being uploaded to the server lampp.

Source: Internet
Author: User
The curl file can be downloaded from the local wamp, but the file cannot be downloaded from the server lampp. the curl file can be used to download the mp3 file of a music website. there is no problem in local testing, however, after uploading the file to the server, you can only capture the information on the lyrics, song names, and other pages with curl. However, you can use notepad to capture the mp3 file and find the information with a 404 or 400 error history, however, I can test the same code in the local wamp environment and download it to the normal curl. there is no problem with the local wamp. the file cannot be downloaded to the server lampp.
You can use curl to download an mp3 file from a music website. The local test shows that there is no problem at all. However, after uploading the file to the server, you can only use curl to capture information on pages such as lyrics and song names, however, when an mp3 file is captured, you can use notepad to open the file and find the information with a 404 or 400 error. However, I can test the same code in the local wamp environment to download the correct mp3 format file, what's going on? please give me some advice.
------ Solution --------------------
Just solve it.
------ Solution --------------------
Score
------ Solution --------------------

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.