Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 38172 invoked from network); 14 Jul 2009 11:40:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jul 2009 11:40:20 -0000 Received: (qmail 74576 invoked by uid 500); 14 Jul 2009 11:39:11 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 74029 invoked by uid 500); 14 Jul 2009 11:39:10 -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 73147 invoked by uid 99); 14 Jul 2009 11:38:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2009 11:38:01 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tevans.uk@googlemail.com designates 74.125.78.145 as permitted sender) Received: from [74.125.78.145] (HELO ey-out-1920.google.com) (74.125.78.145) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2009 11:37:49 +0000 Received: by ey-out-1920.google.com with SMTP id 13so647889eye.48 for ; Tue, 14 Jul 2009 04:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=brW8flwWhq13u19hudmeOGSpzia18M8t6uonyOX/3fs=; b=TaFooTuYRb2rXxMxHY1dac+OOaErxVaSVRJ+UK4OXSHfaHCGPT0lgSUuxPDJmi53lF wkDLmJ8xnHpHyg3mNtC8IOTj3FChrGvp1r+tCkDv51BkG9PZIxd2us+suleteIU3sTJD GrstxYXa7jA1z7Es+gDHhge/PTQDINZOO2oUU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=f1U39li0X0ECGYHoSJckHcdBr8rqEq6F7fXONjHRrx+/ld7u5y6b43B32lfdDcsO+G jDoXHgni6K+Duzeq3JMkbB0/njpI+ejABjWRiccFzg0CZOV/H8YlNTZF0ZW+grxXBf9w vCtx5u/KrpBqxNIWi5H08+7raGyVdxmXWq+xo= Received: by 10.210.89.7 with SMTP id m7mr6475909ebb.14.1247571449656; Tue, 14 Jul 2009 04:37:29 -0700 (PDT) Received: from ?127.0.0.1? (87-194-39-182.bethere.co.uk [87.194.39.182]) by mx.google.com with ESMTPS id 7sm428376eyb.25.2009.07.14.04.37.28 (version=SSLv3 cipher=RC4-MD5); Tue, 14 Jul 2009 04:37:28 -0700 (PDT) Subject: Re: Module that forward requests From: Tom Evans To: modules-dev@httpd.apache.org In-Reply-To: <24476948.post@talk.nabble.com> References: <24461810.post@talk.nabble.com> <24476948.post@talk.nabble.com> Content-Type: text/plain Date: Tue, 14 Jul 2009 12:37:27 +0100 Message-Id: <1247571447.2437.1704.camel@strangepork.london.mintel.ad> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 2009-07-14 at 03:22 -0700, ricardo13 wrote: > Hi, > > Yesterday, I studied mod_rewrite very much and I believe that > fully_qualify_uri() function is where mod_rewrite does proxy. > > That's right ?? This is way ?? > > Other question, I copied fully_qualify_uri() function, but when print value > r->filename give error: > For example, in code: > > r->filename = apr_psprintf(r->pool, "%s://%s%s%s%s", "http", "ip_machine", > "port_machine", r->filename); > > ap_log_error(APLOG_MARK, APLOG_CRIT, rv, ap_server_conf,"MEU_MODULE PROXY: > %s", r->filename); > > In error_log shows: > MEU_MODULE PROXY: > http://ip_machine:port_machine(null)\x18#W\xb7[$\x07\bHl\xef\t\xd4m\xef\t\xdcm\xef\t\x04\n\xef\t > > What's this ? > > Thank you. > Ricardo > It's called C. Character arrays are null terminated, and if they are not, things that print it tend to keep printing random bits of memory until they happen to hit a null byte. Cheers Tom