Retrieving iTunes App Store XML with cURL and PHP

前端 未结 2 1307
野趣味
野趣味 2021-02-06 15:48

I have been extracting information from the iTunes App Store for the past couple of weeks using a script I found and modified. Everything was working fine until a couple days ag

相关标签:
2条回答
  • 2021-02-06 16:35

    Works fine for me. Here are few things to think about:

    • Are you sure $GET['appID'] is set? Perhaps the script is being run via a POST?
    • Comment out ini_set('display_errors', false); and see if any notices/warnings/errors appear.
    • Is the script running on the same box as the curl command line?
    0 讨论(0)
  • 2021-02-06 16:46

    Just as a side note, if you're trying to access a https iTunes page, you may need to set the following:

    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    
    0 讨论(0)
提交回复
热议问题