cURL: include effective URL with callbacks