Fixed a bug with curl example

The curl example had some outdated examples.  Updated to fit with the new way of doing things.