Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 84181 invoked by uid 500); 14 Mar 2002 22:32:26 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 84169 invoked from network); 14 Mar 2002 22:32:26 -0000 Received: from idiom.com (216.240.32.1) by daedalus.apache.org with SMTP; 14 Mar 2002 22:32:26 -0000 Received: from cfcl.com (cpe-24-221-169-54.ca.sprintbbd.net [24.221.169.54]) by idiom.com (8.9.3/8.9.3) with ESMTP id OAA24932 for ; Thu, 14 Mar 2002 14:32:32 -0800 (PST) Received: from [192.168.254.206] (macnas [192.168.254.206]) by cfcl.com (8.11.1/8.11.1) with ESMTP id g2EMYnG59684 for ; Thu, 14 Mar 2002 14:34:54 -0800 (PST) (envelope-from vlb@cfcl.com) Mime-Version: 1.0 Message-Id: Date: Thu, 14 Mar 2002 14:26:03 -0800 To: users@httpd.apache.org From: Vicki Brown Subject: REQUEST_URI is empty if URL data is not encoded? Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I've run into an apparent oddity between REQUEST_URI environment variable and the data in my URLs. I'm working with a CGI called "Web Crossing" (www.webcrossing.com). They create somewhat unusual URLs, e.g. /cgi-bin/WebX?14@162.wa9RaZx1api^4@.ee90bdd!tz=480 I can enter that into the address field of my browser and reach the desired page. But for the project I am doing, we are going through a proxy. So I need to munge the URL that is sent so it comes to my code instead; then I extract the part that needs to be sent to WebX and send it using Perl's LWP::Request module. If I don't URL encode the WebX URL, in my munged version, e.g. .../wsforums.main/a_href/cgi-bin/WebX?14@162.wa9RaZx1api^4@.ee90bdd!tz=480 the REQUEST_URI and QUERY_STRING variables come to my code empty. ENV{PATH_INFO} = /a_href/cgi-bin/WebX ENV{QUERY_STRING} = ENV{REQUEST_URI} = If I DO URL encode the WebX URL, e.g. .../wsforums.main/a_href/cgi-bin/WebX?14@162.wa9RaZx1api%5E4@.ee90bdd" the REQUEST_URI and QUERY_STRING variables are set as expected ENV{PATH_INFO} = /a_href/cgi-bin/WebX ENV{QUERY_STRING} = 14@162.wa9RaZx1api%5E4@.ee6b280 ENV{REQUEST_URI} = ...a_href/cgi-bin/WebX?14@162.wa9RaZx1api%5E4@.ee6b280 I've found some information that tells me that sometimes "older" versions of Apache didn't fill REQUEST_URI. We're running Apache/1.3.6 (Unix) ApacheJServ/1.0 Help? -- - Vicki Vicki Brown ZZZ Journeyman Sourceror: P.O. Box 1269 zz |\ _,,,---,,_ Scripts & Philtres San Bruno, CA zz /,`.-'`' -. ;-;;,_ Perl, Unix, MacOS 94066 USA |,4- ) )-,_. ,\ ( `'-' mailto:vlb@cfcl.com '---''(_/--' `-'\_) http://www.cfcl.com/~vlb --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org