cURL not following the Location: header
问题 I'm trying to use Rapidshare's API to download a file. To do so, I need to request their download subroutine twice. Once to get the appropriate download server to use, and secondly to request the download again on the server that the first request gave me. The second call is what sends the file. On the first call, it returns a header with a Location: blah field, and I need to follow this location. So I did this: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://api.rapidshare.com/cgi