PHP cURL error: “Empty reply from server”

后端 未结 5 1974
感情败类
感情败类 2020-12-29 14:50

I have a class function to interface with the RESTful API for Last.FM - its purpose is to grab the most recent tracks for my user. Here it is:

private stati         


        
5条回答
  •  -上瘾入骨i
    2020-12-29 15:06

    According to Last.FM API documentation you should use GET method instead of POST to pass parameters. When I've changed POST to GET I've received the answer about incorrect key.

提交回复
热议问题