curl-users
Re: variable use in curl
Date: Wed, 23 Apr 2008 20:58:59 -0500
On Wed, Apr 23, 2008 at 8:34 PM, analyz.oh_at_netzero.net
<analyz.oh_at_netzero.net> wrote:
> 04/23/08
> curl -i --trace traceout -H "Accept:*/*" -H "X-File-Requester: test"
> -d
> "tx=RetrieveFile&cz=415171403&tidx=278646f58911110a358cdd1c8317309942ly$3461835983593
> 54794927634&event=RetrieveFile&file=AMERI08.D4860.ZIP" https://filetransfer.financialtrans.com/tf/FANMail
>
>
> I would like to use a variable containg AMERI08.D4860.ZIP in place of the literal value: AMERI08.D4860.ZIP.
This is really a shell question, but sure. Just set the variable and
then replace the literal:
file="AMERI08.D4860.ZIP"
curl -i --trace traceout -H "Accept:*/*" -H "X-File-Requester: test"
-d "tx=RetrieveFile&cz=415171403&tidx=278646f58911110a358cdd1c8317309942ly$3461835983593
54794927634&event=RetrieveFile&file=$file"
https://filetransfer.financialtrans.com/tf/FANMail
Brock
http://bashcurescancer.com
Received on 2008-04-24