trungn1992 / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

How do you "check" checkbox in POST form? #137

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I see great examples of setting username/password and other input fields with a 
form POST.  However, if you have a checkbox that needs to be set (checked) in 
an authentication form how do you do it?

Original issue reported on code.google.com by jimhorn...@gmail.com on 23 Mar 2011 at 5:56

GoogleCodeExporter commented 8 years ago
for a checkbox such as 

    <input type=checkbox name="topping" value="bacon"> Bacon </label></p>

send 

   topping=bacon

as part of the URL encoded POST body.

Original comment by joe.gregorio@gmail.com on 13 Jun 2011 at 5:21