title: Using API in Bash without curl
body: <p>I'm writing a script that has a function using a weather API. for now I only managed to solve this problem with <code>curl</code> but I recently noticed I don have access to <code>curl</code> where I need the script to run. Is there any other way I can solve this? The code I have is this:</p>
  
  <pre><code>weatherLondon()
  {
      echo "&lt;h3&gt;Weather in London&lt;/h3&gt;"
      (( $# )) || set -- "London,UK"
      echo "Location: ${1//,/, }"
      curl -s "http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=$1" | perl -ne 's/&amp;amp;deg;/°/g;
                                                                                                  s/ \(\d+°F\)//g;
                                                                                                  /&lt;title&gt;([^&lt;]+)/ &amp;&amp; printf "%s: ",$1;
                                                                                                  /&lt;fcttext&gt;([^&lt;]+)/ &amp;&amp; print $1,"\n"';
  }
  </code></pre>
  
  <p>I found this code at <a href="http://www.commandlinefu.com/commands/view/4821/get-the-weather-forecast-for-the-next-24-to-48-for-your-location" rel="nofollow">http://www.commandlinefu.com/commands/view/4821/get-the-weather-forecast-for-the-next-24-to-48-for-your-location</a></p>
  
  <p>I'm very new with both bash and API's</p>