I ran the following curl request on my local as well as on production :-
curl -o '/tmp/abc.jpg' -L 'http://static2.jassets.com/p/Justanned-Black-Solid-Winter-Jacket-4701-2573471-1-pdp_slider_l.jpg'
While on my local the response was an image (which should be), on production it gave me the following response :-
<HTML><HEAD><TITLE>Error</TITLE></HEAD><BODY>
An error occurred while processing your request.<p>
Reference #97.42db387d.1467706208.103dbe0e
</BODY></HTML>
Both my local and server run on ubuntu 14.04 and apache server.
Please help me out. Thanks in advance.