how to use Curl cmd
curl -X POST -H "x-api-key: xscsss" -F "file=@/path/to/OLSTXNRF_tcbs_20191226_01.TXT" https://host:2189/ftpdata/tcbs/user_input/OLSTXNRF_tcbs_20191226_01.TXT Method: POST x-api-key: header -F chỉ ra là file file: là filename @/path/to/OLSTXNRF_tcbs_20191226_01.TXT : Đường dân tới file, bao gồm cả @ https://host:2189/ftpdata/tcbs/user_input/OLSTXNRF_tcbs_20191226_01.TXT : là url api ------------------------------------------------------------------------------------ pull a GET request from a url or uri curl http://www.example.com/index.html pull and save response to a file curl http://www.example.com/index.html -o out.exxxx -------------------------------------------------------------------------------------- post data to url curl -d '{"id":9,"name":"baeldung"}' -H 'Content-Type: application/json' http://localhost:8082/spring-rest/foos/new pass a file containing ...