We need to convert this to strtol() so that we can make sure the request included a valid numerical value. Right now we interpret invalid data as being of zero length, and it might not be.