Ah. Ugly. We probably should make curl support that. But then this is fine
for now.