Passing cookies when using wp_remote_get

Question

I’m working on a plugin that fetches remote RSS feeds using wp_remote_get. The problem is that Tumblr requires a cookie for GDPR compliance. This includes RSS feeds. Which means all Tumblr feeds are currently broken.

I found an example of using CURL to acquire the cookies so the feed will load. However, I have little more than a passing acquaintance with wp_remote_get and related functions.

How do I implement the cookie getting hack from the example via WordPress’ remote get methodology?

Edit: To clarify, I need to get and then use a cookie. That’s two requests; one for the cookie and a second using the cookie.

0
Matthew Brown aka Lord Matt 4 months 0 Answers 22 views 0

Leave an answer