title: How to download Bing Static Map in Linux
body: <p>I'm trying to download the static map using Bing Maps API. It works when I load the URL from Chrome, but when I tried to curl to wget from Linux, I got Auth Failed error.</p>
  
  <p>The URL are identical but for some reason Bing is blocking calls from Linux?</p>
  
  <p>Here's the commands I tried:</p>
  
  <pre><code>wget -O map.png http://dev.virtualearth.net/REST/V1/Imagery/Map/Road/...
  curl -O map.png http://dev.virtualearth.net/REST/V1/Imagery/Map/Road/...
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Resolving dev.virtualearth.net (dev.virtualearth.net)... 131.253.14.8
  Connecting to dev.virtualearth.net (dev.virtualearth.net)|131.253.14.8|:80... connected.
  HTTP request sent, awaiting response... 401 Unauthorized
  
  Username/Password Authentication Failed.
  --2016-10-24 15:42:30--  http://dev.virtualearth.net/REST/V1/Imagery/Map/Road/.../12?mapSize=340,500
  Reusing existing connection to dev.virtualearth.net:80.
  HTTP request sent, awaiting response... 401 Unauthorized
  
  Username/Password Authentication Failed.
  </code></pre>
  
  <p>I'm not sure if it has anything to do with Key Type, I've tried several from Public Website to Dev/Test but still didn't work.</p>