Transients seem to be appropriate storage. Just note that if you will generate a lot of this and they will be disposable then you will need to cleanup old transients.
As for your cURL/filename issue – it is bad practice to use cURL directly in WordPress. WP provides HTTP API that abstracts remote requests.
Unfortunately it is bit poorly documented. As far as I understand you pass cookies in arguments array with cookies
key to its functions.
Related Posts:
- I found this in a plugin. What does it do? is it dangerous?
- Keep one user logged for a year?
- Disable saving comment details (name, e-mail) in cookie?
- Passing .pem and .key files in cURL doesn’t work in WordPress
- Security error WP 4.0 + WP phpBB Bridge [closed]
- Detecting $_GET parameters from any page + Cookie
- Set cookie then immediantly refresh the page
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- Popup Cookie WordPress select language and section (Elementor)
- Do We Need to Validate, Sanitize, or Filter Simple Numerical Superglobals (Cookies and Post)?
- Why is my staging subdomain not sending wordpress_logged_in cookies?
- How to delete Passwrd Protected posts cookies when a user logged out from the site
- How to save generated JWT token to cookies on login?
- WordPress Keeps Logging Out – What Tests Can I Run to Solve This?
- User Session and Stored Cookies not get removed
- Where does the cookie mo_page_views_counter come from?
- How can i get the post’s full html source by its ID?
- How to handle cookies from a WordPress plugin on a cached page?
- Login cookies set as wrong domain
- add_action in a custom plugin
- Displaying content based on drop-down menu selection sitewide
- Blurry images when loading the page first time
- Error: Can´t access facebook comment plugin admin page
- Cookies set by a plugin in wordpress for tracking
- Codeless random token generation to pass into multiple tracking links in a single page load
- Using file_get_contents within admin but keep logged in
- Identify User Language, Redirect to the corresponding page and Save the chosen language as Cookie
- Cookie value changes back to previous value after changing
- Display value of the GET parameter in a new URL page
- Block Google tracking on refuse consent of the user with plugin
- Installation failed: 504 – Gateway Timeout
- Hide response returned from WordPress REST API call
- WordPress Admin login redirect to homepage
- How can I store user preferences in WordPress and retreive them later?
- WordPress delete cookie
- Why does WordPress use cookies for /wp-admin and /wp-content/plugins for non-admin users [duplicate]
- Implementation to count page visits of unique visitors based on a cookie
- admin-ajax.php not working properly on subdomains
- Cookie set in a plugin visible in admin but not on front
- How can I save cookies to members
- set cookies for my whole site is not working
- Undefined constant error in pluggable.php
- How to resolve these findings from security audit
- ERROR: Cookies are blocked due to unexpected output – no access to FTP
- How to delete Password Protected posts cookies when a user logged out from the site
- cURL External API request displays content above other content on page
- Stop the user if login from the cookies
- syntax error, unexpected ‘while’ (t_while) please help :)
- How to create WordPress custom end point with multiple parameters?
- Plugin has added weird data in wp_options, set to autoload
- Different custom templates for product category [closed]
- Text change in Advanced Customs Fields [closed]
- How to remove bulk actions from custom post type
- After updating the WordPress getting a syntax error in the console
- Images under 1MB are not being compressed
- How to check wp_options’s rewrite_rules if current and existing are the same before flush the rules?
- What is the easiest way to rename a plugin (and also avoid plugin updates)
- Setting Email locale before retrieving gettext translations
- Changes not visible when not logged in
- Display linked articles at the bottom of post (like related posts)
- Simulating a wp page – wp page load sequence
- register_activation_hook() not working as expected
- How to redirect to same page after form submission
- Any idea how to get something like this to work? [closed]
- WordPress Ajax code is not Working
- Is there a maximum length to a WordPress Page?
- Skewed / slanted button within elementor [closed]
- WP.org acceptable iframe alternative
- I changed .live() to .on() but change is not reflected on the server
- How to find out whether a plugin is used in pages or posts?
- WooCommerce – set session with new cart item meta when updating cart item quantity [closed]
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- flush_rewrite_rules() not working with update_option_{$option}
- How to get the particular product quantity in orders in Woocommerce [closed]
- plugin dev – minimum base css specificity?
- Using WordPress to build membership Page
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- Tutor LMS problem with Paid Memberships Pro [closed]
- Is there a plugin for WordPress for creating ‘Accounts’ where all users who belong to that Account can only see Account data? [closed]
- A server-side hook failed when committing plugin code to SVN
- Custom shortcode for displaying user based on a role parameter
- Help with comments.php
- How to execute plugin and theme updates from a web hook / endpoint?
- WordPress Plugin Insert Html Code with Shortcode
- Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection
- Set WordPress Transient Expiration via Variable Value
- Vulnerability Concern From the Plugin or From Not Updating the Plugin?
- PHP Warning: Declaration of aec_contributor_list::form() should be compatible with WP_Widget::form($instance)
- How to remove index meta tag
- don’t call ajax if not plugin page
- How to use the pre_option filter before a plugin loads?
- How I can change the required capability for an admin menu without editing the plugin file?
- Why WP_Screeen doesn’t show all options with admin_body_class
- I changed font of wordpress dashboard but it is slow!
- wp_dequeue_script for a Plugin
- Location dependent rendering of locations? [closed]
- Creating a widget and missing jQuery
- SMTP Error: Could not authenticate [closed]
- How to add support for caching plugins for my own plugin?
- My custom php file keeps 404’ing in WordPress when I call it. What am I missing?