I am using cURL to fetch data from another site into my application. I am getting the data in exactly the same format as it is displayed on the browser.
What I need is to get the data in a form of an array.
I even tried using file_get_contents, but it also doesn’t gives me the data in array (as it outputs in array).
to take the cookie data and the location of a header, I use this code, hope this help.
You can try with any other information that the header can give you.
PS: I was mistaken, i believed that it was about the Header not the HTML content.