The Difference cURL and WordPress Requests cURL and WordPress remote requests allow us much of the functionality. cURL is PHP library that I've referenced in several posts other posts. And it's one that I think should be reviewed, explored, used by anyone working PHP .. But we do have level of abstraction that allows us to achieve much of the functionality .. URL is validated to avoid redirection and request forgery attacks... I mention the variant of this function for the definition above ... In short initialize cURL library, set options specific to your request, make the request, evaluate the response catch any necessary exceptions... The case we're primarily after is the body of the response and that's the focus of the code.. When it comes to working with cURL and WordPress Remote requests and determining. Instead, look at the endpoint which you're communicating, determine what level of control you need over the request, and make decision on how you want to handle the response..
Read more