Curl error when downloading json object
<p>getting the following error...</p>

<pre><code>curl: (56) GnuTLS recv error (-54): Error in the pull function.
</code></pre>

<p>...when using the following command to curl a json file</p>

<pre><code>curl -L -o commerce.json http://www.commerce.gov/data.json
</code></pre>

<p>Any advice? I'm not familiar with curl. Perhaps it's a timeout error. Is there anyway I can prevent that? I really need the file, and I am unable to download it from a browser (assuming too big a file).</p>

<p>I'm working from command line on Ubuntu. Would love, alternatively to curl, a python solution.</p>

<p>the error code 56 means the following, as described here <a href="https://curl.haxx.se/docs/manpage.html" rel="nofollow">https://curl.haxx.se/docs/manpage.html</a></p>

<blockquote>
  <p>56 Failure in receiving network data.</p>
</blockquote>

<p>you should use a <strong>-v</strong> to see what's happen.</p>

<p>I don't thnik that another tool fix the network error.</p>

<p>Never the less there is a example in plain python.</p>

<p><a href="http://stackoverflow.com/questions/2667509/curl-alternative-in-python">CURL alternative in Python</a></p>

python json bash curl