curl-users
Re: variable use in curl
Date: Thu, 24 Apr 2008 02:09:05 GMT
Thank you very much! I appreciate it.
analyz
-- "Brock Noland" <brockn_at_gmail.com> wrote:
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
_____________________________________________________________
Click here to find experienced pros to help with your home improvement project.
http://thirdpartyoffers.netzero.net/TGL2211/fc/Ioyw6ijmcn0gkTw2SundG4GS4lUzMpqOCNCYEquXMliAY5vwsXhJVN/
Received on 2008-04-24