RESTful PUT calls with PHP and Curl
Tuesday, April 8th, 2008UPDATE: There’s a faster way to do this over here.
Curl quickly becomes your best friend when working with web services. Unfortunately making PUT calls with PHP isn’t completely straight forward. Sure there’s CURLOPT_PUT but how do you attach a file that’s not really a file but a string in memory? Fortunately, PHP 5.2 introduces memory streams which can be treated as file handles. (more…)
