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