wip curl
adapt the http request example to the new curl stuff