cUrl - getting the html response body

后端 未结 1 1453
南笙
南笙 2021-01-14 17:22

I\'m sure this is fairly simple. I\'m using the function below to retrieve sites raw html in order to parse it. during my testing, I decided to run my code on stackoverflow.

1条回答
  •  -上瘾入骨i
    2021-01-14 17:38

    Your code works. Try echo htmlentities($response); You'll get the raw html for the site you're curling.

    0 讨论(0)
提交回复
热议问题