This should have been easy but for some reason it's not:
Trying to run a simple curl
command, get it's output, and do stuff with it.
cmd='curl -v -H "A: B" http://stackoverflow.com'
result=`$cmd | grep "A:"`
...
The problem - the header "A: B" is not sent.
The execution of the curl command seems to ignore the header argument, and run curl twice - second time with "B" as host (which obviously fail).
Any idea?