Note that there are some explanatory texts on larger screens.

plurals
  1. POLoading form input values from web pages into URLRequest?
    text
    copied!<p>How would I pull out the form values for the html source below and add them to an NSURLConnection?</p> <pre><code>&lt;tr&gt; &lt;th&gt;&lt;label for="username"&gt;&lt;span class="accesskey"&gt;N&lt;/span&gt;etID:&lt;/label&gt;&lt;/th&gt; &lt;td&gt;&lt;input id="username" name="username" class="required" tabindex="1" accesskey="n" type="text" value="" size="32" autocomplete="false"/&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;th&gt;&lt;label for="password"&gt;&lt;span class="accesskey"&gt;P&lt;/span&gt;assword:&lt;/label&gt;&lt;/th&gt; &lt;td&gt;&lt;input id="password" name="password" class="required" tabindex="2" accesskey="p" type="password" value="" size="32"/&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;th&gt;&lt;label for="authenticationType"&gt;&lt;span class="accesskey"&gt;A&lt;/span&gt;uthentication Type:&lt;/label&gt;&lt;/th&gt; &lt;td&gt; &lt;select id="authenticationType" name="authenticationType"&gt; &lt;option value="Kerberos"&gt;Default&lt;/option&gt; &lt;option value="SafeWord"&gt;SafeWord&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;th&gt;&lt;/th&gt; &lt;td&gt; &lt;input type="checkbox" id="warn" name="warn" value="true" tabindex="3" /&gt; &lt;label for="warn" class="other" accesskey="w"&gt;&lt;span class="accesskey"&gt;W&lt;/span&gt;arn me before logging me into other sites.&lt;/label&gt; &lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;th&gt;&lt;/th&gt; &lt;td&gt; &lt;input type="hidden" name="_currentStateId" value="" /&gt; &lt;input type="hidden" name="_eventId" value="submit" /&gt; &lt;input type="submit" accesskey="l" value="LOGIN" tabindex="4" /&gt; &lt;/td&gt; &lt;/tr&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload