Well, as you probably know that won't work because it creates a GET request, not a POST....
The easiest thing to do would probably be to use the cURL functions to build up a proper POST request.
If you want to do all the http yourself you could use fsockopen() and build the request by hand.