2

I Have a cgi script written with bash and i have to read a POST variable sent to this file. I am not good at bash scripting so i really need this help.

From a php script I send a POST variable named log_message to this cgi but i don't know how to parse the POST var from the header.

Any help?

3
  • Can you show what you have so far? Also show what the data looks like. Commented Mar 18, 2010 at 17:51
  • i found solution with tr and sed commands i only had to do something similar to urldecode ^^ Commented Mar 18, 2010 at 18:10
  • See stackoverflow.com/questions/3919755/…. Commented May 17, 2014 at 4:19

1 Answer 1

1

those seds should all have a g, as in:

sed 's/whatever/whatever/**g**'

otherwise it stops after the first replace, which is not generally the desired behaviour.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.