Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 38708 invoked from network); 25 May 2007 08:19:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 May 2007 08:19:57 -0000 Received: (qmail 25964 invoked by uid 500); 25 May 2007 08:20:00 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 25943 invoked by uid 500); 25 May 2007 08:19:59 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 25934 invoked by uid 99); 25 May 2007 08:19:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2007 01:19:59 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=MISSING_HEADERS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of anique@meglakor.co.za designates 196.25.240.75 as permitted sender) Received: from [196.25.240.75] (HELO ctb-mesg5.saix.net) (196.25.240.75) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2007 01:19:52 -0700 Received: from [192.168.0.8] (dsl-240-122-232.telkomadsl.co.za [41.240.122.232]) by ctb-mesg5.saix.net (Postfix) with ESMTP id 2C57D372D for ; Fri, 25 May 2007 10:19:22 +0200 (SAST) Message-ID: <46569C09.5080808@meglakor.co.za> Date: Fri, 25 May 2007 10:19:21 +0200 From: Anique van der Vlugt Reply-To: anique@meglakor.co.za Organization: Meglakor User-Agent: Thunderbird 1.5.0.10 (X11/20070403) MIME-Version: 1.0 CC: modules-dev@httpd.apache.org Subject: Re: Looking for info wrt requests and no newline References: <4652B1A1.9070004@meglakor.co.za> <5280fae50705220217s6a60ea31y8edb83bb312560cd@mail.gmail.com> <4652BA0C.30706@meglakor.co.za> <46537AC9.4080901@rowe-clan.net> <4653E4E8.5070305@meglakor.co.za> In-Reply-To: <4653E4E8.5070305@meglakor.co.za> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Just to let you know ... My module is finally working now. The pointers were spot on. Many thanks Bill. Anique van der Vlugt wrote: > Thanks Bill for the pointers (c.f. mod_echo, mod_http, mod_ftp), I will > have a look. Many thanks :) > > *Anique* > > William A. Rowe, Jr. wrote: >> Anique van der Vlugt wrote: >>> I should have had my morning coffee before submitting this *wink* >>> >>> David Wortham wrote: >>>> Anique, >>>> I'm a little confused by your question. >>>> >>>> AFAIK, HTTP headers end in a newline which seperates them from the >>>> next >>>> line of the header. You don't _have_ to respond to the full URI in the >>>> GET/POST/etc header line. Your module can modify the incoming >>>> request or >>>> your module can do something like what mod_rewrite does and match only >>>> part >>>> of the request URI (by using a partial-line Regular Expression). Or >>>> did you >>>> mean something completely different when you asked "Is there anyway of >>>> accepting requests which end in anything other than a newline"? >>>> >>>> I don't think it's pertinant to answering your question, but I also >>>> don't >>>> understand what you mean when you say your module "accept[s] requests >>>> from a >>>> 3rd party". Don't all Apache requests respond to the same third party >>>> that >>>> initiated the request? >>> We are integrating a credit card POS machine (which is what I meant by >>> 3rd party) with an Apache server that does the request handling so we >>> are trying to write an Apache module that handles requests from the POS >>> device. The device sends a string terminating with a checksum and NOT a >>> newline character. So, we are not using any headers etc just a request >>> string, if that makes sense? >> >> It does (to me, I've done similar long before there was a >> public-internet). >> >> The trouble is, that is NOT HTTP protocol. You will need to write your >> very own protocol module. c.f. mod_echo, mod_http, mod_ftp. >> >> Bill >> >