I’m using the recently downloaded wp-e-commerce.3.6.12 plugin for WordPress. This post walks through the steps I took to get cURL up and running on a Windows 2003 server (but the process should work for all win32 platforms).
1. Go to http://curl.haxx.se/dlwiz/ This is the download wizard page that will walk you through the version you need.
2. Download msvcr70 from http://www.dll-files.com/dllindex/dll-files.shtml?msvcr70
3. This is a good link, if a bit complicated to figure out http://www.phpbuilder.com/lists/php-windows/2001051/0335.php
Help with configuring cURL
Tip for Installing cURL with AppServ development server on Windows
If you are running AppServ as a WAMP development environment on a Windows machine, you may experience difficulty installing cURL. Here are some helpful steps:
First go to the PHP directory and copy the following libraries to the windows/system32 dir.
ssleay32.dll
libeay32.dll
Open the php ini file and remove the ; from extension=php_curl.dll
Reboot your server.
A PHP script that with automatically log you in to a website can be found here:
<?php
// Set username and password values below…
$username = ‘username’;
$password = ‘password’;
// Initialize cURL
$ch = curl_init();
// Set the URL
curl_setopt($ch, CURLOPT_URL,“http://www.theubm.com/index.php”);
// Accept cookies
curl_setopt($ch,CURLOPT_COOKIEFILE,1);
// Submit our POST values (EG: username and password)
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, “username=$username&password=$password”);
// Execute…
$output = curl_exec($ch);
// Display the result
echo $output;
?>
0 comments