title: Download ASPX page with R
body: <p>There are a number of fairly detailed answers on SO which cover authenticated login to an aspx site and a download from it. As a complete n00b I haven't been able to find a simple explanation of how to get data from a web form</p>
  
  <p>The following MWE is intended as an example only. And this question is more intended to teach me how to do it for a wider collection of webpages.</p>
  
  <p>website : </p>
  
  <p><a href="http://data.un.org/Data.aspx?d=SNA&amp;f=group_code:101" rel="nofollow">http://data.un.org/Data.aspx?d=SNA&amp;f=group_code%3a101</a></p>
  
  <p>what I tried and (obviously) failed.</p>
  
  <pre><code>test=read.csv('http://data.un.org/Handlers/DownloadHandler.ashx?DataFilter=group_code:101;country_code:826&amp;DataMartId=SNA&amp;Format=csv&amp;c=2,3,4,6,7,8,9,10,11,12,13&amp;s=_cr_engNameOrderBy:asc,fiscal_year:desc,_grIt_code:asc')
  </code></pre>
  
  <p>giving me goobledegook with a <code>View(test)</code></p>
  
  <p>Anything that steps me through this or points me in the right direction would be very gratefully received.</p>