I just followed the curl function example.