Mailing Lists
| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
Re: assign http response header to command line variable in curl
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 26 Apr 2008 13:28:58 -0700
On Sat, Apr 26, 2008 at 03:24:39PM +0000, analyz.oh_at_netzero.net wrote:
Assuming a Bourne shell, how about:
vname=`curl -s -I http://example.com/ | grep -i ^X-var: | cut -d" " -f2-`
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-04-26 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info