This code is essentially all from Alex Schultz, reposted here for a handy local reference. I changed the api call to post, and added bits for tags and description.
When the original delicous-PHP code that I had been using stopped working, I hunted around for a new solution. There are a handful of big classes that didn’t do the trick for me, but this straightforward curl code works well. My single bookmarklet to post links to Txp and delicious is back in action.
TextDrive Joyent servers, it’s probably necessary to enable curl support for PHP.
Update: Sometimes the https certification verification causes problems. Adding “curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);” appears to solve this problem.