cURL / Mailing Lists / curl-users / Single Mail

curl-users

re: assign http response header to command line variable in curl

From: <analyz.oh_at_netzero.net>
Date: Sat, 26 Apr 2008 15:24:39 GMT

04/25/08

Hello:

If I have a HTTP response header sent to me from a server such as:

X-var: datadescription

and I wish to assign this to a variable, what syntax should I be using when I specify:

"vname = X-var" on the command line?

I have tried many different things that do not transfer the contents of X-var into the variable (vname).

Any help is much appreciated!

analyz

_____________________________________________________________
Click to find information on your credit score and your credit report.
http://thirdpartyoffers.netzero.net/TGL2211/fc/Ioyw6ijmNLrzqU8njjmcaYc71zbfK5shNvdPoULPR9d6TUMXBNh0ar/
Received on 2008-04-26