Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    $ curl -L https://www.atom.io/api/updates/download 
    {"message":"Not Found"}
    
    $ curl -sLI https://www.atom.io/api/updates/download 
    HTTP/1.1 404 Not Found
    Cache-Control: no-cache
    Content-Type: application/json; charset=utf-8
    Date: Sun, 02 Mar 2014 12:23:50 GMT
    Set-Cookie: request_method=HEAD; path=/; secure
    Status: 404 Not Found
    Strict-Transport-Security: max-age=31536000
    X-Content-Type-Options: nosniff
    X-Frame-Options: SAMEORIGIN
    X-Request-Id: f69dc125-390e-40cc-969c-586a04dfa65d
    X-Runtime: 0.014472
    X-Ua-Compatible: chrome=1
    X-Xss-Protection: 1; mode=block
    Connection: keep-alive
I guess the game is over


Notice the other comments set the user agent - to one I assume is used by the app itself when it does auto updates. You probably need to set that:

    -A "Atom/0.1 CFNetwork/1.5


true I forgot to paste it back, same difference though:

    $ curl -sLI https://www.atom.io/api/updates/download -A "Atom/0.1 CFNetwork/1.5"
    HTTP/1.1 404 Not Found
    Cache-Control: no-cache
    Content-Type: application/json; charset=utf-8
    Date: Sun, 02 Mar 2014 12:55:36 GMT
    Set-Cookie: request_method=HEAD; path=/; secure
    Status: 404 Not Found
    Strict-Transport-Security: max-age=31536000
    X-Content-Type-Options: nosniff
    X-Frame-Options: SAMEORIGIN
    X-Request-Id: 23d92789-1d1f-4ed0-bb95-9e2ff4b33bbf
    X-Runtime: 0.014090
    X-Ua-Compatible: chrome=1
    X-Xss-Protection: 1; mode=block
    Connection: keep-alive




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: