sending curl post with file

curl -X POST -d @myfilename http://www.url.com
``
or
``
curl -XPOST 'localhost:9200/bank/_search?pretty' -d '
{
"query": { "match_phrase": { "address": "mill lane" } }
}'