How can I post form data via https?
Assume there is a site: https://www.example.com
The login page at https://www.example.com/servlets/Login
has a form:
<form action="https://www.example.com/servlets/TLogin" method="post">
<input name="loginID" value="" size="20" maxlength="99" type="text">
<input name="password" value="" size="20" maxlength="32"
type="password">
<input name="Login" value="Login" type="submit">
</form>
And here is the actually form I want to post:
At https://mcd.example.com/servlets/ResourceAdd
the form is:
<form action="ResourceAdd" method="post"
enctype="application/x-www-form-urlencoded">
<input name="description" value="" size="50" maxlength="99"
type="text">
<input name="pattern" value="" size="50" maxlength="99" type="text">
<input name="Button" value="Create resource" type="submit">
</form>
So can anyone write a ruby script for me?
···
--
Posted via http://www.ruby-forum.com/.