I would like to use APT with cUrl. I have many many WordPress I want to use my script to login to WordPress and auto click button "Generate Thumbnails". There is no problem with login to WordPress, problem is when script send POST with varibles: _wpnonce ( yes, I got valid token ), _wp_http_referer, generate-post-thumbnails but APT stop in 0%
My send_post_request looks like this:
$request_data = "_wpnonce=".$_wpnonce."&_wp_http_referer=".$domain_name."/wp-admin/options-general.php?page=generate-post-thumbnails&generate-post-thumbnails=Generate%20Thumbnails";
Any ideas how to fix this?