Curl is available in the local wamp. 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, but the same code can be downloaded to the correct mp3 format file in the local wamp environment. what is the problem?


Reply to discussion (solution)

Okay, it seems that the gods are very busy. The problem has been solved. it is about server dns. after curl host is configured, replace the domain name with an IP address to solve the problem.

Okay, no one will reply, but I can only close the post without satisfaction, and the post will be given

Just solve it.

Score

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.