cURL / Mailing Lists / curl-library / Single Mail

curl-library

Uploading Theme To Wordpress With cURL

From: Chad Rego <chad_at_supermediadownloader.com>
Date: Wed, 25 Aug 2010 19:11:34 -0500

Hi Everyone,

I am trying to upload a theme to wordpress via the upload page in wordpress admin (wp-admin/theme-install.php?tab=upload) with cUrl.exe.

I am using the following code and does not seem to work.

curl.exe -v -b cookies.txt -F "themezip=@genesis.zip" -F "_wpnonce=fcbb96ad3f&_wp_http_referer=%2Fwp-admin%2Ftheme-install.php%3Ftab%3Dupload" "http://mydomain/wp-admin/update.php?action=upload-theme"

Any help with this would be greatly appreciated.

Thanks,
Chip

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-08-26