Figure out the request length before running sed()