Title: Wget trigger the Sync To WordPress
Last modified: May 9, 2017

---

# Wget trigger the Sync To WordPress

 *  Resolved [usethe23](https://wordpress.org/support/users/usethe23/)
 * (@usethe23)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/wget-trigger-the-sync-to-wordpress/)
 * Hi,
 * I’m trying to trigger the Sync To WordPress with :
 * curl –data “next_ad_int-task=sync-to-wordpress&auth-code=mycode” [http://mywebsite.com/wp-admin/admin.php](http://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](https://wordpress.org/support/users/usethe23/)
 * (@usethe23)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/wget-trigger-the-sync-to-wordpress/#post-9111834)
 * 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](https://wordpress.org/support/users/schakko/)
 * (@schakko)
 * [9 years ago](https://wordpress.org/support/topic/wget-trigger-the-sync-to-wordpress/#post-9182613)
 * 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.

 * ![](https://ps.w.org/next-active-directory-integration/assets/icon-256x256.png?
   rev=2517660)
 * [Next Active Directory Integration](https://wordpress.org/plugins/next-active-directory-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/next-active-directory-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/next-active-directory-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/next-active-directory-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/next-active-directory-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/next-active-directory-integration/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [schakko](https://wordpress.org/support/users/schakko/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/wget-trigger-the-sync-to-wordpress/#post-9182613)
 * Status: resolved