Support » Plugin: Auto Post Thumbnail » How to use APT with cURL

  • Resolved rogalsky


    Hi there,
    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?

Viewing 1 replies (of 1 total)
  • ok, problem solved.
    I did not notice that there is a POST request to admin-ajax.php in auto-post_thumbnails.php

    sorry, my bad

Viewing 1 replies (of 1 total)
  • The topic ‘How to use APT with cURL’ is closed to new replies.