Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

OS X 10.8.3, from a terminal I am executing:

$ curl -OCv http://<URL>/<file>.dmg

I get (for 2 seconds)

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100   222  100   222    0     0  46707      0 --:--:-- --:--:-- --:--:--  108k

Then it does nothing. Back to a prompt.

I know the URL is right. It my own domain, public website. I know the file.dmg is right as well, I put it there a few mins ago to test.

I see 222K file on my desktop to, but obviously this is because it failed.

a 3.7gb DMG if that is helpful.

EDIT: I also tried $ curl -OCvi same thing occurs.

share|improve this question
What is the actual content of the file on your desktop (open it in your webbrowser)? That 222-byte file looks a lot like an HTTP error reply page. – Darth Android Apr 25 '13 at 15:45
What does curl -v http://<URL>/<file>.dmg >/dev/null say? – artistoex Apr 25 '13 at 15:45
Alternatively, what does this file contain? Can you cat it and see anything? – slhck Apr 25 '13 at 21:32
What exit code do you get? (echo $? after the curl command) – user127350 Apr 26 '13 at 12:33
Perhaps you have some sort of redirect... try -L flag. – user127350 Apr 26 '13 at 12:36

You must log in to answer this question.

Browse other questions tagged .