How can I post form data via https?

X

Xpol Wan

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top