cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Uploading Theme To Wordpress With cURL

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 25 Aug 2010 22:48:36 -0700

On Wed, Aug 25, 2010 at 07:11:34PM -0500, Chad Rego wrote:
> 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.

How does curl's log output compare with the output you get from running
LiveHttpHeaders from Firefox?

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