Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D0E5D786 for ; Thu, 13 Dec 2012 03:04:52 +0000 (UTC) Received: (qmail 79325 invoked by uid 500); 13 Dec 2012 03:04:49 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 79087 invoked by uid 500); 13 Dec 2012 03:04:48 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 79044 invoked by uid 99); 13 Dec 2012 03:04:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 03:04:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.210.48] (HELO mail-da0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 03:04:40 +0000 Received: by mail-da0-f48.google.com with SMTP id k18so506572dae.35 for ; Wed, 12 Dec 2012 19:04:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:subject:in-reply-to:message-id:references:user-agent :mime-version:content-type:x-gm-message-state; bh=/8QOxgwq7dO4uiweStXrBsnC5NVSFNL/HLTkYysHQG4=; b=haUU4jy0XeoJIzwABsjjkrFikA4JJA3BCXR0AUq6aCIf3jQ5CVmy1mSVESwT2l5Q0S HUlxX5O67j41iT661rrOXap5AGJUN0/h1z1TacQZZeB38VRIVY6Wlz7My5Lw2xGM2J85 M32DpIn2d4T1GZyTcwIljnlanBH8UClXKiBawyRpcLt4qTAYw+nxnFISfXakV/RmItj3 1WAVb39ZhvOh4OXOJULDg2eDmDJWqSy205bmPU58aInlxyKScCTp7dd7n2PeQGZltQkf QiOb4KK9L4BpkF4J4L9HH3Cpvii1CpYZkH9mNK9sMS9CNJLWfJOD+qHgPrtmFJmm8nZ9 647Q== Received: by 10.68.231.69 with SMTP id te5mr947193pbc.81.1355367860126; Wed, 12 Dec 2012 19:04:20 -0800 (PST) Received: from frisbee.local (250.185-62-69.ftth.swbr.surewest.net. [69.62.185.250]) by mx.google.com with ESMTPS id oj5sm146256pbb.47.2012.12.12.19.04.18 (version=SSLv3 cipher=OTHER); Wed, 12 Dec 2012 19:04:19 -0800 (PST) Date: Wed, 12 Dec 2012 19:04:15 -0800 (PST) From: Chris Hostetter To: solr-user@lucene.apache.org Subject: Re: does Solr support CGI? In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Gm-Message-State: ALoCoQkxZrOrN8f4/Wat/wB9EuqX4j//9qkgcBa3scpsLVrUlHq9sIFR1Py/GDrbmQYd2zoARtBu X-Virus-Checked: Checked by ClamAV on apache.org : I am a little confused about what exactly a CGI is. According to my : understanding, Common gateway interface tells the webserver how to pass : data back and forth to and from an application. user (client) requests for : a page---->webserver (CGI)----> server side program (may be Solr). Could : you please tell me in details what exactly a CGI and why Solr cannot : support it? CGI means diff things to diff people. At it's core, CGI was the early foundation of the basic principles for how browsers should encode form data in order to communicate that data to a server, either in the URL, or in the HTTP request body -- this is what eventually became "application/x-www-url-form-encoded" Confusingly in the early days of CGI, it also defined a general mechansim for HTTP servers to execute forked processes per request, and how to convey to those processes information about the request via process ENVIRONMENT variables (not just the encoded "CGI request params" but also info about the HTTP headers) and how to interpret the STDOUT/STDERR of the forked as http headers & response content to send back to the client. As a java webapp, solr most certianly "supports CGI" in the first ocntext -- you can see that plainly in the examples of any sort of Solr request URL. Solr does not "support CGI" in the second context, because Solr runs as java webapp, not a forked process. Your questions smells fishy however, particularly since you asked "if Solr support CGI" and then stated "I am a little confused about what exactly a CGI is" ... if you don't know what it is, then why are you asking about it? what is your actual goal? https://people.apache.org/~hossman/#xyproblem XY Problem Your question appears to be an "XY Problem" ... that is: you are dealing with "X", you are assuming "Y" will help you, and you are asking about "Y" without giving more details about the "X" so that we can understand the full issue. Perhaps the best solution doesn't involve "Y" at all? See Also: http://www.perlmonks.org/index.pl?node_id=542341 -Hoss