Good article! I prefer curl personally. You made a typo in the curl code example. In the third line with curl_setopt you use the variable $curl which should be $ch like the others :)