Simple curl wrapper for php