How to deduce login PHP parameters for Programmatic POST
<p>I'm using C# to log on a website.  I have a helpful code sample for the C# bit, but it requires that I pass the PHP script the login parameters in a format similar to "username=myusername&amp;password=mypassword".  I don't know PHP nor do I have access to the script.  Is there a way to deduce from the markup what parameters the script is expecting?</p>

<p>Here's the basis of my C# code: <a href="http://stackoverflow.com/questions/930807/c-login-to-website-via-program">C# Login to Website via program</a></p>

<p>Thanks in advance.</p>

<pre><code>    &lt;form id="login" method="post" action="http://mysite.com/forums/index.php?app=core&amp;amp;module=global&amp;amp;section=login&amp;amp;do=process"&gt;
        &lt;input type="hidden" value="990ea6a14ea49e853634fbdc5015a024" name="auth_key"&gt;

            &lt;input type="hidden" value="http://www.mysite.com/" name="referer"&gt;

            &lt;div id="regular_signin"&gt;
                &lt;a id="_regularsignin"&gt;&lt;/a&gt;
                &lt;h3 class="bar"&gt;Enter your sign in name and password&lt;/h3&gt;
                &lt;ul&gt;
                    &lt;li class="field"&gt;
                        &lt;label for="username"&gt;Username or email address:&lt;/label&gt;
                        &lt;input type="text" size="25" name="username" class="input_text" id="username"&gt;
                    &lt;/li&gt;
                    &lt;li class="field"&gt;
                        &lt;label for="password"&gt;Password:&lt;/label&gt;
                        &lt;input type="password" size="25" name="password" class="input_text" id="password"&gt;&lt;br&gt;
                        &lt;a title="Retrieve password" class="desc" href="http://mysite.com/forums/index.php?app=core&amp;amp;module=global&amp;amp;section=lostpass"&gt;I've forgotten my password&lt;/a&gt;
                    &lt;/li&gt;
                &lt;/ul&gt;
&lt;/div&gt;&lt;hr&gt;
            &lt;fieldset id="signin_options"&gt;
                &lt;legend&gt;Sign in options&lt;/legend&gt;
                &lt;ul&gt;
                    &lt;li class="field checkbox"&gt;
                        &lt;input type="checkbox" class="input_check" value="1" name="rememberMe" checked="checked" id="remember"&gt;
                        &lt;label for="remember"&gt;
                            Remember me&lt;br&gt;
                            &lt;span class="desc"&gt;This is not recommended for shared computers&lt;/span&gt;
                        &lt;/label&gt;
                    &lt;/li&gt;

                        &lt;li class="field checkbox"&gt;
                            &lt;input type="checkbox" class="input_check" value="1" name="anonymous" id="invisible"&gt;
                            &lt;label for="invisible"&gt;
                                Sign in anonymously&lt;br&gt;
                                &lt;span class="desc"&gt;Don't add me to the active users list&lt;/span&gt;
                            &lt;/label&gt;
                        &lt;/li&gt;

                &lt;/ul&gt;
            &lt;/fieldset&gt;
            &lt;fieldset class="submit"&gt;
                &lt;input type="submit" value="Sign In" class="input_submit"&gt; or &lt;a class="cancel" title="Cancel" href="http://mysite.com/forums"&gt;Cancel&lt;/a&gt;
            &lt;/fieldset&gt;
        &lt;/form&gt;
</code></pre>
