Using C# to execute HTML on webpage to download PDF file
<p>How do I execute a HTTP GET which requires a unique identifier from the base url in order to successfully get the PDF i want (probably links to CDN)? Also, this website also requires that the user use a mobile browser (I am spoofing User Agent to circumvent this). I have tried sending a HTMLWebRequest to no avail (I only get the source code of the page instead of the file). The HTML source in question is as follows : </p>

<pre><code>&lt;form class="button-to" action="/mobile/doc/58964291/download/1336136646/lBViuFYhOMPfzS-Ml2PuyHvU1HU" method="get"&gt;
&lt;input class="download_now" name="commit" onclick="javascript: $rat('analytics.search.document.mobile_download',{'title' : 'Charlotte Lamb - Whirlwind'})" type="submit" value="Download Now"/&gt;
&lt;input id="secret_password" name="secret_password" type="hidden"/&gt;
666.342 
&lt;/form&gt;
</code></pre>

<p>This is the unique identifier which is generated everything i webrequest the baseurl : </p>

<pre><code>58964291/download/1336136646/lBViuFYhOMPfzS-Ml2PuyHvU1HU
</code></pre>

<p>I've tried emulating the GET requests using browser data sniffed using fiddler. But I get a HTTP 302 (Redirect) instead of a HTTP 200 (Found) when attempting the request. Might be some javascript which needs to be executed too?</p>
