• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

SSI Parameter Passing Problem  RSS feed

 
Ranch Hand
Posts: 835
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably not the best location for this but the SSI is within a HTML page (if needed to be moved please do :-)). I have a SSI



that is included in a HTML Page. I want to pass in a parameter or two into this script but trying to add on an argument results in a SSI failure. How can I pass in parameters into this script via SSI? TIA for any helpful advice.
 
Saloon Keeper
Posts: 2504
321
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which web server / framework are you running (httpd, Tomcat, etc.)?

I haven't use Service Side Includes for a long time so I could be wrong, but shouldn't you be using cmd= rather than cgi= to execute a script and include the results in the page?

    <!--#exec cmd="/cgi-bin/dir1/myscript.pl arg1 arg2" -->
 
The first person to drink cow's milk. That started off as a dare from this tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!