Rework support for libcurl-based input to parser.