I just went looking through my code and it's all been customized to a large degree, most of which is for posting XML. I'm a bit busy today, so you may want to do a quick search on the net for "curl php example". Then, if you get stuck, post your code and we can go from there.
Sorry about that. Could have sworn that I'd have something just sitting around ready...