Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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) –  Radoo Apr 26 '13 at 12:33
    
Perhaps you have some sort of redirect... try -L flag. –  Radoo Apr 26 '13 at 12:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.