Added in fixes for issue #3 in order to work around response code 414 errors.