Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3E420EC75 for ; Mon, 11 Mar 2013 19:47:58 +0000 (UTC) Received: (qmail 80144 invoked by uid 500); 11 Mar 2013 19:47:58 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 80097 invoked by uid 500); 11 Mar 2013 19:47:57 -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 80084 invoked by uid 99); 11 Mar 2013 19:47:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Mar 2013 19:47:57 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.139.212.166] (HELO nm7.bullet.mail.bf1.yahoo.com) (98.139.212.166) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 11 Mar 2013 19:47:51 +0000 Received: from [98.139.212.144] by nm7.bullet.mail.bf1.yahoo.com with NNFMP; 11 Mar 2013 19:47:30 -0000 Received: from [98.139.212.233] by tm1.bullet.mail.bf1.yahoo.com with NNFMP; 11 Mar 2013 19:47:30 -0000 Received: from [127.0.0.1] by omp1042.mail.bf1.yahoo.com with NNFMP; 11 Mar 2013 19:47:30 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 147798.10643.bm@omp1042.mail.bf1.yahoo.com Received: (qmail 11139 invoked by uid 60001); 11 Mar 2013 19:47:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1363031250; bh=TUzRFE7CZZyLZ4ZpEyQ3DH3OYllkDUvZx2yYYimcrPY=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=WxAQ4xIV06ZlnvHaxgIQAbXLyVQAbzlXyieU9kMQTecL/VJ8koA8A1ZuWBrcKh3M/p4COHuBHFgWBmQ/f1m5uirad4qbZ6ZAe1JpTNgB3+MLfKM1CCGAhTfDg8RNjpWxiqN/D+/T42I2VhGHbKmXQ2tQ0E8zefM5lcb3NhKjrB0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Hjjif0dRPfnNzuFhWPg8EQ34U0bAJn+G/9kcgoRHKon+VtGjiTzsTUwcCreVytL6udILDJYh5MvyWm4WHDbpGDH9Jgf9OLSuIdeQ4Mo1DnhZITyBJoxr4DzzKGfEaE1vDQrj2BdSeE1aeTXfDAzlge35Abud56XQ0n7jU3twqcI=; X-YMail-OSG: nvvqGoEVM1nUP7GEnJ_JhMdIO8.UQklKvX0Duebp5snOiHR yF.ZiXAyUzy3GCFOjq_d9h4zRXE1ka25sc2pFAg6TyEot.Kwa4p_kSgGNTvc m4RsE.6bDY4xtSJHnxm5Uk.e4uESZTrr1mowq3D_10C_.4sYQ2dxPz3d8uqW 80fHf.VppFXQCujt3vxDwVjMLx0G6eeI8IVlfw05TwseC0Zd60JUw0Pco3Xx uNZMkzKNTq1vVvcVqEMohThUalSzEHKh_kTuWVdPzpi8OLq7E_i2IOAgR2v0 aWaU2rLKNn2J2aeyGenaJZGpBDQhmEifcA1OW7e3tly0L9_cawepri5LGTvH EKPwy07uUDdYxyyTyd7FmHbfO4ViO6jNJKLIgPmBgVfAx955QJy4vPE_cImJ kkXLVmeNRFodyuTWIVXk77De_9.LnGUOCaS05eP_TRKkjyqm2HJ6RmSaALuC 82dTfQSF8uL4- Received: from [38.104.195.22] by web160301.mail.bf1.yahoo.com via HTTP; Mon, 11 Mar 2013 12:47:29 PDT X-Rocket-MIMEInfo: 002.001,dGhhdCdzIHdoYXQgaXMgbnVsbCBJJ3ZlIGJlZW4gdGFsa2luZyBhYm91dCBwYXN0IDIgd2Vla3MhIQoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCiBGcm9tOiBJc3NhYyBHb2xkc3RhbmQgPG1hcmdvbEBiZWFtYXJ0eXIubmV0PgpUbzogTmNlIFJ0IDxuY2VfcnRAeWFob28uY29tPiAKQ2M6IG1vZHVsZXMtZGV2QGh0dHBkLmFwYWNoZS5vcmcgClNlbnQ6IFN1bmRheSwgTWFyY2ggMTAsIDIwMTMgMTI6NTQgQU0KU3ViamVjdDogUmU6IHNvbWUga2V5IGZpZWxkcyBvZiByZXF1ZXN0X3JlYyBhcmUBMAEBAQE- X-Mailer: YahooMailWebService/0.8.137.519 References: <1362441006.68134.YahooMailNeo@web160305.mail.bf1.yahoo.com> <1362451213.32498.YahooMailNeo@web160306.mail.bf1.yahoo.com> <1362453190.81878.YahooMailNeo@web160305.mail.bf1.yahoo.com> <1362601843.6153.YahooMailNeo@web160301.mail.bf1.yahoo.com> <5137A86E.3090803@cord.dk> <1362604885.95981.YahooMailNeo@web160303.mail.bf1.yahoo.com> <51384B43.3060905@beamartyr.net> <1362770183.3937.YahooMailNeo@web160301.mail.bf1.yahoo.com> <513C4A37.70004@beamartyr.net> Message-ID: <1363031249.10194.YahooMailNeo@web160301.mail.bf1.yahoo.com> Date: Mon, 11 Mar 2013 12:47:29 -0700 (PDT) From: Nce Rt Reply-To: Nce Rt Subject: Re: some key fields of request_rec are null To: "modules-dev@httpd.apache.org" In-Reply-To: <513C4A37.70004@beamartyr.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1332810471-1250720809-1363031249=:10194" X-Virus-Checked: Checked by ClamAV on apache.org --1332810471-1250720809-1363031249=:10194 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable that's what is null I've been talking about past 2 weeks!!=0A=0A=0A________= ________________________=0A From: Issac Goldstand =0A= To: Nce Rt =0ACc: modules-dev@httpd.apache.org =0ASent: = Sunday, March 10, 2013 12:54 AM=0ASubject: Re: some key fields of request_r= ec are null=0A =0AUnicasting is ok, but risky - I often lose lots of unicas= ts to spam, and =0Athen there's no list to back me up :)=0A=0AAlso, then ot= her folks in the future don't get their answers...=0A=0Ar->parsed_uri->sche= me=0A=0Ahttp://ci.apache.org/projects/httpd/trunk/doxygen/structrequest__re= c.html=0A=0A=A0 Issac=0A=0AOn 08/03/2013 21:16, Nce Rt wrote:=0A> I am uni= casting because I didn't hear from others for multiple postings.=0A> feels = like spamming the list.=0A>=0A> I am still trying to figure out how to get = the Scheme (like http,=0A> https,..) info from the incoming request in a cu= stom handler function.=0A>=0A> --------------------------------------------= ----------------------------=0A> *From:* Issac Goldstand =0A> *To:* modules-dev@httpd.apache.org=0A> *Sent:* Thursday, March 7, = 2013 12:09 AM=0A> *Subject:* Re: some key fields of request_rec are null=0A= >=0A> On 06/03/2013 23:21, Nce Rt wrote:=0A>=A0 >=0A>=A0 >=0A>=A0 > A custo= m handler which is registered to run APR_HOOK_FIRST has these=0A> fields nu= ll when processing http request:=0A>=A0 >=A0 =A0 =A0 r->content_type, r->pa= rsed_uri.scheme=0A>=A0 >=0A>=A0 > the http request on the wire has the cont= ent_type header set.=0A>=A0 >=0A>=A0 > r->parsed_uri.path is not null thoug= h.=0A>=A0 >=0A>=A0 >=0A>=A0 > apache is configured as reverse proxy here.= =0A>=A0 >=0A>=0A> Hi Nce=0A>=0A> 1) You didn't say what handler - I assume = you mean the default response=0A> handler=0A> 2) Although request_rec might= be misleading these days with many=0A> server-side frameworks distinguishi= ng between "Response" and "Request"=0A> objects, it doesn't quite work that= way in Apache; the request_rec has=0A> worked pretty much the way it does = for a loooooooong time.=A0 So=0A> r->content_type is actually used to set t= he *response* content type.=0A> You might want to get Content-Type from r->= headers_in=0A>=0A> All the best,=0A>=A0 =A0 Issac=0A>=0A> --1332810471-1250720809-1363031249=:10194--