Ongoing maintenance of this nature is something often ignored by the "I could rewrite that, easy" folks.
Which is the exact problem of "I could rewrite this in a weekend!" scenario with curl, right?