Forum Discussion
Tom_Lebel_53961
Nimbostratus
Dec 27, 2005Need to pass the entire CGI collection
First off, be gentle, I'm a newbie.
We are installing BigIPs and moving many of our pre-existing web apps behind them. Many of our apps use variable fro the CGI collection, such as auth_user,script_name, server_name, etc. How do I write an iRule to pass these to the servers so the appplications can still use them?
Thank you.
- A majority of the CGI variables are pulled from the connection established and then converted into environment variables.
!/bin/sh date=`date -u '+%a, %d %b %Y %H:%M:%S %Z'` cat << EOF Content-type: text/plain Expires: $date CGI printenv EOF echo 'Date:' date echo echo 'Id:' id echo echo 'Env:' printenv echo if [ "$CONTENT_LENGTH" != "" ] ; then if [ "$CONTENT_LENGTH" -ne 0 ] ; then echo 'Input:' echo dd bs=1 count=$CONTENT_LENGTH echo fi fi
- Matthew_Newby_1
Nimbostratus
Joe (and anyone else who may care to reply), - Matt,
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects