• Resolved usethe23

    (@usethe23)


    Hi,

    I’m trying to trigger the Sync To WordPress with :

    curl –data “next_ad_int-task=sync-to-wordpress&auth-code=mycode” https://mywebsite.com/wp-admin/admin.php

    but i get :

    <!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”>
    <html><head>
    <title>401 Unauthorized</title>
    </head><body>
    <h1>Unauthorized</h1>
    <p>This server could not verify that you
    are authorized to access the document
    requested. Either you supplied the wrong
    credentials (e.g., bad password), or your
    browser doesn’t understand how to supply
    the credentials required.</p>
    </body></html>

    I have in my apache server this configuration for the VirtualHost:

    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
    NTLMAuth on
    NTLMBasicAuth on
    NTLMBasicRealm MYWEBSITE.COM
    AuthType NTLM
    AuthName “MYWEBSITE”
    NTLMBasicAuthoritative off
    NTLMAuthHelper “/usr/bin/ntlm_auth –helper-protocol=squid-2.5-ntlmssp”
    Require valid-user

    What should i change to make it work ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter usethe23

    (@usethe23)

    I’ve added Require method POST and i don’t have the error message anymore.
    But i don’t have any output on the screen. Should there be anything that shows that it is triggered?

    Plugin Author schakko

    (@schakko)

    You have to provide the NTLM credentials when calling the script.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wget trigger the Sync To WordPress’ is closed to new replies.