bash - Linux Shell Curl Command -


i have problem using curl command: have download file site of "www.example.com:8000/get.php?username=xxxx&password=xxxx" form.

now happens this: if open link browser, if file exists, part of automatic download, if link not correct, nothing happens , displayed page white.
problem using command curl -o file.txt "www.example.com:8000/get.php?username=xxxx&password=xxxx", file generated me if link correct, downloading file correctly, link not right, generating 0 byte .txt file.

how can that, if not corrected link (and therefore there no file download), no file generated me?


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -