WordPress.org

Ready to get started?Download WordPress

Forums

Auto Post Thumbnail
[resolved] How to use APT with cURL (2 posts)

  1. rogalsky
    Member
    Posted 6 months ago #

    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/

  2. rogalsky
    Member
    Posted 6 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic