curl

Using php and curl to automate drupal tasks such as node adding or user adding

Posted by andu
Fri, 2006-09-29 23:06

A while ago I posted how I was using php and curl to do automatic image uploading to Drupal and geolocating images. Some people requested the script, others arrive here from Google by searching about the same thing, so here is a small tutorial on how to do it.

First of all you'll need the libcurl extension to php installed. The code snippets I'll present here might work if you'll convert them to Snoopy, but libcurl is faster.

What we'll do: we are going to login into Drupal and we are going to perform different operations.