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

  • Resolved rogalsky

    (@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%

    http://i.share.pho.to/ae7110b6_o.png

    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?

    http://wordpress.org/plugins/auto-post-thumbnail/

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.