title: Rcurl not working with redirect
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4062819/curl-get-redirect-url-to-a-variable">cURL , get redirect url to a variable</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to plot a sequence logo using Rcurl and WebLogo at <a href="http://weblogo.berkeley.edu/logo.cgi" rel="nofollow noreferrer">http://weblogo.berkeley.edu/logo.cgi</a></p>
  
  <pre><code>url = 'http://weblogo.berkeley.edu/logo.cgi'
  result = postForm(url, "sequence"='HQDTQRRTSMGGTQQ', .cgifields = 'sequence', style="post")
  </code></pre>
  
  <p>I have tried this, but it just returns the html of the filled form (i.e. its not being submitted). When I looked into the timeline of a submit, I saw that the image generated is through a redirect. Any idea how I can get to that image?</p>
  
  <p>Also: what is the point of .cgifields? its in many of the examples but what is its purpose?</p>