Written by Jonathon Marshall (jwm at 1101001 dot com) for importing custom encyclopedia datasets from BMEzine.com into our own Wikipedia.
The code is simple enough that I will just include it here. I'm happy to answer any questions, but it's pretty straight forward.
'wpEdittime' => '20060412223042',
'wpTextbox1' => '$ENCYC_TEXT',
# This value may be different for your site.
# Just grab this value from the wiki forms source.
'wpAutoSummary' => 'd41d8cd98f00b204e9800998ecf8427e'
$PostString = NULL;
foreach($PostFields as $key=>$value)
$PostString .= '$key='.urlencode($value).'&';
# Remove the trailing '&' from our post string
# - sloppy but effective
$PostString = substr($PostString,0,-1);
# Post Data
$PostURL = 'http://yourdomain.com/index.php?title='.$ENCYC_TITLE.'&action=edit';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $PostURL);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $PostString);
These details are provided for information only. No information here is legal advice and should not be used as such.