Thanks again, I've got a version working now with the longer receive buffer. The use case for the long URL is couchdb replication, by the way. https://issues.apache.org/jira/browse/COUCHDB-644 Rachel