Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C8B5103EA for ; Tue, 14 Jan 2014 16:39:35 +0000 (UTC) Received: (qmail 16444 invoked by uid 500); 14 Jan 2014 16:39:29 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 16369 invoked by uid 500); 14 Jan 2014 16:39:29 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 16358 invoked by uid 99); 14 Jan 2014 16:39:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jan 2014 16:39:28 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of k.lingaraja19@gmail.com designates 209.85.219.42 as permitted sender) Received: from [209.85.219.42] (HELO mail-oa0-f42.google.com) (209.85.219.42) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jan 2014 16:39:23 +0000 Received: by mail-oa0-f42.google.com with SMTP id n16so9825605oag.15 for ; Tue, 14 Jan 2014 08:39:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=uK+H9GIjDk+cN1vJhZE5OmVKq0RvcDlnp10znZrKKZ8=; b=iGhJPRGA+n0gdWwkmk/Y5aYdh5ESGFWCM1oVsKSJd//BhPIyqGxZCWHfLCKJCSAm7e aT4/X/svqJfteIDnX5qSUBTOvAX/lX2fKecYUy5uWIB+3mpIGQvcM6LsjiEBhZZDCtux Kux+gXFC4l7/bXYu/YRL+PhMnYfSERgFHmhzmbvB4lELiq21Cqugz9CDsCrWj/jthZRH fgoq4BveiZ02ydYut5al1StZsHTk1x8x/ypVSDdIltYfZtgblkP5s1++3x1GQpIMntGu 2xRNlVbMjs0OaBjs3Y3CuAXZ2g7o0P0Y44RwubZdgqlmcuWDEGNWdtzKxHPNFRwmMlix Gesg== MIME-Version: 1.0 X-Received: by 10.60.85.37 with SMTP id e5mr1835249oez.21.1389717542921; Tue, 14 Jan 2014 08:39:02 -0800 (PST) Received: by 10.182.0.10 with HTTP; Tue, 14 Jan 2014 08:39:02 -0800 (PST) Date: Tue, 14 Jan 2014 22:09:02 +0530 Message-ID: Subject: How to validate or parse HTTP request headers ( tomcat version 6.0.18 ) From: kalasareddy lingaraja To: users@tomcat.apache.org Content-Type: multipart/alternative; boundary=089e0111b4547beafb04eff0d48a X-Virus-Checked: Checked by ClamAV on apache.org --089e0111b4547beafb04eff0d48a Content-Type: text/plain; charset=ISO-8859-1 Hi i have task to validate or parse following http header Accept Accept-Charset Accept-Encoding Accept-Language Accept-Datetime Content-Length Content-MD5 Content-Type lets take Accept-Language as an example , if header language comes other than en-us i should reject the request with customized code response. let me know ways to achieve the task? can we do with any configuration files ? we are using tomcat 6.0.18 waiting for earliest replay --089e0111b4547beafb04eff0d48a--