cUrl - getting the html response body

后端 未结 1 1446
南笙
南笙 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条回答
  • 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)
提交回复
热议问题