check_chunked revision b8d55029467b9f139d081cf38c6d06ff45e742a9
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Copyright 2000-2004 Apache Software Foundation
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Licensed under the Apache License, Version 2.0 (the "License");
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# you may not use this file except in compliance with the License.
44faeccf479dbc70538c261f148f9ad6a8b5ed31artem# You may obtain a copy of the License at
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Unless required by applicable law or agreed to in writing, software
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# distributed under the License is distributed on an "AS IS" BASIS,
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# See the License for the specific language governing permissions and
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# limitations under the License.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# This is meant to be used on the raw output of an HTTP/1.1 connection
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# to check that the chunks are all correctly laid out. It's easiest
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# to use a tool like netcat to generate the output. This script
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# *insists* that \r exist in the output.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# You can find netcat at avian.org:/src/hacks/nc110.tgz.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# must toss headers