Solved

SSI  <!--#EXEC CGI="header.cgi?query --> problem

Posted on 2001-07-16
2
244 Views
Last Modified: 2013-12-25
I have a index.html file which contain a SSI call to a header cgi file. Does anyone know if my index.html contain some query can the query be pass to the header cgi file in the SSI call.

Meaning if I call the index.html file from the browser with the following query:

http://localhost/test/index.html?category=school&subject=math

can the query be pass to the SSI like this

<!--#EXEC CGI="header.cgi?category=school&subject=math -->
0
Comment
Question by:ghgan
  • 2
2 Comments
 
LVL 16

Accepted Solution

by:
maneshr earned 20 total points
ID: 6423262
ghgan,

"..Meaning if I call the index.html file from the browser with the following query:.."

Yes. that can be done. For this you have to rename your index.html file as index.shtml

here is a sample index.shtml file

<!--#EXEC CGI="header.cgi?<!--#echo var="QUERY_STRING_UNESCAPED"-->-->


Hope that helps.
0
 
LVL 16

Expert Comment

by:maneshr
ID: 6601913
ghgan,

Did you get the solution you were looking for?

Let me know.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question