I'm sending a cURL, to a URL that will return a JSON response. I'm not sure how to do this, but I'm not sure how to do this, but I'm not sure how to do this. return page is blank.
How do I get the page returned in JSON? I tried something like: curlopt_followlocation, false
and no success.
I have an X page, where I get the answer from page Y (where I make use of curl), on page X the return of page Y comes in HTML instead of I came in JSON, and when I say to cURL to do not follow any followlocation the page comes back blank.
I would not like to do it via AJAX, but in PHP.